:root {
--fuentePrincipal: "Fahkwang", sans-serif;

--colorLinen: #f9f4f0;
--colorCream: #ece4d8;
--colorSmokeyTaupe: #e1dcd4;
--colorGold: #bfa87f;
}

/* GLOBALES */
html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1rem=10px */
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    padding-top: 70px;  /* Ajusta según la altura del header */
}
h1 {
    font-family: var(--fuentePrincipal);
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
}
h2 {
    font-family: var(--fuentePrincipal);
    font-size: 2rem;
    font-weight: 100;
}
h3 {
    font-family: var(--fuentePrincipal);
    font-size: 1.8rem;
    font-weight: 100
}
p {
    font-family: var(--fuentePrincipal);
    font-weight: 100;
    font-size: 1.6rem;
    line-height: 1.6;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff; /* Ajustar según el branding */
    position: fixed; /* hace que la barra de navegación esté siempre visible aunque el usuario haga scroll hacía abajo */
    width: 100%;
    top: 0; /* Lo coloca en la parte superior */
    left: 0; /* Lo alinea a la izquierda */
    z-index: 1000; /* Asegura que el header quede por encima del resto */
}
/* fotmato de letra negrita o cursiva */
.italic {
    font-style: italic;
}
.br {
    font-weight: 500;
}
.uppercase {
    text-transform: uppercase;
}
/* especiales texto */

.masEspacio {
    padding-top: 4rem;
}
.reduceLetra {
    font-size: 1.5rem;
}

.fuente {
    font-family: var(--fuentePrincipal);
}

/* LOGO */
.logo img {
    height: 65px; /* Ajusta según tamaño del logo */
}

/* NAVEGACION */
.menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu li {
    display: inline;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    font-family: "Overpass", sans-serif;
    font-weight: 100;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 10px;
    border-radius: 5px;
}

/* Estilo cuando pasas el ratón */
.menu a:hover {
    background-color: var(--colorGold);
    color: #fff;
    font-weight: 400;
}
/* menu de navegacion activo */
.menu a.activo {
    color:var(--colorGold);
    font-weight: 400;
  }

/* Botón hamburguesa */
.menu-hamburguesa {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 40px;
    height: 30px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1100;
}

.menu-hamburguesa span {
    width: 30px;
    height: 3px;
    background-color: black;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Animación del icono de hamburguesa */
.menu-hamburguesa.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-hamburguesa.active span:nth-child(2) {
    opacity: 0;
}
.menu-hamburguesa.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Ajustes en móviles */
@media (max-width: 768px) {
    .menu-hamburguesa {
        display: flex;
        cursor: pointer;
    }

    .menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #fff;
        width: 100%;
        padding: 15px 0;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        max-height: 300px;
        opacity: 1;
    }

    .menu li {
        text-align: center;
        padding: 10px 0;
    }
}
/* FOTO INDEX */
.hero {
    margin-top: 2rem;
    width: 100%;
    height: 90vh; /* La imagen siempre ocupará el 80% de la altura de la pantalla */
    background-image: url(../img/index/hero2.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .hero {
        background-image: url(../img/index/hero.webp);
    }
}

/* QUIENES SOMOS */
.quienes-somos {
    text-align: center;
    padding: 40px 5%;
    padding-top: 5rem;
}
/* Contenedor de los párrafos */
.texto-quienes-somos {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 5rem;
}
/* Estilo de los párrafos */
.texto-quienes-somos p {
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* QUÉ HACER */
.que-hacer {
    padding: 8rem 5%;
    background-color: var(--colorCream);
    margin: 5rem auto;
}
/* Contenedor de los botones */
.botones-acciones {
    display: flex;
    font-size: 2rem;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.botones-acciones a {
    padding: 2rem;
    font-size: 1.8rem;
}

/* Estilo de los botones */
.btn {
    font-family: "Overpass", sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--colorGold);
    background-color: #fff;
    padding: 15px 30px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Efecto hover en los botones */
.btn:hover {
    background-color: var(--colorGold); /* Un tono más oscuro del dorado */
    transform: scale(1.05);
    color: white;
}
/* Responsive: En móviles los botones se apilan */
@media (max-width: 768px) {
    .botones-acciones {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* RESEÑAS */
.opiniones {
    text-align: center;
    padding: 40px 5%;
}

/* Carrusel */
.carrusel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* Contenedor de reseñas con overflow */
.reseñas-container {
    width: 100%; /* para que ocupe el 100% de ancho de la pantalla */
    overflow: hidden;
    position: relative;
}

/* Reseñas en fila */
.reseñas {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

/* Tarjeta de cada reseña */
.reseña {
    background: white;
    padding: 20px;
    border-radius: 6px;
    min-width: 500px; /* Hace que se vea una entera */
    max-width: 500px;
    text-align: left;
    border: .5px solid #5a5959;
    margin-bottom: 5rem;
}
.reseña p{
    font-size: 1.4rem;
}


/* Flechas de navegación */
.flecha {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s;
}

.flecha:hover {
    transform: scale(1.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .reseñas-container {
        width: 300px; /* Ajuste para ipad */
    }

    .reseña {
        min-width: 300px; /* Se ajusta a ipad */
        max-width: 300px;
    }
}
@media (max-width: 480px) {
    .reseñas-container {
        width: 200px; /* Ajuste para móviles */
    }

    .reseña {
        min-width: 200px; /* Se ajusta a móvil */
        max-width: 200px;
    }
}

/* FOOTER */

/* FOOTER */
footer {
    background-color: var(--colorCream);
    color: black;
    padding: 40px 5%;
}

/* Contenedor del footer */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centramos todas las columnas */
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Columnas del footer */
.footer-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos dentro de cada columna */
    text-align: center;
}

/* Logo */
.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

/* Títulos */
.footer-col h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Listas */
.footer-col ul {
    list-style: none;
    padding: 0;
}

/* Ítems de las listas */
.footer-col ul li {
    margin-bottom: 10px;
}

/* Enlaces */
.footer-col ul li a {
    text-decoration: none;
    color: black;
    font-family: "Overpass", sans-serif;
    font-size: 1.6rem;
    font-weight: 100;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--colorGold);
}

/* Redes sociales */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin-top: 10px;
}

.social-links li {
    list-style: none;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    text-decoration: none;
    color: black;
    font-size: 1.8rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background-color: var(--colorGold);
    color: white;
}

/* 📌 En tablets (max-width: 1024px) → 2 columnas arriba y 2 abajo */
@media (max-width: 1024px) {
    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 📌 En móviles (max-width: 768px) → 1 columna debajo de otra */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* CONOCENOS.HTML */

/* SECCIÓN CONÓCENOS */
.conocenos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 5%;
}

.conocenos__contenido {
    display: flex;
    align-items: center;
    max-width: 1200px;
    gap: 4rem;
}

.conocenos__imagen img {
    width: 450px;
    max-width: 90%;
    border-radius: 10px;
}

.conocenos__texto {
    flex: 1;
    text-align: center;
    max-width: 650px;
}

/* SECCIÓN EQUIPO */
.equipo {
    text-align: center;
    padding: 60px 5%;
}

.equipo__contenedor {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.equipo__miembro {
    width: 300px;
    text-align: center;
    border-radius: 10px;
    padding: 20px;
    background-color: var(--colorLinen);
    transition: transform 0.3s ease-in-out;
}

.equipo__miembro:hover {
    transform: scale(1.05);
}

.equipo__miembro img {
    width: 100%;
    height: 350px; /* Establece una altura fija para todas las imágenes */
    object-fit: cover; /* Recorta la imagen sin distorsionarla */
    border-radius: 10px;
    margin-bottom: 15px;
}

.btn {
    font-size: 1.6rem;
    font-weight: bold;
    background-color: var(--colorGold);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #a9906f;
    transform: scale(1.05);
}

/* Información oculta de cada miembro */
.equipo__info {
    display: none;
    margin-top: 15px;
    font-size: 1.4rem;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .conocenos {
        flex-direction: column;
        text-align: center;
    }

    .conocenos__contenido {
        flex-direction: column;
        text-align: center;
    }

    .conocenos__texto {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .equipo__contenedor {
        flex-direction: column;
        align-items: center;
    }
}

/* ---- ESTILO BASE DE LA TARJETA ---- */
.equipo {
    text-align: center;
    padding: 60px 5%;
}

.equipo__contenedor {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.equipo__miembro {
    width: 300px;
    text-align: center;
    border-radius: 10px;
    padding: 20px;
    background-color: var(--colorLinen);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, width 0.4s ease-in-out, height 0.4s ease-in-out;
    position: relative;
}
.equipo__miembro h3 {
    font-size: 1.5rem;
}

/* Imagen de la socia */
.equipo__miembro img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Botón "Saber más" */
.saber-mas {
    font-size: 1.6rem;
    font-weight: bold;
    background-color: var(--colorGold);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.saber-mas:hover {
    background-color: #a9906f;
    transform: scale(1.05);
}

/* TARJETA EN MODO EXPANDIDO */
.equipo__miembro.expandido {
    width: 90vw;  /* Ocupará casi toda la pantalla */
    max-width: 800px;
    height: 90vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 1001;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Imagen en grande dentro de la tarjeta expandida */
.equipo__miembro.expandido img {
    width: 50%;
    max-width: 400px;
}

/* Descripción que estaba oculta */
.equipo__info {
    display: none;
    margin-top: 15px;
    font-size: 1.4rem;
    color: #333;
}

/* Cuando la tarjeta está expandida, la descripción se muestra */
.equipo__miembro.expandido .equipo__info {
    display: block;
}

/* Botón de cerrar (X) en la tarjeta expandida */
.cerrar-tarjeta {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.cerrar-tarjeta:hover {
    color: black;
}

/* Efecto de fondo oscurecido cuando hay una tarjeta abierta */
.fondo-oscuro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
}

/* Responsive: Ajustes en móviles */
@media (max-width: 768px) {
    .equipo__miembro.expandido {
        width: 95vw;
        height: 95vh;
    }

    .equipo__miembro.expandido img {
        width: 80%;
    }
}

/* Ocultar el botón "Saber más" cuando la tarjeta está expandida */
.equipo__miembro.expandido .saber-mas {
    display: none;
}

/* SERVICIOS.HTML */
/* 🎯 Introducción Servicios */
.intro-servicios {
    text-align: center;
    font-size: 2rem;
    font-family: "Cormorant Garamond", serif;
    margin: 2rem auto;
    margin-top: 2rem;
    padding: 4rem 5%;
    border-radius: 10px;
    max-width: 800px;
}
.intro-servicios h2 {
    font-size: 1.8rem;
    line-height: 2;
}

/* 📌 PRIMER CONTACTO */
.primer-contacto {
    padding: 5rem;
    background-color: var(--colorCream);
    display: flex;
    justify-content: center; /* Centra el contenido */
    align-items: center; /* Centra verticalmente si es necesario */
    text-align: center;
    margin-bottom: 5rem;
}
.primer-contacto__texto {
    max-width: 1200px;
    width: 90%; /* Hace que fluya mejor en diferentes tamaños */
    margin: 0 auto; /* Centra horizontalmente */
}

/* 📌 PROCESO DE VENTA */
.proceso-venta h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 5rem;
}

/* 🔥 Contenedor de los pasos */
.pasos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 🎯 Cada paso con imagen */
.paso {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--colorLinen);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 850px;
    opacity: 0; /* Inicialmente oculto para animación */
    transform: translateX(50px); /* Se mueve desde la derecha */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.paso-texto h3 {
    font-weight: 500;
}
/* 📌 Contenedor del paso */
.paso {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--colorLinen);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 850px;
    opacity: 0; /* Inicialmente oculto para animación */
    transform: translateX(50px); /* Se mueve desde la derecha */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 📌 Imagen alineada a la izquierda */
.paso-imagen {
    flex: 0.3;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1; /* Mueve la imagen a la izquierda */
}

/* 📌 Imagen estilo */
.paso-imagen img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--colorGold);
}

/* 📌 Texto alineado a la izquierda cuando la imagen está a la izquierda */
.paso:nth-child(odd) .paso-texto {
    text-align: left;
}

/* 📌 Pasos pares (imagen a la derecha, texto alineado a la derecha) */
.paso:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.paso:nth-child(even) .paso-texto {
    text-align: right;
}

/* 📌 ANIMACIÓN: Cuando el paso es visible */
.paso.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 📌 RESPONSIVE */
@media (max-width: 768px) {
    .paso {
        flex-direction: column;
        text-align: center;
        transform: translateX(0); /* Evita efecto en móviles */
    }

    .paso-imagen {
        order: -1;
        margin-bottom: 15px;
    }

    .paso:nth-child(even) {
        flex-direction: column;
    }
}

/* 📌 SECCIÓN "QUEREMOS QUE TE SIENTAS TRANQUILO" */
.tranquilidad {
    background-color: var(--colorCream);
    padding: 60px 5%;
    text-align: center;
    margin-top: 10rem;
}

.tranquilidad h1 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.tranquilidad p {
    font-size: 1.8rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.tranquilidad ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.tranquilidad li {
    font-family: "Overpass", sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    background-color: white;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tranquilidad li::before {
    font-size: 1.8rem;
    color: var(--colorGold);
}

/* 📌 RESPONSIVE */
@media (max-width: 768px) {
    .tranquilidad p {
        font-size: 1.6rem;
    }

    .tranquilidad li {
        font-size: 1.4rem;
        padding: 10px 15px;
    }
}

/* 📌 CTA FINAL */
.cta-contacto {
    text-align: center;
    padding: 80px 5%;
}

.cta-contacto h2 {
    font-size: 2.6rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.cta-contacto .btn {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    background-color:var(--colorGold);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-contacto .btn:hover {
    background-color: var(--colorSmokeyTaupe);
    transform: scale(1.05);
    color: black;
}

/* 📌 RESPONSIVE */
@media (max-width: 768px) {
    .cta-contacto h2 {
        font-size: 2.2rem;
    }

    .cta-contacto .btn {
        font-size: 1.6rem;
        padding: 12px 25px;
    }
}
/* Estado inicial: Oculto y desplazado */
.paso {
    opacity: 0;
    transform: translateX(-100px); /* Los pasos impares inician desde la izquierda */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Pasos pares inician desde la derecha */
.paso:nth-child(even) {
    transform: translateX(100px);
}

/* Cuando el paso se vuelve visible */
.paso.visible {
    opacity: 1;
    transform: translateX(0);
}


/* PROPIEDADES.HTML */

.propiedades {
    padding: 60px 5%;
    background-color: var(--colorLinen);
    text-align: center;
}

.propiedades h1 {
    font-size: 3rem;
    margin-bottom: 4rem;
}

.propiedades__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ficha {
    position: relative;
    width: 100%;
    max-width: 500px; /* Ajusta según diseño */
    height: 300px;     /* Tamaño fijo en altura */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ficha:hover {
    transform: scale(1.02);
}

.ficha__imagen {
    position: relative;
}

.ficha__imagen img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.ficha__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 1.5rem;
    text-align: left;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ficha:hover .ficha__info {
    opacity: 1;
    transform: translateY(0);
}

.ficha__info p {
    margin: 0.5rem 0;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .propiedades__grid {
        grid-template-columns: 1fr;
    }
    .ficha {
        height: auto;
    }
}

.separador-viviendas {
    border: none;
    height: 1px;
    background-color: #ccc; /* gris claro */
    margin: 60px auto;
    width: 100%;
  }

/* VIVIENDA.HTML */

.vivienda-individual {
    padding: 60px 5%;
    background-color: var(--colorLinen);
  }
  
  .vivienda-individual__contenedor {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  
  .vivienda-individual__imagenes {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .vivienda-individual__imagenes img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
  }
  
  .vivienda-individual__detalles {
    flex: 1;
    font-size: 1.6rem;
  }
  
  .vivienda-individual__detalles h1 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
  }
  
  .vivienda-individual__detalles p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
  }
  .vivienda-individual__detalles h2 {
    margin-top: 8rem;
    margin-bottom: 3rem;
  }

  .vivienda-individual__detalles ul{
  font-family: var(--fuentePrincipal);
  font-weight: 100;
  font-size: 1.6rem;
  line-height: 1.6;
  }
  
  .vivienda-individual__detalles .btn {
    display: inline-block;
    margin-top: 2rem;
  }
  @media (max-width: 768px) {
    .vivienda-individual__contenedor {
      flex-direction: column;
    }
  
    .vivienda-individual__imagenes {
      order: 2; /* Se coloca después del texto */
      display: grid;
      grid-template-columns: 1fr;
      gap: 15px;
    }
  
    .vivienda-individual__imagenes img:first-child {
      order: -1; /* Se muestra antes que el resto (será la imagen principal) */
    }
  
    .vivienda-individual__detalles {
      order: 1; /* Texto entre imagen principal y galería */
      margin-top: 2rem;
    }
    .vivienda-individual__imagenes img:first-child:not(:only-child) {
        display: none;
      }
  }

  .lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.85);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
  }
  
  .lightbox-img {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: 0 auto;
  }
  
  .cerrar {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
  }
  
  .flecha2 {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 0 15px;
    transform: translateY(-50%);
  }
  
  .flecha.izquierda {
    left: 20px;
  }
  
  .flecha.derecha {
    right: 20px;
  }

  @media (max-width: 768px) {

    .lightbox {
        display: none;
        justify-content: center;
        align-items: center;
    }
    .lightbox-img {
      max-width: 95%;
      max-height: 80%;
    }
  
    .flecha {
      font-size: 2.5rem; /* más grande si quieres mejor usabilidad móvil */
    }
  }

/* vivienda vendida */
.ficha__imagen.vendida {
    position: relative;
  }
  
  .ficha__imagen.vendida .vendida-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(255, 255, 255, 0.725);
    font-family: var(--fuentePrincipal);
    padding: 5px 10px;
    font-weight: 300;
    font-size: 4rem;
    text-transform: uppercase;
    opacity: 1; /* SIEMPRE visible */
  }

/* COMPRA360.HTML */

/* Banner con imagen de fondo y texto centrado */
.intro-banner {
    background-image: url('../img/compra-360/foto1.webp');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    font-size: 2.8rem;
    font-style: italic;
    margin-bottom: 5rem;
  }
  
/* Ajuste del bloque introductorio */
.intro-compra {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.6rem;
    line-height: 1.7;
    text-align: center;
}
  
.bloque {
    width: 100%;
}
  
.bloque__contenedor {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: stretch; /* Esto está bien si el contenido está equilibrado */
  }
  
.bloque__contenedor.reverse {
    flex-direction: row-reverse;
}
  
.bloque__imagen,
.bloque__texto {
    width: 50%;
    display: flex;
    flex-direction: column;
}

  
.bloque__imagen img {
    width: 100%;
    max-height: 800px;
    object-fit: cover;
    display: block;
}
.bloque2 img {
    max-height: 600px;
}
  
/* Asegura que el fondo beige tenga el mismo alto que la imagen */
.bg-linen {
    background-color: var(--colorLinen);
    padding: 4rem 6rem;
    justify-content: center;
}
  
/* Alineación del texto */
.texto-izquierda {
    align-items: flex-start;
    text-align: left;
}
  
.texto-derecha {
    align-items: flex-end;
    text-align: right;
}
  
/* Responsive */
@media (max-width: 768px) {
    .bloque__contenedor,
    .bloque__contenedor.reverse {
      flex-direction: column;
    }
  
    .bloque__imagen,
    .bloque__texto {
    width: 100%;
    }
}
  
/* Invertir orden en la segunda sección */
.reverse {
    flex-direction: row-reverse;

}
  
/* Acordeón personalizado */
.descubre {
    max-width: 1100px;
    margin: 0 auto;
}
  
.descubre h1 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    text-align: center;
}
  
.descubre p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color:#777;
    font-style: italic;
}
.descubre li {
    font-family: var(--fuentePrincipal);
    font-weight: 100;
    font-size: 1.6rem;
    line-height: 1.6;
}
  
.acordeon {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-inline-start: 0;
}
  
  
.acordeon li {
    list-style: none;
    margin-bottom: 1rem;
    width: 100%;
    text-align: inherit; /* NUEVO: hereda del padre (.bloque__texto) */
}
  
.acordeon button {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    font-size: 1.6rem;
    font-weight: 100;
    background: none;
    text-align: inherit; /* NUEVO */
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.acordeon .panel {
    text-align: inherit;
    padding: 0 1.2rem 1.2rem;
    font-size: 1.5rem;
    display: none;
    color: #444;
}
.panel p{
    background-color:#fffcf7
}

.acordeon button span {
    font-size: 2rem;
    transition: transform 0.2s;
}
  
.acordeon button[aria-expanded="true"] span {
    transform: rotate(45deg);
}

  /* CONTACTO.HTML */
.contacto__contenedor {
    padding: 80px 5%;
    background-color: var(--colorLinen);
    max-width: 100%;
    margin: 0 auto;
  }
  
  .contacto__texto {
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .contacto__texto h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--colorDark);
  }
  
  .contacto__texto p {
    font-size: 1.6rem;
    color: var(--colorGray);
  }
  
  .contacto__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
  }
  
  .contacto__formulario {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contacto__formulario label {
    font-family: var(--fuentePrincipal);
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.6;
    padding-left: .3rem;
  }
  
  .contacto__formulario input,
  .contacto__formulario textarea {
    padding: 1rem;
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
  }
  .contacto__formulario select {
    padding: 1rem;
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--fuentePrincipal);
  }
  
  .contacto__formulario .btn {
    margin-top: 1rem;
    align-self: flex-start;
  }
  
  .contacto__info {
    flex: 1 1 300px;
    font-size: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
  }
  
  .contacto__info i {
    margin-right: 1rem;
    color: var(--colorGold);
  }
  
  .contacto__info a {
    color: inherit;
    text-decoration: none;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .contacto__grid {
      flex-direction: column;
    }
  
    .contacto__formulario,
    .contacto__info {
      flex: 1 1 100%;
    }
  }

  .contacto__imagen {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacto__imagen img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* En móvil se coloca arriba del formulario */
@media (max-width: 768px) {
  .contacto__imagen {
    order: -1;
    margin-bottom: 2rem;
  }

  .contacto__imagen img {
    max-width: 100%;
  }
}

/* foto */
.contacto__imagen {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .contacto__imagen img {
    width: 100%;
    max-width: 600px;
    height: 600px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  /* En móvil se coloca arriba del formulario */
  @media (max-width: 768px) {
    .contacto__imagen {
      order: -1;
      margin-bottom: 2rem;
    }
  
    .contacto__imagen img {
      max-width: 100%;
    }
  }
  /* MENSAJE FORMULARIO */
  .mensaje-envio {
    font-size: 1.6rem;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 6px;
    text-align: center;
  }
  
  .mensaje-envio.exito {
    background-color: #d4edda;
    color: #155724;
  }
  
  .mensaje-envio.error {
    background-color: #f8d7da;
    color: #721c24;
  }
  
  /* ICONO DE WHATSAPP FIJO */
  .whatsapp-fijo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--colorGold);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-fijo:hover {
    transform: scale(1.1);
}

/*politica de cookies y privacidad*/

.texto-normal {
    text-align: left;
    padding: 40px 5%;
    padding-top: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--fuentePrincipal);
    font-size: 1.6rem;
    font-weight: 100;
}

.texto-normal li {
    
    margin-bottom: 3rem;
    line-height: 1.6;

}

.texto-normal a {
    text-decoration: none;
    color: var(--colorGold);
}

/*Trabaja con nosotras*/
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    margin: 3rem auto 6rem auto;
  }
  
  .video-container video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .video-texto {
    text-align: center;
    padding: 40px 5%;
    padding-top: 5rem;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 5rem;
    line-height: 1.6;
    margin-bottom: 3rem;
  }

  .contacto-work {
    max-width: 800px;
    margin: 3rem auto; /* centra horizontalmente */
    padding: 0 1rem; /* opcional, para que no quede pegado a los lados en móviles */
    margin-bottom: 5rem;
  }
