@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange-light: #ff9900;
  --main-background-color: #1c1c1e;
  --bg-card: #111111;
  --card-radius: 2.4rem;
  --accent: #ffb000;
}
html {
  font-size: 62.5%;
}
body {
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial;
  background: #1c1c1e;
  color: #fff;
}

:root {
  --header-h: 10vh;
}

.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
}

.intro-title {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6rem);
  color: #ff9900;
  opacity: 0;
}

/* Header (usa tus z-index + altura fija) */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header, 777);
  width: 100%;
  height: var(--header-h, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 8.5vh repeat(6, 1fr);
  align-items: center;
  gap: 1rem;
  padding-inline: var(--gutter, 16px);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.95), transparent);
  transition: height 0.35s ease, background 0.25s ease, inset 0.35s ease;
}

/* Marca */
.site-header__brand {
  grid-area: brand;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 2.4rem;
  color: var(--primary, var(--red-6));
  font-weight: 700;
  text-decoration: none;
  grid-column: 1/2;
  grid-row: 1/2;
}

.site-header__brand img {
  width: 4.5rem;
}

/* Toggle (hamburguesa) */
.menuToggle {
  grid-area: toggle;
  justify-self: end;
  inline-size: 45px;
  block-size: 45px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  grid-row: 1/2;
  grid-column: 3/4;
}

.menuToggle::before,
.menuToggle::after {
  content: "";
  position: absolute;
  inline-size: 22px;
  block-size: 2.5px;
  background: var(--orange-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.menuToggle::before {
  top: calc(50% - 6px);
}
.menuToggle::after {
  top: calc(50% + 6px);
  box-shadow: 0 -6px 0 var(--orange-light);
}

.menuToggle.open::before {
  top: 50%;
  transform: rotate(45deg);
}
.menuToggle.open::after {
  top: 50%;
  transform: rotate(-45deg);
  box-shadow: none;
}

/* NAV: por defecto oculta (mobile), aparece como overlay al abrir */
.site-nav {
  display: grid;
  position: fixed;
  inset: var(--header-h, 64px) 0 0 0; /* debajo del header */
  padding: 24px var(--gutter, 16px) calc(24px + env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6%);
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.site-nav__link {
  font-size: 2.8rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--fg, #fff);
  pointer-events: auto;
}

/* ESTADO ABIERTO: el header se estira y la nav se muestra */
.site-header.open {
  inset: 0; /* pantalla completa */
  height: 100dvh;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.25));
  backdrop-filter: blur(10px);
}

.site-header.open .site-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav {
  display: grid; /* podés usar flex column también */
  align-content: start; /* <— evita “estirar” el contenido */
  row-gap: 12px; /* <— ajustá este valor a gusto */
  /* lo demás queda igual */
}

.site-nav__link {
  display: none;
  padding-block: 6px; /* reduce “alto” de cada link */
  line-height: 1.2; /* compacta interlineado */
  margin: 0; /* por las dudas */
}

.site-header.open .site-nav .site-nav__link {
  display: block;
}

/* Bloquear scroll al abrir */
body.menu-open {
  overflow: hidden;
}

/* ===== Hero / resumen arriba ===== */
.container-video {
  width: 100%;
  height: 100vh;
  position: fixed;
  inset: 0;
  z-index: -2;
}

.video-background {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  position: absolute;
}

main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

main::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 10%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: -1;
}

.contenido-main {
  text-align: center;
  display: grid;
  gap: 0.8rem;
}
.titulo-main {
  font-size: clamp(2.8rem, 4vw, 4rem);
  color: #ffb000;
  font-weight: 600;
}
.texto-main {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  line-height: 1.45;
  font-weight: 400;
  color: #ffffff;
}
.texto-resenia {
  font-size: 1.4rem;
  opacity: 0.85;
}

/* ===== Sección galería (título + carrusel) ===== */
.galeria-container {
  width: 100%;
  background: var(--main-background-color);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.contenido-seccion {
  text-align: center;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  height: 15vh;
}
.contenido-seccion .titulo {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #ffb000;
  font-weight: 600;
}

/* ======= CARRUSEL ======= */
/* Contenedor centrado, ancho controlado como en la captura */
.carousel-container {
  position: relative;
  width: 90%;
  margin-inline: auto;
  overflow: hidden;

  /* Config responsive */
  --per: 1; /* items visibles */
  --gap: 18px; /* separación */
}

/* Track con gap y sin paddings raros: queda centrado */
.img-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.35s ease;
  will-change: transform;
  padding-inline: var(--gap); /* sangrado visual como en la captura */
}

/* Cada tarjeta tiene el ancho exacto para que entren 1/4 + gap */
.img-wrapper {
  flex: 0 0 calc((100% - (var(--gap) * (var(--per) - 1))) / var(--per));
  aspect-ratio: 9 / 16; /* altura estilizada como tu referencia */
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2) inset;
}
.img-galeria {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botones circulares */
.boton {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ff9900;
  color: #111;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.boton i {
  font-size: 22px;
}

.boton:disabled {
  opacity: 0.45;
  cursor: default;
}
.boton-anterior {
  left: 10px;
} /* levemente “pegados” como en la captura */
.boton-posterior {
  right: 10px;
}

.whatsapp-btn {
  width: 50px;
  height: 50px;
  position: fixed;
  z-index: 10000;
  background: url(asset/whatsapp-btn.webp) no-repeat;
  background-position: center;
  background-size: cover;
  bottom: 10px;
  right: 10px;
}

/* ===== Servicios (lo dejo prolijo) ===== */
.seccion-comodidades {
  width: 100%;
  height: 115vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) 0;
  background: var(--main-background-color);
}

.container-comodidades {
  position: relative;
  height: auto;
  width: 100%;
}

.articulo-comodidades {
  width: min(1100px, 92vw);
  margin: 2rem auto 0;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: repeat(2, minmax(45%, 1fr));
}

.articulo-comodidades--2 {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.item-comodidad {
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
  align-content: center;
  height: 17vh;
}
.item-comodidad i {
  font-size: 3.6rem;
  color: #ffb000;
  display: block;
  margin-bottom: 0.6rem;
}

.item-comodidad svg {
  width: 3.5rem;
  height: 3.5rem;
  stroke: #ffb000;
}

.texto-comodidad {
  color: #ffb000;
  font-size: 1.6rem;
}

.seccion-resenias {
  width: 100%;
  height: 100vh;
  background: #050505;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slider-wrapper {
  position: relative;
  width: min(1100px, 100%);
  padding: 3rem 4rem;
  margin-inline: auto;
  overflow: hidden;
}

/* Vignette cinematográfico */
.slider-wrapper::before,
.slider-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(5, 5, 5, 0.95), transparent);
}

.slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(5, 5, 5, 0.95), transparent);
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  align-items: flex-start; /* 👈 evita que todas tomen la altura de la más alta */
}

.testimonial-item {
  flex: 0 0 100%;
  aspect-ratio: 16 / 11;
  opacity: 0.3;
  transform: scale(0.9);
  filter: blur(2px);
  display: flex;
  /* align-items: stretch;  👈 podés eliminar esta línea */
}

.testimonial-item.expanded {
  aspect-ratio: auto; /* cuando se expande, libera la altura */
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 2.2rem 2.6rem;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
  height: 100%;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-name {
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--accent);
}

.testimonial-inner {
  font-size: 1.5rem;
  line-height: 1.6;
  overflow: hidden;
  /* altura colapsada inicial (se ajusta luego con JS) */
}

.testimonial-text {
  margin-bottom: 0.2rem;
}

.testimonial-toggle {
  border: none;
  background: none;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}

.testimonial-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ff9900;
  color: #111;
  cursor: pointer;
  z-index: 8;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.slider-btn i {
  font-size: 22px;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-btn--prev {
  left: 0.8rem;
}

.slider-btn--next {
  right: 0.8rem;
}

.seccion-ubicacion {
  width: 100%;
  height: 125vh;
  background-color: #050505;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container-seccion {
  width: 90%;
  height: 100vh;
  gap: 1.6rem;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
}

.container-map {
  width: 100%;
}

.map {
  border-radius: 16px;
  width: 100%;
}

.container-meters {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.6rem;
}

.meters-item {
  aspect-ratio: 1/1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
  align-content: center;
  height: auto;
  width: 100%;
}

.meters {
  font-weight: 700;
  font-size: 2rem;
  color: #ff9900;
}

.ubicacion {
  color: #f5f5f5;
  font-size: 1.6rem;
}

footer {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 1.8rem;
  background-color: #050505;
}

.footer-content {
  width: 100%;
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
}

.contacto-container {
  width: 100%;
  height: 25vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
}

.titulo-footer {
  font-size: 2.4rem;
  color: var(--orange-light);
  font-weight: 700;
}

.info-footer {
  font-size: 1.6rem;
  color: #fff;
  max-width: 24ch;
}

.info-footer-dev {
  font-size: 1.8rem;
  color: #fff;
}

.nav-links-footer {
  width: 100%;
  height: 35vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
}
.nav-link_footer {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.6rem 1.2rem;
  border-radius: 999px;

  color: #fff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;

  background-color: transparent;

  transition: background-color 0.3s ease;
}

/* ÍCONO */
.nav-link_footer i {
  font-size: 2.2rem;

  opacity: 0;
  transform: scale(0.6) rotate(0deg);

  transition: opacity 0.2s ease, transform 0.25s ease;

  /* importante */
  transition-delay: 0s, 0.15s;
}

/* HOVER */
.nav-link_footer:hover {
  background-color: #ff9900;
}

.nav-link_footer:hover i {
  opacity: 1;
  transform: scale(1) rotate(-28deg);

  /* se mantiene el delay solo en la rotación */
  transition-delay: 0s, 0.15s;
}

.otras-resenias {
  width: 100%;
  height: 25vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.titulo-footer {
  margin-bottom: 2rem;
}

.logo-berealweb {
  width: 14rem;
}

.footer-dev {
  width: 100%;
  height: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .menuToggle {
    display: none;
  }

  .site-header {
    width: 100%;
    height: 10vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .site-nav {
    opacity: 1;
    position: relative;
    display: flex;
    flex-direction: row;
    inset: unset;
  }

  .site-nav__link {
    font-size: 1.7rem;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    padding: 0.5rem 1rem; /* Asegura que tenga espacio interno */
    display: inline-block; /* Para que se vea bien el fondo */
  }

  .site-nav__link:hover {
    background-color: #ff9900;
    border-radius: 999px; /* Forma redondeada tipo píldora */
    color: white; /* Opcional: cambia el color del texto para contraste */
  }

  .carousel-container {
    --per: 4;
    --gap: 24px;
  }

  .seccion-comodidades {
    height: 100vh;
    justify-content: center;
  }

  .contenido-seccion {
    width: 100%;
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .texto-resenia {
    max-width: 48ch;
  }

  .slider-wrapper {
    width: 90%;
  }

  .item-comodidad {
    height: 22vh;
  }

  .testimonial-item {
    flex: 0 0 calc(100% / 3); /* desktop: 3 cards */
  }

  .testimonial-card {
    padding: 4.2rem 2.6rem;
  }

  .seccion-ubicacion {
    height: 110vh;
  }

  .container-seccion {
    flex-direction: row;
    height: 49vh;
  }

  .container-map {
    width: 60%;
  }

  .container-meters {
    width: 29%;
    aspect-ratio: 1/1;
  }

  .meters-item {
    height: auto;
    width: 100%;
  }

  .map {
    height: 56vh;
  }

  footer {
    height: 60vh;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: first baseline;
  }

  .nav-links-footer {
    order: 1;
    width: auto;
  }

  .contacto-container {
    order: 2;
    width: auto;
  }

  .otras-resenias {
    order: 3;
    width: auto;
  }

  .logo-berealweb {
    width: 14rem;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
  }
}

@media (min-width: 1280px) {
  .testimonial-item {
    aspect-ratio: 16/9;
  }
}

@media (min-width: 860px) {
  .articulo-comodidades {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .img-wrapper {
    aspect-ratio: 3/5;
  }
}

@media (min-width: 1600px) {
  .img-wrapper {
    aspect-ratio: 9/16;
  }
}

footer a[href^="tel"] {
  color: inherit !important;
  text-decoration: none !important;
}

footer a[href^="tel"]:hover {
  color: inherit !important;
}
