/* ===================== */
/* PALETA Y RESET GLOBAL */
/* ===================== */
:root {
    --color-primary-dark: #181818;   /* negro profundo */
    --color-primary: #444444;        /* gris oscuro */
    --color-secondary: #888888;      /* gris medio */
    --color-accent-1: #e0e0e0;      /* gris claro */
    --color-accent-2: #f5f5f5;      /* blanco suave */
    --color-light: #ffffff;          /* blanco puro */
    --color-white: #ffffff;          /* blanco original */
    --color-text: #222222;           /* negro/gris para texto */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--color-text);
    background: var(--color-accent-2);
    max-width: 100vw;
    font-family: 'Roboto', Arial, sans-serif;
    overflow-x: hidden;
    padding-top: 100px;
}


.nombre-inmobiliaria,
.nav-principal,
.footer-affedco-nombre,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
}

.nombre-affedco {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    white-space: nowrap;
    display: block;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nombre-affedco .affedco {
    color: var(--color-primary-dark);
}

.nombre-affedco .legacy {
    color: var(--color-primary);
}

/* ===================== */
/* HEADER Y NAVEGACIÓN   */
/* ===================== */
header {
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 2px 8px var(--color-light);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-principal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    margin: auto;
    padding: 0 20px;
    position: relative;
}

.logo-affedco {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-affedco-img {
    height: 104px;
    width: auto;
    display: block;
}

.nombre-inmobiliaria {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    white-space: nowrap;
    display: block;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nombre-inmobiliaria .affedco {
    color: var(--color-primary-dark);
}

.nombre-inmobiliaria .legacy {
    color: var(--color-primary);
}

.menu-movil {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin-left: 24px;
    z-index: 1200;
    background: transparent;
    border: none;
}

.menu-movil span {
    display: block;
    width: 30px;
    height: 4px;
    background: var(--color-primary-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.enlaces-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.enlaces-nav li a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.2s;
    padding: 6px 12px;
    text-align: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.enlaces-nav li a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: width 0.3s;
    border-radius: 2px;
}

.enlaces-nav li a:hover {
    color: var(--color-primary-dark);
}

.enlaces-nav li a:hover::after {
    width: 100%;
}

/* ===================== */
/* RESPONSIVE HEADER/BODY*/
/* ===================== */
@media (max-width: 1450px) {
    .menu-movil {
        display: flex;
    }
    .enlaces-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 220px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: -2px 0 12px var(--color-primary-dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 0 24px;
        gap: 18px;
        transition: right 0.3s;
        z-index: 1100;
    }
    .enlaces-nav.open {
        right: 0;
        padding-top: 200px;
    }
    .logo-affedco {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .nav-principal {
        width: 98%;
        padding: 0 8px;
    }
    .logo-affedco-img {
        height: 48px;
    }
    .nombre-inmobiliaria {
        font-size: 1.1rem;
        max-width: auto;
    }
    .logo-affedco {
        justify-content: center;
        width: 100%;
        margin-left: 70px;
        text-align: center;
    }
}

/* ===================== */
/* FOOTER                */
/* ===================== */
footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 60px 0 0 0;
    margin-top: 60px;
    font-size: 1.08rem;
}

.footer-affedco-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    margin: auto;
    gap: 48px;
    padding: 0 12px 40px 32px;
}

.footer-affedco-logo-info {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-affedco-logo {
    width: 100%;
}

.footer-affedco-nombre {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.footer-affedco-nombre .affedco {
    color: var(--color-white);
}

.footer-affedco-nombre .legacy {
    color: var(--color-primary);
}

.footer-affedco-desc {
    color: var(--color-white);
    font-size: 1rem;
    margin-top: 8px;
    text-align: center;
}

.footer-affedco-links {
    flex: 1 1 180px;
}

.footer-affedco-links h4 {
    color: var(--color-accent-1);
    font-size: 1.18rem;
    margin-bottom: 12px;
    font-weight: bold;
}

.footer-affedco-links ul {
    list-style: none;
    padding: 0;
}

.footer-affedco-links ul li {
    margin-bottom: 8px;
}

.footer-affedco-links ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 4px 0;
    display: inline-block;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.footer-affedco-links ul li a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--color-light);
    transition: width 0.3s;
    border-radius: 2px;
}

.footer-affedco-links ul li a:hover {
    color: var(--color-accent-1);
    background: transparent;
}

.footer-affedco-links ul li a:hover::after {
    width: 100%;
}

.footer-affedco-contacto {
    flex: 1 1 220px;
}

.footer-affedco-contacto h4 {
    color: var(--color-accent-1);
    font-size: 1.18rem;
    margin-bottom: 12px;
    font-weight: bold;
}

.footer-affedco-contacto p {
    margin-bottom: 10px;
    color: var(--color-white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-affedco-contacto i {
    color: var(--color-white);
    font-size: 1.1rem;
}

.footer-affedco-redes {
    margin-top: 10px;
}

.footer-affedco-redes a {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-right: 12px;
    transition: color 0.2s;
}

.footer-affedco-redes a:hover {
    color: var(--color-primary);
}

.footer-affedco-redes a i {
    color: var(--color-white);
    transition: color 0.2s;
}

.footer-affedco-redes a:hover i {
    color: var(--color-secondary);
}

.footer-affedco-bottom {
    text-align: center;
    padding: 18px 0 10px 0;
    font-size: 1rem;
    margin-top: 0;
}
/* Logo del footer completamente blanco */
.footer-affedco-logo {
    filter: brightness(0) invert(1);
}

/* ===================== */
/* RESPONSIVE FOOTER     */
/* ===================== */
@media (max-width: 900px) {
    .footer-affedco-container {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        width: 100%;
        padding: 0 8px 32px 8px;
    }
    .footer-affedco-logo-info {
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-affedco-links {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        text-align: center;
    }
    .footer-affedco-links h4 {
        grid-column: 1 / span 2;
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-affedco-links ul {
        padding: 0;
        margin: 0;
        display: contents;
    }
    .footer-affedco-links ul li {
        margin-bottom: 8px;
        width: 100%;
    }
    .footer-affedco-contacto {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        text-align: center;
    }
    .footer-affedco-contacto h4 {
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-affedco-contacto p {
        justify-content: center;
    }
    .footer-affedco-bottom {
        font-size: 0.98rem;
    }
}

@media (max-width: 600px) {
    .footer-affedco-container {
        width: 100%;
        padding: 0 4px 24px 4px;
    }
    .footer-affedco-logo-info {
        gap: 10px;
    }
    .footer-affedco-links,
    .footer-affedco-contacto {
        max-width: 100%;
    }
}

/* ===================== */
/* WHATSAPP BUBBLE       */
/* ===================== */
.affedco-whatsapp-bubble {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 2000;
    background: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 4px 16px var(--color-primary);
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.affedco-whatsapp-bubble a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: filter 0.2s;
}

.affedco-whatsapp-icon {
    width: 48px;
    height: 48px;
    transition: filter 0.2s;
    filter: brightness(0) invert(1);
}

.affedco-whatsapp-bubble:hover {
    background: var(--color-accent-1);
    transform: scale(1.12);
    box-shadow: 0 8px 24px var(--color-primary);
}

.affedco-whatsapp-bubble:hover .affedco-whatsapp-icon {
    filter: brightness(0) invert(0);
}








/* ===================== */
/* CONTACTO LAYOUT       */
/* ===================== */
.contacto-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 48px auto 64px auto;
  padding: 0 16px;
}

.contacto-form-card {
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(40,40,40,0.08);
  padding: 36px 32px 32px 32px;
  flex: 2 1 420px;
  min-width: 320px;
  max-width: 600px;
}

.contacto-form-card h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 28px;
  letter-spacing: -1px;
}

.form-horizontal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.form-row input,
.form-row textarea {
  flex: 1 1 0;
  padding: 13px 16px;
  border: 1.5px solid var(--color-accent-1);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--color-accent-2);
  color: var(--color-primary-dark);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  resize: none;
}

.form-row textarea {
  min-height: 80px;
  max-height: 180px;
}

.form-row input:focus,
.form-row textarea:focus {
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-accent-1);
}

.form-row button {
  background: var(--color-accent-1);
  color: var(--color-primary-dark);
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px 0 rgba(68,68,68,0.08);
  margin-left: auto;
}

.form-row button:hover,
.form-row button:focus {
  background: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-2px) scale(1.04);
}

.form-row button i {
  font-size: 1.1em;
}

/* ===================== */
/* INFO ASIDE            */
/* ===================== */
.contacto-info-aside {
  background: var(--color-accent-1);
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(40,40,40,0.08);
  padding: 36px 28px 32px 28px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.info-logo {
  width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-logo img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.info-block {
  margin-bottom: 6px;
}

.info-block h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-block p {
  font-size: 1rem;
  color: var(--color-primary);
  margin: 0 0 0 2px;
  line-height: 1.4;
}

.info-redes {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.info-redes a {
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  background: var(--color-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 1px 6px 0 rgba(40,40,40,0.06);
}

.info-redes a:hover {
  background: var(--color-primary);
  color: var(--color-light);
  transform: scale(1.12);
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */
@media (max-width: 950px) {
  .contacto-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 0 4vw;
  }
  .contacto-form-card,
  .contacto-info-aside {
    width: 100%;
    padding: 24px 10px 18px 10px;
  }
  .info-logo {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .contacto-layout {
    gap: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px auto 24px auto;
    padding: 0 2vw;
  }
  .contacto-form-card,
  .contacto-info-aside {
    border-radius: 10px;
    width: 90%;
    padding: 25px;
  }
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  .form-row button {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .info-logo {
    width: 300px;
  }
  .info-logo img {
    width: 100%;
    height: auto;
  }
}

.info-redes a {
  text-decoration: none;
}







/* ===================== */
/* MAPA DE OFICINA       */
/* ===================== */
.contacto-mapa-section {
  width: 100%;
  max-width: 900px;
  margin: 48px auto 0 auto;
  padding: 0 16px;
}

.mapa-card {
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(40,40,40,0.08);
  padding: 36px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.mapa-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mapa-card h2 i {
  color: var(--color-primary);
  font-size: 1.3em;
}

.mapa-desc {
  color: var(--color-secondary);
  font-size: 1.13rem;
  margin-bottom: 10px;
  max-width: 600px;
}

.mapa-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}

.mapa-info > div {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-2);
  color: var(--color-primary-dark);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 1px 6px 0 rgba(40,40,40,0.06);
}

.mapa-info i {
  color: var(--color-primary);
  font-size: 1.1em;
}

.mapa-embed {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 rgba(40,40,40,0.07);
}

.mapa-embed iframe {
  width: 100%;
  height: 260px;
  border: none;
  border-radius: 14px;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .contacto-mapa-section {
    padding: 0 4vw;
  }
  .mapa-card {
    padding: 30px;
  }
  .mapa-info {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .contacto-mapa-section {
    padding: 0 2vw;
    margin-top: 24px;
  }
  .mapa-card {
    border-radius: 10px;
    padding: 28px;
    gap: 10px;
  }
  .mapa-card h2 {
    font-size: 1.1rem;
    gap: 8px;
  }
  .mapa-desc {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .mapa-info > div {
    font-size: 0.97rem;
    padding: 6px 8px;
  }
  .mapa-embed iframe {
    height: 180px;
    border-radius: 8px;
  }
}



.background-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100vh;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.18; /* Ajusta la opacidad para que el contenido sea legible */
  pointer-events: none;
  background: var(--color-accent-2);
}




.animar-aparicion {
  opacity: 0;
  transform: none;
  transition: transform 0.8s cubic-bezier(.77,0,.18,1), opacity 0.8s;
  will-change: transform, opacity;
}
.animar-aparicion[data-anim="izq"] {
  transform: translateX(-40%);
}
.animar-aparicion[data-anim="der"] {
  transform: translateX(40%);
}
.animar-aparicion.visible {
  opacity: 1;
  transform: none;
}
body, html {
  overflow-x: hidden;
}