/* ==========================================================================
   ELEMENTO — Wellness Club · Concepción, Sur de Chile
   Sistema visual: monocromático (tinta / hueso / concreto) + textura grunge.
   Basado en la presentación "Black and White Modern Gym".
   Tipografía: Zilla Slab (display, slab serif) + Archivo (UI/cuerpo).
   ========================================================================== */

:root {
  /* Escala tipo concreto (charcoal cálido, no negro puro) */
  --ink:        #191a1d;   /* concreto base      */
  --ink-2:      #1f2024;
  --coal:       #26272c;   /* superficies (raised) */
  --coal-2:     #2d2e34;
  --smoke:      #3b3c43;   /* bordes / líneas    */
  --ash:        #6f6d68;   /* texto tenue        */
  --fog:        #a7a49c;   /* texto secundario   */
  --bone:       #ece7dd;   /* blanco hueso cálido */
  --paper:      #f6f3ec;   /* casi blanco        */
  --white:      #ffffff;

  --line:       rgba(236, 231, 221, 0.14);
  --line-strong:rgba(236, 231, 221, 0.28);

  --font-display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --font-sans:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(130% 90% at 18% 0%, rgba(255,255,255,0.025), transparent 55%),
    radial-gradient(120% 100% at 85% 100%, rgba(0,0,0,0.30), transparent 60%),
    var(--ink);
  position: relative;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--bone); color: var(--ink); }

/* Textura de concreto / grano sobre todo el fondo */
body::before {
  content: "";
  position: absolute;   /* absolute (no fixed) → el concreto se mueve con el scroll */
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Oscurecemos por opacidad (la foto es B&N) en vez de filter → mucho más liviano al scroll */
  opacity: 0.32;
  background-image: url("../assets/concrete.jpg");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat;
  background-attachment: scroll;
}
/* Viñeta sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 55%, rgba(0,0,0,0.45) 130%);
}
main, header, footer { position: relative; z-index: 2; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(84px, 13vh, 170px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vh, 100px) 0; }
.rule { height: 1px; background: var(--line); border: none; }

/* ==========================================================================
   Tipografía
   ========================================================================== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.0; letter-spacing: -0.01em; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.display .it { font-style: italic; font-weight: 500; text-transform: none; letter-spacing: -0.01em; }

.h-xl { font-size: clamp(2.4rem, 6vw, 5rem); text-transform: uppercase; line-height: 0.95; }
.h-lg { font-size: clamp(2rem, 4.5vw, 3.6rem); text-transform: uppercase; line-height: 0.98; }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.it { font-style: italic; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--fog);
  max-width: 60ch;
  font-weight: 400;
}
.body-muted { color: var(--fog); }

/* Nombre de marca: SIEMPRE en la tipografía display (Zilla Slab), donde sea que aparezca */
.brandmark { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--bone); opacity: 0.55; }
.eyebrow.center { justify-content: center; }

.index-num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ash);
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  --pad-y: 17px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: var(--pad-y) 34px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--bone);
  border-radius: 0;
  overflow: hidden;
  transition: color 0.5s var(--ease);
  will-change: transform;
}
.btn > * { position: relative; z-index: 2; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bone);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: 1;
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid::before { background: var(--ink); transform: translateY(101%); }
.btn--solid:hover { color: var(--bone); }
.btn--solid { border-color: var(--bone); }

.btn--ghost { color: var(--bone); }
.btn--ghost:hover { color: var(--ink); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(9,9,10,0.62), rgba(9,9,10,0.74)), url("../assets/intro.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.preloader__logo {
  width: clamp(64px, 12vw, 120px);
  height: auto;
  margin-bottom: 14px;
  opacity: 0.9;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.5));
}
.preloader__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  overflow: hidden;
  display: flex;
}
.preloader__word span { display: inline-block; transform: translateY(110%); }
.preloader__bar {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--smoke);
  position: relative;
  overflow: hidden;
}
.preloader__bar i { position: absolute; inset: 0; background: var(--bone); transform: scaleX(0); transform-origin: left; }
.preloader__count {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ash);
}
body.is-loading { overflow: hidden; }

/* ==========================================================================
   Cursor personalizado (solo puntero fino / desktop)
   ========================================================================== */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 42px; height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9000;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s, background 0.35s, opacity 0.35s;
    mix-blend-mode: difference;
  }
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 5px; height: 5px;
    background: var(--bone);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9001;
    mix-blend-mode: difference;
  }
  .cursor.is-hover { width: 74px; height: 74px; background: rgba(236,231,221,0.08); border-color: transparent; }
  .cursor.is-hidden { opacity: 0; }
  body { cursor: none; }
  a, button, .btn, input, select, textarea, label { cursor: none; }
}

/* ==========================================================================
   Motivos gráficos del deck
   ========================================================================== */
/* Rayas diagonales (clusters de líneas skew) */
.stripes {
  position: absolute;
  width: 190px; height: 130px;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    -52deg,
    transparent 0, transparent 15px,
    var(--line-strong) 15px, var(--line-strong) 16px
  );
  -webkit-mask-image: linear-gradient(-52deg, #000 60%, transparent);
          mask-image: linear-gradient(-52deg, #000 60%, transparent);
}
.stripes--tl { top: 24px; left: 0; }
.stripes--br { bottom: 24px; right: 0; }

/* Grilla de ✕ */
.xgrid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(4, 26px);
  gap: 22px;
  opacity: 0.6;
  pointer-events: none;
}
.xgrid span {
  width: 26px; height: 26px;
  position: relative;
}
.xgrid span::before, .xgrid span::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1px; background: var(--bone);
}
.xgrid span::before { transform: rotate(45deg); }
.xgrid span::after  { transform: rotate(-45deg); }

/* Fila de chevrons >>> */
.chevrons { display: flex; gap: 6px; align-items: center; opacity: 0.55; }
.chevrons span {
  width: 16px; height: 26px;
  border-right: 1px solid var(--bone);
  border-top: 1px solid var(--bone);
  transform: rotate(45deg);
  display: inline-block;
}

/* Conector de línea con puntos (circuito) */
.connector { display: flex; align-items: center; gap: 0; color: var(--bone); opacity: 0.6; }
.connector .dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--bone); flex: none; }
.connector .seg { height: 1px; background: var(--bone); }

/* Etiqueta con línea (índice de contenidos) */
.linklist { list-style: none; }
.linklist li { border-top: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 1px solid var(--line); }
.linklist a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 26px 4px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--fog);
  transition: color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.linklist a:hover { color: var(--paper); padding-left: 22px; }
.linklist a .num { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--ash); letter-spacing: 0.15em; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s, height 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
  height: 68px;
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
  text-transform: uppercase;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 9px; height: 9px;
  border: 1px solid var(--bone);
  transform: rotate(45deg);
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fog); position: relative; padding: 6px 0;
  transition: color 0.35s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--bone);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover, .nav-links a.active { color: var(--bone); }

.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--bone); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
.mobile-menu.open { clip-path: inset(0 0 0 0); }
.mobile-menu a {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2.4rem, 12vw, 4rem); font-weight: 700; line-height: 1.1;
  color: var(--fog); padding: 8px 0; display: flex; align-items: baseline; gap: 16px;
  transition: color 0.35s;
}
.mobile-menu a .num { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--ash); }
.mobile-menu a.active, .mobile-menu a:hover { color: var(--bone); }

/* ==========================================================================
   Transición de página (wipe)
   ========================================================================== */
.page-transition {
  position: fixed; inset: 0; z-index: 9500;
  background: var(--ink);
  transform: translateY(100%);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.page-transition .pt-mark {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4em; font-size: 1.4rem; color: var(--bone); opacity: 0;
}

/* ==========================================================================
   Marquee (cinta infinita)
   ========================================================================== */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3.6rem); color: var(--bone);
  -webkit-text-stroke: 0;
  padding: 0 34px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 34px;
}
.marquee__track span::after { content: "✕"; font-size: 0.5em; color: var(--ash); -webkit-text-stroke: 0; }
.marquee--fill span { color: var(--bone); -webkit-text-stroke: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { min-height: 100svh; display: flex; align-items: stretch; position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.35) 40%, rgba(11,11,12,0.92) 100%); }
.hero__img {
  position: absolute; inset: -8% 0 0 0; height: 116%; width: 100%;
  object-fit: cover; object-position: 50% 62%;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  will-change: transform;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(circle at 72% 35%, #000, transparent 78%);
          mask-image: radial-gradient(circle at 72% 35%, #000, transparent 78%);
  opacity: 0.5;
}
.hero__inner {
  position: relative; z-index: 3; width: 100%;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 4vh);
  padding-bottom: clamp(36px, 7vh, 90px);
}
.hero__eyebrow { margin-bottom: 26px; }
.hero .display { margin-bottom: 30px; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero__lead { max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 46px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--bone); }
.hero__stat .l { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ash); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }
.hero__scroll .track { width: 1px; height: 46px; background: var(--smoke); position: relative; overflow: hidden; }
.hero__scroll .track i { position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--bone); animation: scrolldrop 2s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(250%); } }
.hero__badge {
  position: absolute; top: calc(var(--header-h) + 24px); right: var(--gutter); z-index: 3;
  border: 1px solid var(--line-strong); padding: 9px 18px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone);
  background: rgba(16,16,18,0.4); backdrop-filter: blur(8px);
}

/* Logo flotante + giratorio en el hero */
/* Lockup del hero: diamante + wordmark ELEMENT, flotando justo encima del texto */
.hero__lockup {
  display: inline-flex; align-items: center; align-self: flex-start;
  gap: clamp(16px, 2.4vw, 40px);
  margin-bottom: clamp(18px, 2.6vh, 34px);
  pointer-events: none;
  animation: logofloat 7s ease-in-out infinite;       /* el grupo flota */
}
.hero__logo {
  width: clamp(120px, 15vw, 230px);
  height: auto;
  translate: 14% 0;   /* acerca el isotipo a ELEMENT sin mover la palabra */
  opacity: 0.85;   /* sobrio, no neón */
  /* sombra proyectada (profundidad) + halo tenue */
  filter: drop-shadow(0 26px 44px rgba(0,0,0,0.6)) drop-shadow(0 0 24px rgba(255,255,255,0.08));
  /* giro 3D sobre su propio eje vertical (efecto moneda) */
  transform-style: preserve-3d;
  animation: logospin3d 16500ms linear infinite;
}
.hero__logo-word {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1;
  color: var(--bone); opacity: 0.95;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.5));
}
@media (max-width: 700px) {
  /* Hero móvil: legible y sin desbordes */
  .hero__lockup { gap: 10px; margin-bottom: 14px; }
  .hero__logo { width: clamp(54px, 14vw, 82px); translate: 6% 0; }
  .hero__logo-word { font-size: clamp(1.7rem, 8.5vw, 2.6rem); }
  .hero__media::after { background: linear-gradient(180deg, rgba(11,11,12,0.62) 0%, rgba(11,11,12,0.5) 30%, rgba(11,11,12,0.96) 100%); }
  .hero__img { object-position: 50% 60%; }
  .hero__row { gap: 22px; }
  .hero__lead { max-width: none; font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; margin-top: 26px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 18px 26px; }
  .hero__stat .l { font-size: 10px; }
  .hero__scroll { display: none; }
}
@keyframes logospin3d {
  from { transform: perspective(1000px) rotateY(0deg); }
  to   { transform: perspective(1000px) rotateY(360deg); }
}
@keyframes logofloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }

/* Word/line reveal (kinetic type) */
.line-mask { overflow: hidden; display: block; }
.reveal-y { display: inline-block; will-change: transform; }

/* ==========================================================================
   Bloques de contenido
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split--60 { grid-template-columns: 1.15fr 0.85fr; }
.split--40 { grid-template-columns: 0.85fr 1.15fr; }

.stack-label { display: flex; flex-direction: column; gap: 24px; }

/* Tarjetas de pilares */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillar {
  padding: 44px 34px 44px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.5s var(--ease);
}
.pillar:not(:last-child) { border-right: 1px solid var(--line); padding-right: 34px; }
.pillar { padding-left: 30px; }
.pillar:hover { background: var(--coal); }
.pillar .idx { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--ash); }
.pillar h3 { font-size: 1.9rem; text-transform: uppercase; margin: 26px 0 14px; }
.pillar p { color: var(--fog); font-size: 0.97rem; }
.pillar .chev { margin-top: 26px; opacity: 0; transform: translateX(-6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.pillar:hover .chev { opacity: 0.6; transform: translateX(0); }

/* Lista numerada editorial */
.numbered { border-top: 1px solid var(--line); }
.numbered .row { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.numbered .n { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--smoke); line-height: 1; }
.numbered h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: uppercase; margin-bottom: 14px; }
.numbered p { color: var(--fog); max-width: 60ch; }

/* Bloque de imagen con marco de esquina */
.framed { position: relative; }
.framed img { filter: grayscale(1) contrast(1.06) brightness(0.9); width: 100%; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: 46px; height: 46px; border: 1px solid var(--line-strong); pointer-events: none;
}
.framed::before { top: -12px; left: -12px; border-right: none; border-bottom: none; }
.framed::after { bottom: -12px; right: -12px; border-left: none; border-top: none; }
.media-caption { margin-top: 16px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); display: flex; justify-content: space-between; }

/* Placeholder de imagen (para cuando no hay foto real) */
.imgph {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, var(--coal) 0%, var(--ink-2) 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 30px; min-height: 320px;
  aspect-ratio: 4 / 5;   /* formato retrato: encaja las fotos verticales sin recortes bruscos */
}
.imgph::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-52deg, transparent 0 22px, var(--line) 22px 23px);
  opacity: 0.5;
}
.imgph .imgph__label { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem,3vw,2.6rem); color: var(--smoke); }
/* Si existe la foto real, cubre el placeholder; si falla (onerror) se elimina y vuelve el placeholder */
.imgph img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1) contrast(1.06) brightness(0.9); }

/* ==========================================================================
   Banda de imagen a todo el ancho (parallax)
   ========================================================================== */
.image-band {
  position: relative; height: clamp(380px, 68vh, 640px); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.image-band img {
  position: absolute; inset: -12% 0; width: 100%; height: 124%;
  object-fit: cover; object-position: center 40%;
  filter: grayscale(1) contrast(1.1) brightness(0.5);
  z-index: 0; will-change: transform;
}
.image-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(11,11,12,0.25), rgba(11,11,12,0.7)); }
.image-band__caption { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); max-width: 860px; }
.image-band__caption h2 { margin: 20px 0 0; }

/* ==========================================================================
   Galería en movimiento (marquee de imágenes)
   ========================================================================== */
.marquee--img { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee--img .marquee__track { gap: 0; }
.marquee--img figure {
  width: clamp(240px, 26vw, 360px); aspect-ratio: 3 / 2; flex: none; overflow: hidden;
  border-right: 1px solid var(--line); position: relative;
}
.marquee--img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.82); transition: filter 0.6s var(--ease), transform 0.9s var(--ease); }
.marquee--img figure:hover img { filter: grayscale(1) contrast(1.12) brightness(1); transform: scale(1.05); }

/* ==========================================================================
   Amenities (zona Wellness & Recovery)
   ========================================================================== */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.amenity {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 36px 30px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  transition: background 0.5s var(--ease);
}
.amenity:hover { background: var(--coal); }
.amenity .idx { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--ash); }
.amenity h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 10px; }
.amenity p { color: var(--fog); font-size: 0.92rem; }
@media (max-width: 900px) { .amenities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amenities { grid-template-columns: 1fr; } }

/* ==========================================================================
   Tienda / Merch
   ========================================================================== */
.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.product { border: 1px solid var(--line); background: var(--coal); display: flex; flex-direction: column; transition: transform 0.5s var(--ease), border-color 0.5s; }
.product:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.product__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; background: var(--bone); color: var(--ink); padding: 5px 11px; }
.product__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.product__price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; white-space: nowrap; }
.product__desc { color: var(--fog); font-size: 0.9rem; }
.product__sizes { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.product__sizes label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.product__sizes select { flex: 1; background: var(--ink-2); border: 1px solid var(--smoke); color: var(--bone); padding: 9px 10px; font-family: var(--font-sans); font-size: 14px; border-radius: 0; transition: border-color 0.3s; }
.product__sizes select:focus { outline: none; border-color: var(--bone); }
.product .btn { margin-top: auto; justify-content: center; width: 100%; }
.shop-note { text-align: center; color: var(--ash); font-size: 13px; margin-top: 28px; }

/* ==========================================================================
   FAQ (acordeón)
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 26px 4px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--bone); transition: color 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-weight: 400; font-size: 1.6rem; color: var(--fog); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--bone); }
.faq p { color: var(--fog); padding: 0 4px 28px; max-width: 74ch; }

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */
.wa-float {
  position: fixed; z-index: 300;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 38px rgba(0,0,0,0.55); }
@media (max-width: 560px) { .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* Banner colección */
.collection-banner { display: grid; grid-template-columns: 1.1fr 0.9fr; border: 1px solid var(--line); background: var(--coal); overflow: hidden; }
.collection-banner__media { position: relative; min-height: 380px; overflow: hidden; background: var(--ink-2); }
/* contain → la foto del kit se ve COMPLETA (no recortada) */
.collection-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.collection-banner__body { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
@media (max-width: 820px) { .collection-banner { grid-template-columns: 1fr; } .collection-banner__media { aspect-ratio: 4/3; min-height: 0; } }

/* ==========================================================================
   Escasez / contador
   ========================================================================== */
.scarcity { text-align: center; position: relative; }
.counter { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 26vw, 20rem); line-height: 0.82; letter-spacing: -0.04em; color: var(--bone); }
.counter-wrap { position: relative; display: inline-block; }
.counter-wrap .of { position: absolute; top: 8%; right: -10px; font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.2em; color: var(--ash); }
.progress { max-width: 560px; margin: 40px auto 0; height: 2px; background: var(--smoke); position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--bone); }

/* ==========================================================================
   Planes / precios
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.plan { padding: 46px 34px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; transition: background 0.5s var(--ease); }
.plan:last-child { border-right: none; }
.plan:hover { background: var(--coal); }
.plan.featured { background: var(--paper); color: var(--ink); }
.plan.featured .plan__name, .plan.featured .price, .plan.featured li { color: var(--ink); }
.plan.featured:hover { background: var(--white); }
.plan__tag { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; padding: 6px 12px; border: 1px solid currentColor; margin-bottom: 30px; color: var(--ash); }
.plan.featured .plan__tag { color: var(--ink); }
.plan__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.7rem; color: var(--bone); }
.price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 4vw, 3.4rem); margin: 12px 0 2px; color: var(--bone); }
.price sup { font-size: 0.9rem; vertical-align: super; }
.price .mo { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--ash); }
.plan .per { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
.plan.featured .per { color: #55524c; }
.plan ul { list-style: none; margin: 30px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.plan li { display: flex; gap: 12px; font-size: 0.96rem; color: var(--fog); }
.plan li::before { content: "—"; color: var(--ash); flex: none; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.featured .btn { border-color: var(--ink); color: var(--ink); }
.plan.featured .btn::before { background: var(--ink); }
.plan.featured .btn:hover { color: var(--paper); }

/* ==========================================================================
   Formulario
   ========================================================================== */
.form-card { border: 1px solid var(--line); background: var(--coal); padding: clamp(28px, 4vw, 50px); }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--smoke);
  padding: 12px 2px; color: var(--bone); font-family: var(--font-sans); font-size: 16px;
  transition: border-color 0.4s var(--ease);
}
.field select { background: var(--coal); }
.field input::placeholder, .field textarea::placeholder { color: var(--ash); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--bone); }
.field textarea { resize: vertical; min-height: 90px; }
.field .err { color: #d99; font-size: 12.5px; margin-top: 8px; display: none; letter-spacing: 0.02em; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-bottom-color: #b66; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-note { font-size: 12.5px; color: var(--ash); margin-top: 18px; line-height: 1.6; }
.form-error { display: none; margin-top: 16px; padding: 14px 16px; border: 1px solid #b66; color: #e0a99f; font-size: 13.5px; line-height: 1.5; }
.form-error.show { display: block; }
.form-success { display: none; text-align: center; padding: 26px 0; }
.form-success.show { display: block; }
.form-success .check { width: 66px; height: 66px; margin: 0 auto 22px; border: 1px solid var(--bone); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* ==========================================================================
   Page hero (subpáginas)
   ========================================================================== */
.page-hero { padding: calc(var(--header-h) + 90px) 0 66px; position: relative; overflow: hidden; }
.page-hero__img {
  position: absolute; inset: -10% 0; width: 100%; height: 120%;
  object-fit: cover; object-position: center 38%;
  filter: grayscale(1) contrast(1.06) brightness(0.34);
  z-index: 0; will-change: transform;
}
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.72) 55%, rgba(11,11,12,0.94) 100%); }
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero > .stripes { z-index: 2; }
.page-hero .display { font-size: clamp(2.6rem, 9vw, 7rem); margin-top: 22px; }
.breadcrumb { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ash); }
.breadcrumb a { color: var(--fog); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--bone); }

/* ==========================================================================
   Franja CTA
   ========================================================================== */
.cta { text-align: center; position: relative; }
.cta .display { margin: 22px 0 34px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #09090a; border-top: 1px solid var(--line); padding: 80px 0 40px; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem,6vw,4rem); letter-spacing: 0.04em; line-height: 0.95; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 0.34em; }
.footer-mark { height: 1.05em; width: auto; display: inline-block; opacity: 0.9; position: relative; top: -0.04em; }
.footer-top p { color: var(--fog); max-width: 34ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; color: var(--fog); font-size: 0.95rem; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ash); font-size: 12px; letter-spacing: 0.04em; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Reveal (fallback sin GSAP)
   ========================================================================== */
.no-gsap .reveal-y { transform: none !important; }
.no-gsap [data-reveal] { opacity: 1 !important; transform: none !important; }
/* Ocultar reveals SOLO si hay JS (evita pantallas en blanco sin JS) */
html.js [data-reveal] { opacity: 0; }
html:not(.js) .preloader { display: none; }
html:not(.js) body.is-loading { overflow: visible; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .split, .split--60, .split--40 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: none; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .two-col { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  .pillar:not(:last-child) { border-right: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .numbered .row { grid-template-columns: 56px 1fr; gap: 16px; }
  .hero__stats { gap: 26px; }
  .xgrid { display: none; }
}

/* Respetar reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], .reveal-y { opacity: 1 !important; transform: none !important; }
  .hero__scroll .track i { animation: none; }
}
