:root{
    /* ===== PALETA ELEGANTE AZULES & GRISES ===== */
    --blue-main:#0F2A44;
    --blue-sec:#1F4E79;
    --blue-accent:#3A7CA5;

    --gray-dark:#1C1F26;
    --gray-mid:#4B5563;
    --gray-light:#E5E7EB;

    --white:#FFFFFF;
    --white-soft:#F8FAFC;

    --glass:rgba(255,255,255,0.08);
  }

  *{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
  }

  body{
    background:var(--white-soft);
    color:var(--gray-dark);
    scroll-behavior:smooth;
  }

  section{
  padding:100px 8%;
}

#inicio{
  padding:0; /* ¡û ESTO ARREGLA EL HERO */
}

  h2{
    text-align:center;
    font-size:2.4rem;
    margin-bottom:60px;
    color:var(--blue-main);
    letter-spacing:1px;
  }

  /* ================= MENU ================= */
  nav{
    position:fixed;
    top:40px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(15,42,68,0.75);
    backdrop-filter:blur(12px);
    padding:15px 30px;
    border-radius:50px;
    z-index:1000;
    box-shadow:0 10px 30px rgba(15,42,68,0.35);
  }

  nav ul{
    display:flex;
    gap:25px;
    list-style:none;
  }

  nav a{
    color:var(--white);
    text-decoration:none;
    font-size:0.9rem;
    letter-spacing:1px;
    transition:0.3s;
  }

  nav a:hover{
    color:var(--blue-accent);
  }

/* ================= HERO ================= */

#inicio{
  height:100vh;
  padding:0;
  background-image:url("imagenes/IMG_3270.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

#inicio::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(15,42,68,0.45);
  backdrop-filter: blur(2px);
}

/* Contenido */

.hero-content{
  position:relative;
  z-index:1;
  max-width:800px;
  padding:20px;
}

.hero-content h1{
  font-size:3.5rem;
  letter-spacing:3px;
  color:var(--white);
  margin-bottom:15px;
}

.hero-content p{
  font-size:1.2rem;
  color:var(--gray-light);
  margin-bottom:30px;
  line-height:1.6;
}

/* Bot¨®n hero */

.hero-btn{
  display:inline-block;
  padding:14px 36px;
  background:var(--blue-accent);
  color:var(--white);
  text-decoration:none;
  border-radius:40px;
  font-size:0.9rem;
  letter-spacing:1px;
  transition:.3s;
}

.hero-btn:hover{
  background:var(--blue-sec);
}

/* ================= DEPARTAMENTOS FULL CARRUSEL ================= */

/* ===== CARRUSEL PREMIUM ===== */

.carousel.full{
  position:relative;
  width:100%;
  height:85vh;
  overflow:hidden;
}

.carousel-track{
  position:relative;
  width:100%;
  height:100%;
}

.slide{
  position:absolute;
  width:100%;
  height:100%;
  opacity:0;
  transition:opacity 1s ease;
}

.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.slide.active{
  opacity:1;
  z-index:2;
}

/* Overlay elegante */

.overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.15));
  z-index:3;
  pointer-events:none;
}

/* Flechas */

.carousel button{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,0.2);
  backdrop-filter:blur(6px);
  color:white;
  border:none;
  font-size:2.5rem;
  padding:10px 18px;
  border-radius:50%;
  cursor:pointer;
  z-index:4;
  transition:.3s;
}

.carousel button:hover{
  background:rgba(255,255,255,0.4);
}

.prev{ left:40px; }
.next{ right:40px; }

/* Indicador */

.indicator{
  position:absolute;
  bottom:30px;
  right:40px;
  color:white;
  font-size:1rem;
  letter-spacing:2px;
  z-index:4;
}

/* Responsive */

@media(max-width:900px){
  .carousel.full{
    height:60vh;
  }
}

/* ===== LIGHTBOX CORREGIDO ===== */

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:none;
  z-index:2000;
}

.lightbox.active{
  display:block;
}

/* Contenedor centrado SOLO para la imagen */
.lightbox-content{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
}

.lightbox img{
  max-width:85vw;
  max-height:85vh;
  border-radius:18px;
  box-shadow:0 25px 60px rgba(0,0,0,0.5);
}

/* Flechas */
.lb-prev,
.lb-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.6);
  color:#fff;
  border:none;
  font-size:2.5rem;
  padding:10px 18px;
  border-radius:50%;
  cursor:pointer;
  z-index:2100;
}

.lb-prev{ left:40px; }
.lb-next{ right:40px; }


  

  /* ================= TESTIMONIOS ================= */
  .testimonios{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
    text-align:center;
  }

  .testimonio img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:20px;
    border:4px solid var(--blue-accent);
  }

  /* ================= UBICACION ================= */
 


  /* ================= GALERIA ================= */
  .galeria{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.galeria div{
  overflow:hidden;
  border-radius:18px;
  cursor:pointer;
}

.galeria img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .5s ease;
}

.galeria div:hover img{
  transform:scale(1.12);
}
  /* ===== CONTROL VISIBILIDAD GALERIA ===== */

.hidden{
  opacity:0;
  max-height:0;
  overflow:hidden;
  pointer-events:none;
}

.btn-galeria-container{
  text-align:center;
  margin-top:40px;
}

#toggleGaleria{
  padding:14px 40px;
  border:none;
  border-radius:40px;
  cursor:pointer;
}
/* ===== AMENIDADES DINAMICO ===== */

.amenidades{
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding-bottom:10px;
  scroll-behavior:smooth;
}

.amenidades img{
  width:280px;
  border-radius:18px;
  flex-shrink:0;
  cursor:pointer;
  transition: transform .4s ease;
  box-shadow:0 15px 35px rgba(15,42,68,0.15);
}

.amenidades img:hover{
  transform:scale(1.08);
}
.extra{
  transition: all .4s ease;
}


  /* ===== CONTACTO + UBICACION UNIFICADO ===== */

#contacto-ubicacion{
  background:var(--white);
}

.contacto-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:start;
}

.contacto-mapa iframe{
  width:100%;
  height:420px;
  border-radius:22px;
  box-shadow:0 25px 60px rgba(15,42,68,0.2);
  margin-bottom:25px;
}

.info-ubicacion p{
  margin-bottom:15px;
  color:var(--gray-mid);
}

.info-ubicacion ul{
  padding-left:20px;
  color:var(--gray-mid);
}

.contacto-form form{
  display:grid;
  gap:20px;
  background:var(--white-soft);
  padding:40px;
  border-radius:24px;
  box-shadow:0 25px 60px rgba(15,42,68,0.08);
}

/* Responsive */
@media(max-width:900px){
  .contacto-wrapper{
    grid-template-columns:1fr;
  }

  .contacto-mapa iframe{
    height:350px;
  }
}
  

  input, select, textarea{
    padding:15px;
    border-radius:12px;
    border:1px solid var(--gray-light);
    font-size:1rem;
    background:var(--white);
  }

  input:focus, select:focus, textarea:focus{
    outline:none;
    border-color:var(--blue-accent);
  }
/* Bot¨®n cerrar */
.lb-close{
  position:absolute;
  top:30px;
  right:40px;
  background:rgba(0,0,0,0.6);
  color:#fff;
  border:none;
  font-size:1.8rem;
  padding:8px 14px;
  border-radius:50%;
  cursor:pointer;
  z-index:2200;
  transition:0.3s;
}

.lb-close:hover{
  background:rgba(255,255,255,0.3);
}
  button:hover{
    background:var(--blue-main);
  }

  /* ================= FOOTER FUTURISTA ================= */
  footer{
    background:linear-gradient(135deg,var(--gray-dark),var(--blue-main));
    color:var(--white);
    padding:80px 8%;
  }

  .footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
  }

  footer h3{
    color:var(--white);
    margin-bottom:10px;
  }

  footer p, footer a{
    color:var(--gray-light);
    text-decoration:none;
  }

  .legal{
    margin-top:40px;
    text-align:center;
    font-size:0.9rem;
    opacity:0.8;
  }

  /* ================= RESPONSIVE ================= */
  @media(max-width:900px){
    .dept{
  grid-template-columns:1fr;
}

    .testimonios{
      grid-template-columns:1fr;
    }

    .hero-content h1{
      font-size:2.5rem;
    }
  }


  .concepto-imagen img{
    transform:none;
    margin-top:40px;
  }

  .concepto-texto h2{
    font-size:2.2rem;
  }

  /* ================= CONCEPTO SPLIT ================= */

#concepto{
  background:#0F2A44;
  padding:120px 8%;
  position:relative;
  overflow:hidden;
}

.concepto-wrapper{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  align-items:center;
  gap:60px;
}

.concepto-texto h2{
  font-size:3rem;
  color:#fff;
  margin-bottom:30px;
  line-height:1.2;
}

.concepto-texto p{
  background:#1F4E79;
  display:inline-block;
  color:#fff;
  padding:10px 14px;
  margin-bottom:15px;
  line-height:1.6;
  border-radius:6px;
}

.concepto-imagen{
  position:relative;
}

.concepto-imagen img{
  width:100%;
  border-radius:18px;
  box-shadow:0 40px 80px rgba(0,0,0,0.4);
  transform:translateY(-40px);
}
/* ================= DEPARTAMENTOS MODERNO ================= */

#departamentos{
  padding:120px 8%;
  background:#F8FAFC;
}

.dept.modern{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  margin-bottom:120px;
  align-items:start;
}

.dept.reverse{
  direction:rtl;
}

.dept.reverse > *{
  direction:ltr;
}

.carousel-col{
  display:flex;
  flex-direction:column;
}

.carousel{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  box-shadow:0 30px 70px rgba(15,42,68,0.15);
}

.carousel img{
  width:100%;
  flex-shrink:0;
}
#departamentos{
  padding:120px 8%;
  background:transparent;
}

.carousel-container{
  margin-bottom:100px;
}

.carousel-title{
  margin-top:20px;
  font-size:22px;
  font-weight:600;
}

.carousel-title.left{
  text-align:left;
}

.carousel-title.right{
  text-align:right;
}

/* ===== TITULOS ===== */

.dept-title{
  margin-top:25px;
  font-size:1.8rem;
  font-weight:500;
  color:#0F2A44;
  letter-spacing:1px;
}

.dept-title.left{
  text-align:left;
}

.dept-title.right{
  text-align:right;
}

/* ===== RESPONSIVE ===== */

@media(max-width:900px){

  .dept.modern{
    grid-template-columns:1fr;
    gap:40px;
  }

  .dept-title.left,
  .dept-title.right{
    text-align:center;
  }
  .concepto-wrapper{
    grid-template-columns:1fr;
  }
}