@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;
}


/* CONFIGURACIÓN GENERAL */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* 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 */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    display: none;
    padding: 10px 10px;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    z-index: 999;
    gap: 10px 0px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
}

.dropdown.active .dropdown-menu {
    display: grid;
}

.dropdown-menu a {
    font-size: 0.95rem;
    text-align: center;
    
    white-space: nowrap;

    transition: color 0.2s ease;
}

.dropdown-menu a:hover {
    color: #1e63d6; /* azul profesional */
}

header.scrolled .dropdown-menu a {
    color: black;
}

header.scrolled .dropdown-menu a:hover {
    color: #1e63d6;
}

/* FIN DEL DROPDOWN DE PROYECTOS */

/* CERRAMOS FUNCIONES PARA MOVIL DE ENCABEZADO */
/* FONDO PRINCIPAL */
.fondo {
    
    margin-top: 0px;
    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: rgba(255, 255, 255, 0.55); /* 👈 controla la claridad */
    z-index: 1;
}

/* =======================
   BANNER DEL PROYECTO
======================= */
.banner-proyecto {
    width: 100%;
    height: 450px;
    margin-top: 0px; /* altura del header */
    background: url("upano-img/upano.jpg") top center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center 35%;
    z-index: 2;
}

.banner-proyecto::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;          /* grosor de la línea */
    background: #000;     /* negro sólido */
}

/* Capa oscura para que el texto se lea */
.banner-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* 👇 degradado profesional */
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.8) 0%,
        rgba(255,255,255,0.7) 20%,
        rgba(255,255,255,0.5) 40%,
        rgba(255,255,255,0.4) 60%,
        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: "Fuente2", cursive;
}

/* SUBTÍTULO */
.banner-overlay p {
    font-size: 3.8rem;
    color: black;
    font-style: bold;
    margin-top: 10px;
 
    font-family: "Fuente", cursive;
}

/* =======================
   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: rgba(60, 120, 200, 0.85); /* 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: "Fuente2", cursive;
}

.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 */
}

/* TEXTO DESCRIPCIÓN */
.descripcion-proyecto {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.5;
    color: #222;
    text-align: justify;
    margin-bottom: 10px;
}

.franja-plano {
    background-color: rgba(255, 255, 255, 0.85);
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.franja-plano::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

/* línea inferior */
.franja-plano::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

.franja-plano h2 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: #1b2a3a;
    font-family: "Fuente2", cursive;
}

/* =======================
   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: 905px;
    height: 1026px;
    object-fit: cover;
    border-radius: 40px;
}

/* FINALIZAMOS CONFIGURACION DE PLANOS Y DESCRIPCION  */

/* ============================================  */
/* EMPEZAMOS PROGRAMACION DE TABLAS DE LOTES  */
/* ============================================  */

.fila-tabla {
    margin: 0px;
}

.titulo-lateral-tabla {
    background: #2f6fa3;
    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: "Fuente2", cursive;
}

.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: #2f6fa3;
}

.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(0, 180, 180, 0.4);
}

/* 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("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: #2f6fa3;
  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: "Fuente2", cursive;
}

.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: 380px;
  }

  .banner-overlay h1 {
    font-size: 4.5rem;
    padding-top: 100px;
  }

  .banner-overlay p {
    font-size: 3.5rem;
    font-style: bold;
  }

  /* ---------- 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;
  }

  /* ---------- 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;
  }

  /* COLUMNA 2 – MAPA */
  .footer-columna iframe {
    width: 120%;
    height: 100%;           /* 👈 llena TODO el alto */
    min-height: 180px;
    border-radius: 8px;
  }

  /* 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;
  }

  .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;
    }

}