/* ═══════════════════════════════════════════════════════════════
   MAIHUE — Baños Móviles de Lujo
   style.css  |  Mobile-first, production-ready
   Fuentes: Instrument Serif (display) + DM Sans (UI/labels)
═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta */
  --clr-bg:          #060810;
  --clr-bg-gallery:  #0c0e14;
  --clr-accent:      #1a5cff;
  --clr-accent-dim:  rgba(26, 92, 255, 0.18);
  --clr-white:       #ffffff;
  --clr-white-60:    rgba(255, 255, 255, 0.60);
  --clr-white-35:    rgba(255, 255, 255, 0.35);
  --clr-white-12:    rgba(255, 255, 255, 0.12);
  --clr-white-06:    rgba(255, 255, 255, 0.06);
  --clr-border:      rgba(255, 255, 255, 0.10);

  /* Tipografía */
  --font-display:    'Instrument Serif', Georgia, serif;
  --font-ui:         'DM Sans', system-ui, sans-serif;

  /* Transiciones */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--clr-bg);
  color: var(--clr-white);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }

.br-desk { display: none; }


/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Radial reveal: el JS lo convierte a sticky en runtime */
  will-change: clip-path;
  clip-path: circle(150% at 50% 50%);
}


/* ── VIDEO BACKGROUND ─────────────────────────────────────── */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04); /* pequeño margen para el parallax suave */
  transition: transform 0.1s linear;
}

/* Gradiente oscuro principal */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(6, 8, 16, 0.30) 0%,
      rgba(6, 8, 16, 0.55) 50%,
      rgba(6, 8, 16, 0.92) 100%
    ),
    linear-gradient(
      to right,
      rgba(6, 8, 16, 0.75) 0%,
      rgba(6, 8, 16, 0.20) 60%
    );
}

/* Textura grain sobre el video */
.hero__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 2;
  animation: grain-drift 8s steps(2) infinite;
}

@keyframes grain-drift {
  0%   { transform: translate(0,   0); }
  20%  { transform: translate(-3%, -4%); }
  40%  { transform: translate(-5%,  3%); }
  60%  { transform: translate( 4%, -2%); }
  80%  { transform: translate( 2%,  5%); }
  100% { transform: translate(0,   0); }
}

/* Viñeta en bordes */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  box-shadow: inset 0 0 120px rgba(6, 8, 16, 0.6);
  pointer-events: none;
}


/* ── NAVBAR ───────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem;
  animation: fade-down 1s var(--ease-out) 0.2s both;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__logo-name {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--clr-white);
  line-height: 1;
}

.nav__logo-tagline {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  color: var(--clr-white-35);
  text-transform: uppercase;
}

.nav__cta {
  display: none; /* visible en desktop */
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white);
  border: 1px solid var(--clr-border);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
  background: var(--clr-white-06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__cta:hover {
  border-color: rgba(255,255,255,0.40);
  background: var(--clr-white-12);
  transform: translateY(-1px);
}


/* ── HERO CONTENT ─────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  padding: 6rem 1.5rem 6rem;
  min-height: 100svh;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  animation: fade-up 1s var(--ease-out) 0.4s both;
}

.hero__eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--clr-accent);
  flex-shrink: 0;
}

.hero__eyebrow-text {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-white-60);
}


/* H1 con animación zoom-in Apple: empieza gigante y se encoge */
.hero__h1 {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9.5vw, 6.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--clr-white);
  margin-bottom: 1.6rem;

  /* El bloque completo arranca grande y opaco=0, se encoge a su tamaño real */
  animation: h1-scale-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  transform-origin: left center;
}

@keyframes h1-scale-in {
  0% {
    opacity: 0;
    transform: scale(2.2) translateY(-8px);
    filter: blur(12px);
  }
  40% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

.hero__h1-line {
  display: block;
}

.hero__h1-line--1 { animation: none; }
.hero__h1-line--2 { animation: none; }
.hero__h1-line--3 { animation: none; }

.hero__h1-line--accent {
  font-style: italic;
  color: var(--clr-white);
}

.hero__h1-line--accent em {
  font-style: normal;
  color: rgba(160, 190, 255, 0.90);
}

.hero__sub {
  font-family: var(--font-ui);
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.70;
  color: var(--clr-white-60);
  margin-bottom: 2.5rem;
  max-width: 420px;
  letter-spacing: 0.01em;
  animation: fade-up 1s var(--ease-out) 1.0s both;
}


/* ── BOTONES ──────────────────────────────────────────────── */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: fade-up 1s var(--ease-out) 1.1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  width: 100%;
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(26, 92, 255, 0.50);
}

.btn--primary:hover::after { opacity: 1; }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--clr-white-60);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  border-color: rgba(255,255,255,0.40);
  color: var(--clr-white);
  background: var(--clr-white-06);
  transform: translateY(-2px);
}

.btn__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}


/* ── SPECS ────────────────────────────────────────────────── */
.hero__specs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  animation: fade-up 1s var(--ease-out) 1.25s both;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.hero__spec {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2rem;
}

.hero__spec-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--clr-white);
  letter-spacing: -0.03em;
}

.hero__spec-num small {
  font-size: 0.9rem;
  color: var(--clr-white-35);
  margin-left: 2px;
}

.hero__spec-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-white-35);
}

.hero__spec-divider {
  width: 1px;
  height: 36px;
  background: var(--clr-border);
  margin-right: 2rem;
  flex-shrink: 0;
  align-self: center;
}


/* ── SCROLL HINT ──────────────────────────────────────────── */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: fade-up 1s var(--ease-out) 1.5s both;
}

.hero__scroll-text {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--clr-white-35);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--clr-white-35));
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--clr-white);
  animation: scroll-line-drop 2s var(--ease-in-out) 2s infinite;
}

@keyframes scroll-line-drop {
  0%   { top: -100%; }
  100% { top: 100%; }
}


/* ══════════════════════════════════════════════════════════════
   TRANSICIÓN ZOOM-OUT  (Hero → Galería)
   Se aplica via JS con IntersectionObserver
══════════════════════════════════════════════════════════════ */

/* Galería: espera debajo del iris sticky */
.galeria {
  position: relative;
  z-index: 5;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease-out) 0.1s, transform 1s var(--ease-out) 0.1s;
}

.galeria.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════
   GALERÍA SECTION
══════════════════════════════════════════════════════════════ */

.galeria {
  background: var(--clr-bg-gallery);
  padding: 5rem 1.5rem;
  position: relative;
}

/* Línea decorativa superior */
.galeria::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-border), transparent);
}

.galeria__header {
  margin-bottom: 3rem;
}

.galeria__eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.galeria__h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--clr-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.galeria__h2 em {
  font-style: italic;
  color: rgba(160, 190, 255, 0.90);
}

.galeria__sub {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--clr-white-60);
  max-width: 380px;
}

/* Grid de fotos */
.galeria__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.galeria__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111318;
}

.galeria__item img {
  transition: transform 0.7s var(--ease-out);
}

.galeria__item:hover img {
  transform: scale(1.04);
}

.galeria__item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(6,8,16,0.85) 0%, transparent 100%);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white-60);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s var(--ease-out);
}

.galeria__item:hover .galeria__item-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder para más fotos */
.galeria__item--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e1018;
  cursor: pointer;
  border: 1px dashed var(--clr-border);
}

.galeria__placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--clr-white-35);
}

.galeria__placeholder-inner span {
  font-family: var(--font-ui);
  font-size: 1.4rem;
  font-weight: 600;
}

.galeria__placeholder-inner small {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.galeria__cta {
  display: flex;
  justify-content: center;
}

.galeria__cta .btn {
  width: auto;
}


/* ══════════════════════════════════════════════════════════════
   ANIMACIONES DE ENTRADA
══════════════════════════════════════════════════════════════ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET / DESKTOP
══════════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
  .br-desk { display: inline; }
  .nav { padding: 2rem 3rem; }
  .nav__cta { display: flex; }
  .hero__content { padding: 7rem 3rem 5rem; }
  .hero__scroll-hint { right: 3rem; }
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .btn { width: auto; }
  .galeria { padding: 6rem 3rem; }
  .galeria__grid {
    grid-template-columns: 1fr 1fr;
  }
  .galeria__item--tall {
    grid-row: span 2;
    aspect-ratio: unset;
  }
}

@media (min-width: 1024px) {
  .nav { padding: 2.2rem 5rem; }
  .hero__content { padding: 8rem 5rem 5rem; }
  .hero__scroll-hint { right: 5rem; bottom: 3rem; }
  .galeria { padding: 8rem 5rem; }
  .galeria__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .galeria__item--tall {
    grid-row: span 2;
  }
}

@media (min-width: 1280px) {
  .hero__content { padding: 8rem 7rem 5rem; }
  .nav { padding: 2.2rem 7rem; }
  .hero__scroll-hint { right: 7rem; }
  .galeria { padding: 8rem 7rem; }
}


/* ══════════════════════════════════════════════════════════════
   ACCESIBILIDAD
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── SOCIAL PROOF ── */
.social-proof {
  background: #0a0a0f;
  padding: 64px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sp__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.sp__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
}
.sp__logos {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.sp__logo-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 20px;
  border-radius: 4px;
}
.sp__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.sp__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp__stat strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.sp__stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* REEMPLAZA el background de .why */
.why {
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26,92,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(26,92,255,0.04) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.02) 39px,
      rgba(255,255,255,0.02) 40px
    ),
    #080810;
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.why__grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media(min-width:768px){ .why__grid { grid-template-columns: repeat(3,1fr); } }
.why__item { display:flex; flex-direction:column; gap:12px; }
.why__icon { font-size:18px; color:#1a5cff; }
.why__item h3 {
  font-family:'Space Grotesk',sans-serif;
  font-size:17px; font-weight:600;
  color:#fff; line-height:1.3;
}
.why__item p { font-size:14px; color:rgba(255,255,255,0.45); line-height:1.7; }

