/* ===================== */
/* 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;
}


.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);
}








/* Cotizador Inteligente */
.cotizador-inteligente-section {
  background: #f7f7fa;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cotizador-titulo {
  font-size: 2.1rem;
  font-family: 'Signika', Arial, sans-serif;
  color: #232526;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 1px;
}

.cotizador-descripcion {
  color: #555;
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cotizador-campo {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.cotizador-campo label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #333;
}

.cotizador-campo select,
.cotizador-campo input {
  padding: 0.55rem 0.7rem;
  border: 1.5px solid #c2c5c7;
  border-radius: 7px;
  font-size: 1rem;
  background: #fff;
  width: 80%;
  transition: border 0.2s;
}

.cotizador-campo select:focus,
.cotizador-campo input:focus {
  border-color: #414345;
  outline: none;
}

.btn-cotizar,
.btn-descargar-pdf {
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.7rem 1.5rem;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.7rem;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(35,37,38,0.07);
}

.btn-cotizar:hover,
.btn-descargar-pdf:hover {
  background: linear-gradient(120deg, #414345 0%, #232526 100%);
  transform: translateY(-2px) scale(1.03);
}

#cotizadorResultado {
  background: #e9f6ef;
  border-radius: 10px;
  margin-top: 1.5rem;
  padding: 1.2rem 1rem 1.5rem 1rem;
  box-shadow: 0 2px 12px rgba(35,37,38,0.06);
  text-align: center;
}

#cotizadorResultado h3 {
  color: #232526;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

#cotizadorResultadoTexto {
  color: #222;
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 600px) {
  .cotizador-inteligente-section {
    padding: 25px;
    max-width: 90%;
  }
  .cotizador-titulo {
    font-size: 1.4rem;
  }
}









/* ===================== */
/* PROCESO DE TRABAJO AFFEDCO */
/* ===================== */
.proceso-affedco {
  width: 100%;
  margin-top: 100px;
  padding: 64px 0 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proceso-affedco h2 {
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 38px;
  letter-spacing: 1px;
  padding: 25px;
  text-align: center;
}

.proceso-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 480px;
  width: 100%;
  position: relative;
}

.proceso-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-height: 90px;
  margin-bottom: 32px;
}

.proceso-step:last-child {
  margin-bottom: 0;
}

.proceso-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--color-accent-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  position: relative;
  z-index: 2;
  margin-right: 18px;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.proceso-step.completed .proceso-step-circle {
  background: var(--color-primary-dark);
  color: #fff;
  border-color: var(--color-primary-dark);
}

.proceso-step.active .proceso-step-circle {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.proceso-step.pending .proceso-step-circle {
  background: #fff;
  color: var(--color-secondary);
  border-color: var(--color-accent-1);
}

.proceso-step-circle span {
  display: block;
  line-height: 1;
}

.proceso-step::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 38px;
  width: 2.5px;
  height: calc(100% - 38px);
  background: var(--color-accent-1);
  z-index: 1;
}

.proceso-step:last-child::before {
  display: none;
}

.proceso-step-content {
  flex: 1;
  padding-bottom: 4px;
}

.proceso-step-content h3 {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.proceso-status {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 3px 14px;
  margin-bottom: 6px;
  margin-right: 8px;
  margin-top: 0;
  letter-spacing: 0.2px;
}

.status-completed {
  background: #d1fadf;
  color: #219150;
}

.status-active {
  background: #e0e7ff;
  color: #2563eb;
}

.status-pending {
  background: #f1f5f9;
  color: #888888;
}

.proceso-step-content p {
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 700px) {
  .proceso-timeline {
    max-width: 80%;
    padding-left: 0;
  }
  .proceso-step {
    margin-bottom: 22px;
  }
  .proceso-step-circle {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    margin-right: 10px;
  }
  .proceso-step::before {
    left: 13px;
    width: 2px;
  }
  .proceso-step-content h3 {
    font-size: 1rem;
  }
  .proceso-step-content p {
    font-size: 0.95rem;
  }
  .proceso-affedco{
    padding-top: 10px;
  }
}



body {
    background: 
        linear-gradient(120deg, rgba(255, 255, 255, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%),
        url('/cotizador/photos/1.png') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
}







.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;
}