@font-face {
    font-family: "Fuente";
    src: url("../fonts/Allura-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Fuente2";
    src: url("../fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}


/* FUENTE PARECIDA A LA DEL LOGO */
/* font-family: 'StonerExtraBold', sans-serif; */

/* ENCERRAR LAS DESCRIPCIONES EN CUADROS SOMBRAS

font-family: 'StonerExtraBold', sans-serif;
background-color: rgba(60, 120, 200, 0.85);
border-radius: 30px;
padding: 80px 20px; */


/* CONFIGURACIÓN GENERAL */

body {
    margin: 0;
    font-family: 'StonerExtraBold', sans-serif;
    overflow-x: hidden;
}

/* ===================== BOTÓN ATRÁS ===================== */
.btn-atras {
    position: fixed;
    top: 130px;   /* 👈 antes 20px, ahora queda debajo del logo */
    left: 20px;
    z-index: 1100;

    display: flex;
    align-items: center;
    gap: 6px;

    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 30px;
    padding: 10px 18px;

    font-family: 'StonerExtraBold', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: #000;
    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-atras span {
    font-size: 1.2rem;
    line-height: 1;
}

.btn-atras:hover {
    background: rgba(60, 120, 200, 0.85);
    color: white;
    transform: translateX(-3px);
}

@media (max-width: 1200px) {
    .btn-atras {
        top: 170px;   /* 👈 el header en móvil es más alto (logo de 100px) */
        left: 15px;
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

/* CONFIGURACIÓN ENCABEZADO */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: black;
    transition: background 0.3s ease;
}

header.scrolled .hamburger span {
    background: white;
}

/* BARRA SUPERIOR */

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 100px;
    box-sizing: border-box;
    z-index: 1000;

    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(60, 120, 200, 0.85);
}
header.scrolled .menu a {
    color: white; /* el color que quieras al hacer scroll */
}

.logo img {
    height: 70px;   /* controla tamaño */
    width: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 50px;
}

.menu a {
    color: black;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

#btn-proyectos::after {
    content: "▾";                 /* flecha hacia abajo */
    margin-left: 6px;
    font-size: 0.75em;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* CERRAMOS CONFIGURACION DE ENCABEZADO */
/* DROPDOWN DE PROYECTOS */

/* EL CONTENEDOR PADRE */
.dropdown {
    position: relative; /* Clave para que el menú se posicione respecto a este botón */
}

/* EL MENÚ DESPLEGABLE (Igual para ambos) */
.dropdown-menu {
    position: absolute;
    top: 100%;       /* Aparece justo debajo del texto "Proyectos" */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Pequeño margen inicial */

    display: none;
    opacity: 0;

    /* Estética Profesional */
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    border-top: 3px solid #cf9b3f;

    /* Scroll Dinámico */
    width: 260px;
    max-height: 320px; /* Altura para el scroll */
    overflow-y: auto;
    padding: 0 0 8px;
    z-index: 2000;

    transition: all 0.3s ease;
}

.dropdown-menu::before {
    content: "NUESTROS PROYECTOS";
    display: block;
    padding: 14px 22px 10px;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #8a8a86;
    font-weight: 500;
}

/* Estado Activo */
.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(2px); /* Se pega al botón */
}

/* Scrollbar Elegante */
.dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #cf9b3f;
    border-radius: 10px;
}

/* Enlaces internos */
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px !important;
    font-size: 0.95rem !important;
    color: #23262b !important;
    text-align: left;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.dropdown-menu a::before {
    content: "⌂";
    font-size: 17px;
    color: #cf9b3f;
    line-height: 1;
}

.dropdown-menu a:hover {
    background: #f8f6f1;
    color: #23262b !important;
    border-left-color: #cf9b3f;
    padding-left: 26px !important;
}

@media (max-width: 1200px) {
    /* Mantenemos el absolute para que flote sobre el resto del menú */
    .dropdown-menu {
        position: absolute; 
        left: auto;
        right: 0;      /* Se alinea al borde derecho del botón proyectos */
        transform: translateY(5px); /* Distancia mínima del botón */
        width: 220px;  /* Un poco más angosto para celulares */
        background: white; /* Más sólido en móvil para legibilidad */
    }

    /* Evitamos que el transform de escritorio interfiera */
    .dropdown.active .dropdown-menu {
        transform: translateY(2px); 
    }
    
    /* Aseguramos que el menú principal (nav.menu) no corte el dropdown */
    .menu {
        overflow: visible !important; 
    }
}

/* FIN DEL DROPDOWN DE PROYECTOS */

/* CERRAMOS FUNCIONES PARA MOVIL DE ENCABEZADO */
/* FONDO PRINCIPAL */
.fondo {
    
    margin-top: 0px;
    background-color: #ffffff;
    /* background: url("Arte-Macas.webp") top center / cover no-repeat; */
    min-height: 100vh; 
    
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0px;
}
.fondo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255, 255, 255); /* 👈 controla la claridad */
    z-index: 1;
}

/* =======================
   BANNER DEL PROYECTO
======================= */

.banner-proyecto {
    width: 100%;
    height: 600px;
    background-color: #f4f4f4; /* Fondo para los espacios vacíos */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Corta si la imagen sobresale */
    z-index: 2;
}

.imagen-personalizada {
    /* La imagen ocupa todo el espacio del banner */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
}

.banner-proyecto::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #000;
    z-index: 3; /* Por encima de la imagen */
}

.banner-overlay {
    position: absolute; /* Para flotar sobre la imagen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 4; /* El texto siempre arriba de todo */
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.6) 0%,
        rgba(255,255,255,0) 100%
    );
}


/* TÍTULO DEL BANNER */
.banner-overlay h1 {
    font-size: 6rem;
    color: black;
    margin: 0;
    padding-top: 50px;
    font-family: 'StonerExtraBold', sans-serif;
}

/* SUBTÍTULO */
.banner-overlay p {
    font-size: 3.5rem;
    color: black;
    font-style: italic;
    margin-top: 10px;
    font-family: 'StonerExtraBold', sans-serif;
    /* font-family: "Fuente", cursive; */
}

/* ===== TÍTULO Y SLOGAN MÁS PEQUEÑOS, ABAJO A LA IZQUIERDA ===== */
.banner-overlay{
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 0 40px 40px 120px;
    box-sizing: border-box;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.55) 0%,
        rgba(255,255,255,0.25) 25%,
        rgba(0,0,0,0) 50%,
        rgba(0,0,0,0.55) 100%
    );
}
.banner-overlay h1{
    font-size: 2.2rem;
    color: #ffffff;
    padding-top: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.banner-overlay p{
    font-size: 1.15rem;
    color: #ffffff;
    margin-top: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

/* ===== BOTÓN "COTIZA AQUÍ" ABAJO A LA DERECHA DEL BANNER ===== */
.btn-cotiza{
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 5;
    display: inline-block;
    background: #cf9b3f;
    color: #0b2440;
    font-family: 'StonerExtraBold', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    transition: background .3s, transform .2s;
}
.btn-cotiza:hover{
    background: #e0b25c;
    transform: translateY(-2px);
}
@media (max-width: 1200px){
    .btn-cotiza{
        right: 20px;
        bottom: 20px;
        font-size: 0.9rem;
        padding: 12px 22px;
    }
}


/* =======================
   CONTENIDO DEL PROYECTO
======================= */

.proyecto-contenido {
    width: 100%;
    max-width: 100%;
    margin-top: 0; /* elimina separación */
    padding: 0px;
    z-index: 2;

}

.fila-descripcion {
    display: flex;
    align-items: center;
    margin: 80px 0;
    position: relative;

}

.titulo-lateral {
    background-color: #0b2440; /* azul claro */
    padding: 5px 30px;
    padding-left: clamp(20px, 20vw, 350px);
    min-width: auto;
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;   /* 👈 CLAVE */
    max-width: 45%; 
}

.titulo-lateral h2 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    color: white;
    font-family: 'StonerExtraBold', sans-serif;
}

.fila-descripcion .franja-texto {
    margin-left: 100px;
    margin-right: 80px;          /* separación del título */
    padding: 20px;
    background: rgba(255, 255, 255, 1);
    border-radius: 15px;
    flex: 1 1 0%;
    min-width: 280px;
    max-width: 900px;                   /* ocupa el resto del ancho */
}

/* ===== SIN TÍTULO LATERAL: DESCRIPCIÓN (izq) + FORMULARIO "¿INTERESADO?" (der, más grande) ===== */
.fila-descripcion .franja-texto{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 40px;
    max-width: 1400px;
    margin-left: 60px;
    margin-right: 60px;
}
.descripcion-col{
    flex: 1 1 340px;
    min-width: 260px;
}
.descripcion-col .descripcion-proyecto{
    height: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.form-col{
    flex: 1 1 420px;
    min-width: 320px;
    max-width: 480px;
    display: flex;
}
.form-interesado{
    background: #ffffff;
    border: 2px solid #0b2440;
    border-radius: 22px;
    padding: 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(11,36,64,.15);
    font-family: 'StonerExtraBold', sans-serif;
}
.form-interesado h3{
    margin: 0;
    color: #0b2440;
    font-size: 1.8rem;
}
.form-interesado .form-subtitulo{
    margin: 0 0 8px;
    color: #555;
    font-size: 1.1rem;
    font-family: 'StonerExtraBold', sans-serif;
}
.form-interesado input{
    padding: 16px 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    color: #222;
}
.form-interesado input:focus{
    outline: none;
    border-color: #0b2440;
}
.form-interesado button{
    margin-top: 8px;
    background: #0b2440;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s;
    font-family: 'StonerExtraBold', sans-serif;
}
.form-interesado button:hover{
    background: #163a63;
}


/* TEXTO DESCRIPCIÓN */
.descripcion-proyecto {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.5;
    color: #000000;
    text-align: justify;
    margin-bottom: 10px;
    font-family: 'StonerExtraBold', sans-serif;
    border-radius: 30px;
    padding: 80px 20px;
    background-color: transparent;
}

.franja-plano {
    background-color: #0b2440;
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.franja-plano::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

/* línea inferior */
.franja-plano::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

.franja-plano h2 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'StonerExtraBold', sans-serif;
}

/* =======================
   PLANO DE LOTES
======================= */
.plano-lotes {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 0px;
    overflow-x: hidden;
}

#plano-lotes {
    scroll-margin-top: 200px; /* ajusta a la altura real del header */
}

.plano-lotes img {
    width: 1478px;
    height: 945px;
    object-fit: contain;
    border-radius: 40px;
}

/* FINALIZAMOS CONFIGURACION DE PLANOS Y DESCRIPCION  */


/* =======================
   PLAN MAESTRO
======================= */
.plan-maestro {
    width: 100%;
    text-align: center;
    padding: 60px 20px 55px;
    border-bottom: 2px solid #e5d9c3;
    box-sizing: border-box;
}

.titulo-plan-maestro h2 {
    margin: 0 0 45px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b2440;
    font-family: 'StonerExtraBold', sans-serif;
}

.plan-maestro-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 70px;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-maestro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
}

.plan-maestro-icono {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}

.plan-maestro-item p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b2440;
    font-family: 'StonerExtraBold', sans-serif;
    line-height: 1.35;
}

/* ============================================  */
/* EMPEZAMOS PROGRAMACION DE TABLAS DE LOTES  */
/* ============================================  */

.fila-tabla {
    margin: 0px;
}

.titulo-lateral-tabla {
    background: #0b2440;
    padding: 0px 30px;
    display: inline-flex;   /* 👈 SOLO altura del texto */
    padding-left: clamp(40px, 22vw, 450px);
    
}

.titulo-lateral-tabla h2 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    color: white;
    font-family: 'StonerExtraBold', sans-serif;
}

.tabla-contenedor {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin-bottom: 50px;
    padding-top: 50px;
}

.tabla-lotes {
    width: 620px;
    border-collapse: separate;   /* 👈 CLAVE */
    border-spacing: 0px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

}

.tabla-lotes thead {
    background: #0b2440;
}

.tabla-lotes thead th {
    color: white;
    padding: 14px;
    font-size: 1.1rem;
}

/* SOLO esquinas superiores */
.tabla-lotes thead th:first-child {
    border-top-left-radius: 15px;
}

.tabla-lotes thead th:last-child {
    border-top-right-radius: 15px;
}

.tabla-lotes th {

    color: white;
    padding: 14px;
    font-size: 1.8rem;
}

.tabla-lotes td {
    padding: 12px;
    text-align: center;
    border-bottom: 0px solid #eee;
    font-size: 1rem;
}

.tabla-lotes tbody tr:hover {
    background-color: rgba(60, 120, 200, 0.85);
}

/* ESTADOS */
.disponible {
    color: green;
    font-weight: 600;
}

.vendido {
    color: red;
    font-weight: 600;
}
/* CONFIGURACION COMPRA AHORA */

/* ===== EFECTO COMPRA AHORA (IMAGEN PNG) ===== */
.tabla-lotes tr[data-estado="disponible"] {
    position: relative;
    cursor: pointer;
}

/* BURBUJA (imagen PNG) */
.tabla-lotes tr[data-estado="disponible"]::after {
    content: "  Compra ya";
    position: absolute;
    right: -70px;          /* ajusta a tu gusto */
    top: -10%;
    transform: translateY(-50%);
    width: 90px;           /* tamaño de tu burbuja */
    height: 80px;           /* tamaño de tu burbuja */
    background-image: url("../img/iconos/burbuja3.png");
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Mostrar al hover */
.tabla-lotes tr[data-estado="disponible"]:hover::after {
    opacity: 1;
}

/* ============================================  */
/* CONFIGURACION DE LA GALERIA DE IMAGENES Y VIDEOS  */
/* ============================================  */

.fila-tabla {
    margin: 0px;
}

.galeria {
  margin-top: 0px;

}

.titulo-galeria {
  background: #0b2440;
  padding: 0 30px;
  display: inline-flex;
  padding-left: clamp(40px, 22vw, 450px);
}

.titulo-galeria h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: white;
  font-family: 'StonerExtraBold', sans-serif;
}

.grid-imagenes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0px; /* pegadas */
  padding-top: 50px;
}

.grid-imagenes img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 0px; /* sin bordes */
}

.grid-imagenes img {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.grid-imagenes img:hover {
  transform: scale(1.05);
}

.grid-imagenes {
  overflow: hidden;
}

.videos {
  margin-top: 60px;

}

.grid-videos {
  display: grid;
  grid-template-columns: repeat(2, 500px); /* ancho exacto */
  gap: 40px;
  padding-top: 50px;
  justify-content: center;
  margin-bottom: 50px; /* 👈 espacio para footer */
}

.video-card {
  width: 500px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

/* el video */
.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* contenedor del iframe */
.video-container {
  width: 100%;
  height: 100%;
}

/* CONFIGURACION DEL LIGHBOX PARA LAS IMAGENES  */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox .prev { left: 40px; }
.lightbox .next { right: 40px; }


/* CONFIGURACION DEL FOOTER O PIE DE PAGINA */
.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    width: 100%;
    padding: 5px;

}
.footer-contenido {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
 
}
.footer-columna p {
    padding: 5px 10px;
    margin: 0;
    font-size: 1rem;
}

.footer-columna iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.redes {
    display: grid;
    grid-template-columns: repeat(2, 50px);
    gap: 40px;
    padding: 20px 150px;
}

.redes a {
    width: 60px;
    height: 60px;
    display: block;
}

.redes img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-separador {
    border: none;
    height: 1px;
    background-color: white;
    margin: 0px;
}
.footer-derechos {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    margin: 2;
}

/*
CONFIGURACION DEL BOTON DE WHATSAP
*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2000;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float::after {
    content: "Chatea con nosotros";
    position: absolute;
                 /* arriba del botón */
    right: 0%;
    top: 40%;
    transform: translateX(-50%) translateY(10px);

    background: rgba(255, 255, 255, 0.65);
    color: black;
    padding: 10px 16px;
    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}


.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* o cover si quieres que llene más */
    display: block;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}


@media (max-width: 1200px) {

    /* ============================================  */
    /* CONFIGURACION DEL ENCABEZADO EN CELULAR   */
    /* ============================================  */

    header {
        padding: 50px 60px;
        height: 110px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        width: 45px;
        height: 5px;
    }

    .logo img {
        height: 100px;   /* controla tamaño */
    }

    .menu {
        position: absolute;
        top: 100%;
        right: 10px;

        flex-direction: column;
        gap: 20px;

        background: rgba(255, 255, 255, 0.85);
        padding: 20px;
        border-radius: 12px;

        width: 30vw;          /* 👈 CLAVE */
        max-width: 320px;     /* 👈 NO más grande */
        max-height: 50vh;     /* 👈 no se sale */
        display: none;
    }

    .menu a {
        font-size: 1.8rem;
        padding: 2px 0;
    }

    #btn-proyectos::after {
        content: "◀";             /* flecha a la izquierda */
        margin-left: 10px;
    }

    header .menu.active {
        display: flex;
    }

    header.scrolled .menu a {
        color: black;
    }

    /* ============================================  */
    /* CONFIGURACION DEL MENU PROYECTOS PARA CELULAR   */
    /* ============================================  */

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        top: -50%;
        right: 160%;
        left: auto;

        transform: none;

        grid-template-columns: repeat(1, 1fr); /* ✅ 3 columnas */
        grid-auto-rows: auto;                  /* filas automáticas */

        min-width: 10px; /* 3 × 180px */
        padding: 15px;

        gap: 15px;
    }

    .dropdown-menu a{
        font-size: 1.8rem;
    }

  /* ---------- BANNER ---------- */
  .banner-proyecto {
    height: 500px;
  }

  .banner-overlay h1 {
    font-size: 4.5rem;
    padding-top: 100px;
  }

  .banner-overlay p {
    font-size: 3.5rem;
    font-style: bold;
  }

  .banner-overlay{
    padding: 0 20px 25px 20px;
  }
  .banner-overlay h1{
    font-size: 1.7rem;
    padding-top: 0;
  }
  .banner-overlay p{
    font-size: 1rem;
  }


  /* ---------- DESCRIPCIÓN PROYECTO ---------- */
  .fila-descripcion {
    flex-direction: column;
    align-items: stretch;
    margin: 40px 0;
  }

  .titulo-lateral {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
  }

  .fila-descripcion .franja-texto {
    margin: 20px;
    min-width: auto;
  }

  .fila-descripcion .franja-texto{
    flex-direction: column;
  }
  .descripcion-col,
  .form-col{
    flex: 1 1 100%;
    width: 100%;
  }



  /* ---------- PLAN MAESTRO ---------- */
  .plan-maestro {
    padding: 40px 20px 35px;
  }

  .titulo-plan-maestro h2 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    margin-bottom: 30px;
  }

  .plan-maestro-grid {
    gap: 35px 25px;
  }

  .plan-maestro-item {
    width: 130px;
  }

  .plan-maestro-icono {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .plan-maestro-item p {
    font-size: 0.95rem;
  }

  /* ---------- TÍTULO PLANO ---------- */
  .franja-plano h2 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
  }

  /* ---------- PLANO LOTES ---------- */
  .plano-lotes {
    width: 100%;
    padding: 30px 30px;       /* padding lateral real */
    box-sizing: border-box;  /* 🔥 CLAVE */
    overflow-x: hidden;      /* evita desbordes */

    margin: 0px;
  }

  .tabla-lotes tr[data-estado="disponible"]::after {
      display: none;
  }

  #plano-lotes {
        scroll-margin-top: 180px;
    }
    
  .plano-lotes img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;          /* 🔥 elimina espacios raros */
    margin: 0 auto;          /* centra la imagen */
    border-radius: 16px;
  }

  /* ---------- TABLAS ---------- */
  .tabla-contenedor {
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
    padding-left: 0;         /* 🔥 quitamos empuje lateral */
    align-items: center;     /* 🔥 CENTRA */
  }

  .tabla-lotes {
    width: 100%;             /* ocupa todo el ancho */
    max-width: 420px;        /* no se ve gigante */
    margin: 0 auto;          /* centra */
  }

  .tabla-lotes th,
  .tabla-lotes td {
    font-size: 1.5rem;
    padding: 10px;
  }

  /* ---------- GALERÍA ---------- */
  .grid-imagenes {
    grid-template-columns: repeat(2, 1fr);

    padding-left: 15px;
    padding-right: 15px;
  }

  .grid-imagenes img {
    height: 220px;
  }

  /* ---------- VIDEOS ---------- */
  .grid-videos {
    grid-template-columns: 1fr;
    padding: 20px;
    justify-items: center; /* 🔥 CENTRA los items */
  }

  .video-card {
    width: 50%;
    height: 220px;
  }

  /* ============================================  */
    /* IMAGEN DE VISUALIZACION PARA CELULAR     */
    /* ============================================  */

  .lightbox .close {
    top: 40px;
    right: 60px;
    font-size: 100px;
    }

    .lightbox .nav {
    font-size: 100px;
    }

  /* ============================================  */
    /* FOOTER PARA CELULAR      */
    /* ============================================  */

  .footer {
    padding: 0;
  }

  .footer-contenido {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 0.6fr; /* 👈 mapa domina */
    gap: 10px;
    padding: 20px;
    align-items: stretch; /* 👈 todas las columnas mismo alto */
  }

  /* COLUMNA 1 – INFO */
  .footer-columna p {
    font-size: 1.2rem;      /* 👈 más pequeña */
    line-height: 1.3;
    padding: 2px 4px;
    text-align: left;
    font-family: 'StonerExtraBold', sans-serif;
  }

  /* COLUMNA 2 – MAPA */
  .footer-columna iframe {
    width: 120%;
    height: 100%;           /* 👈 llena TODO el alto */
    min-height: 180px;
    border-radius: 8px;
    font-family: 'StonerExtraBold', sans-serif;
  }

  /* COLUMNA 3 – REDES */
  .redes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* 👈 pegado a la derecha */
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
    padding-right: 40px;
  }

  .redes a {
    width: 55px;            /* 👈 más pequeños */
    height: 55px;
    font-family: 'StonerExtraBold', sans-serif;
  }

  .footer-derechos {
    font-size: 0.7rem;
    padding: 6px;
  }

  /* ============================================  */
    /* ICONO DE WATSAP CELULAR     */
    /* ============================================  */

    .whatsapp-float {
        width: 80px;
        height: 80px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* o cover si quieres que llene más */
        display: block;
    }

    .whatsapp-float::after {
        display: none;
    }

}
/* =========================================================
   VISOR DE IMÁGENES (imagen grande + miniaturas, con video)
   ========================================================= */
.visor-imagenes {
    margin-top: 40px;
}

.visor-principal {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1220;
    box-shadow: 0 20px 45px rgba(11, 36, 64, .3);
}

.visor-media {
    width: 100%;
}

.visor-media img,
.visor-media video,
.visor-media iframe {
    width: 100%;
    height: 560px;
    display: block;
    border: none;
    transition: opacity .2s ease;
}

.visor-media img {
    object-fit: contain;
    background: #000;
    cursor: zoom-in;
}

.visor-media video {
    object-fit: cover;
    background: #000;
}

.visor-media iframe {
    object-fit: contain;
    background: #000;
}

.visor-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(11, 36, 64, .55);
    backdrop-filter: blur(2px);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}
.visor-flecha:hover {
    background: #cf9b3f;
    color: #0b2440;
    transform: translateY(-50%) scale(1.06);
}
.visor-prev { left: 18px; }
.visor-next { right: 18px; }

.visor-miniaturas {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 18px 4px 8px;
    max-width: 1100px;
    margin: 0 auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cf9b3f transparent;
}
.visor-miniaturas::-webkit-scrollbar { height: 6px; }
.visor-miniaturas::-webkit-scrollbar-thumb { background: #cf9b3f; border-radius: 10px; }

.visor-miniatura {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
    cursor: pointer;
    opacity: .6;
    border: 3px solid transparent;
    transition: opacity .25s ease, border-color .25s ease, transform .2s ease;
}
.visor-miniatura:hover { opacity: .9; }
.visor-miniatura.activa {
    opacity: 1;
    border-color: #cf9b3f;
    transform: translateY(-2px);
}

/* Miniatura de video: mismo tamaño que las de imagen, con ícono de play encima */
.visor-miniatura-video {
    position: relative;
    width: 150px;
    height: 100px;
    border-radius: 8px;
    flex: 0 0 auto;
    cursor: pointer;
    opacity: .6;
    overflow: hidden;
    border: 3px solid transparent;
    background: #000;
    transition: opacity .25s ease, border-color .25s ease, transform .2s ease;
}
.visor-miniatura-video video,
.visor-miniatura-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.visor-miniatura-video .visor-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.3rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .7);
    pointer-events: none;
}
.visor-miniatura-video:hover { opacity: .9; }
.visor-miniatura-video.activa {
    opacity: 1;
    border-color: #cf9b3f;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .visor-media img,
    .visor-media video,
    .visor-media iframe { height: 340px; }
    .visor-principal { border-radius: 8px; }
    .visor-flecha { width: 38px; height: 38px; font-size: 1rem; }
    .visor-prev { left: 10px; }
    .visor-next { right: 10px; }
    .visor-miniatura { width: 100px; height: 72px; }
    .visor-miniatura-video { width: 100px; height: 72px; }
}


/* =======================
   RESERVA CTA
======================= */
.reserva-cta {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #0b2440 0%, #123256 100%);
    padding: 70px 20px;
    box-sizing: border-box;
    text-align: center;
    z-index: 2;
}

.reserva-cta-decor {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.reserva-cta-decor-1 {
    width: 260px;
    height: 260px;
    top: -80px;
    left: -60px;
}

.reserva-cta-decor-2 {
    width: 340px;
    height: 340px;
    bottom: -140px;
    right: -80px;
    border-color: rgba(207, 155, 63, 0.18);
}

.reserva-cta-contenido {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.reserva-cta-subtitulo {
    color: #e7c789;
    font-size: 1.1rem;
    margin: 0 0 12px;
    font-family: 'StonerExtraBold', sans-serif;
    letter-spacing: 0.5px;
}

.reserva-cta-titulo {
    color: #ffffff;
    font-size: 2.6rem;
    margin: 0 0 34px;
    font-family: 'StonerExtraBold', sans-serif;
    font-weight: 700;
}

.reserva-cta-monto {
    position: relative;
    display: inline-block;
    color: #ffffff;
}

.reserva-cta-subrayado {
    position: absolute;
    left: -4px;
    bottom: -16px;
    width: calc(100% + 8px);
    height: 22px;
}

.reserva-cta-btn {
    display: inline-block;
    background: #cf9b3f;
    color: #0b2440;
    font-family: 'StonerExtraBold', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    transition: background .3s, transform .2s;
}

.reserva-cta-btn:hover {
    background: #e0b25c;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .reserva-cta {
        padding: 45px 20px;
    }

    .reserva-cta-subtitulo {
        font-size: 0.95rem;
    }

    .reserva-cta-titulo {
        font-size: 1.9rem;
        margin-bottom: 26px;
    }

    .reserva-cta-btn {
        padding: 13px 28px;
        font-size: 0.9rem;
    }

    .reserva-cta-decor-1 {
        width: 150px;
        height: 150px;
    }

    .reserva-cta-decor-2 {
        width: 190px;
        height: 190px;
    }
}


/* =======================
   VIDEOS DEL PROYECTO
======================= */
.videos-proyecto {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.titulo-videos h2 {
    margin: 0 0 20px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b2440;
    font-family: 'StonerExtraBold', sans-serif;
}

.videos-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.video-slot {
    position: relative;
    flex: 1 1 480px;
    max-width: 520px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #f4ede1;
}

.video-slot.vertical {
    flex: 0 1 220px;
    max-width: 220px;
    aspect-ratio: 9 / 16;
}

.video-slot iframe,
.video-slot video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-slot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px dashed rgba(207, 155, 63, 0.6);
    border-radius: 16px;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.video-slot-icono {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(207, 155, 63, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #cf9b3f;
}

.video-slot-placeholder p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #0b2440;
    font-family: 'StonerExtraBold', sans-serif;
}

@media (max-width: 1200px) {
    .videos-proyecto {
        padding: 40px 20px;
    }

    .titulo-videos h2 {
        font-size: clamp(1.4rem, 5vw, 1.9rem);
        margin-bottom: 25px;
    }

    .videos-grid {
        gap: 20px;
    }

    .video-slot {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
