/* ═══════════════════════════════════════════════
   SPECTRE — Roberto Arechederra
   Estructura directa (página de producto) + sello Two Waves:
   intro tipográfica, iconos, grano, hueso sobre negro.
   ═══════════════════════════════════════════════ */

:root {
  --fondo: #0b0b0a;
  --hueso: #eae0c5;
  --greige: #b0a595;
  --lino: #e5e0d5;
  --rojo: #c0392b;
  --linea: rgba(176, 165, 149, 0.16);
  --mono: "IBM Plex Mono", monospace;
  --sans: "Archivo", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --margen: clamp(20px, 4vw, 56px);
  --ancho: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* sin barra de desplazamiento visible (el scroll sigue funcionando igual) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  background: var(--fondo);
  color: var(--hueso);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.cargando { overflow: hidden; }
::selection { background: var(--greige); color: var(--fondo); }
a { color: inherit; }
img { display: block; }

/* ══════════ INTRO (calcada del mastermind) ══════════ */

#loader { display: none; }

.js #loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.8s cubic-bezier(0.45, 0, 0.2, 1), visibility 1.8s;
}
#loader.fuera { opacity: 0; visibility: hidden; pointer-events: none; }
.sin-intro #loader { display: none; }
/* la frase no se pinta hasta que su línea entra (sin esto se ve completa un instante antes de animar) */
.js .intro-linea:not(.activa) { visibility: hidden; }

/* fase 1: la frase */
.loader-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--hueso);
  transition: opacity 0.6s ease, filter 0.6s ease;
}
.loader-intro.fuera { opacity: 0; filter: blur(8px); }

.intro-linea {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.26em;
}
/* cada palabra sube y se enfoca, en cascada */
.intro-linea .palabra {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em);
  filter: blur(8px);
}
.intro-linea.activa .palabra {
  animation: palabraEntra 1s var(--ease) forwards;
  animation-delay: var(--d);
}
@keyframes palabraEntra {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* fase 2: iconos — se funden uno en otro; el último (marca SPECTRE) se disuelve hacia el video */
.loader-glyphs {
  position: relative;
  width: clamp(96px, 9vw, 130px);
  height: clamp(96px, 9vw, 130px);
  color: var(--hueso);
  opacity: 0;
  transition: opacity 0.6s ease, transform 1.6s var(--ease), filter 1.6s var(--ease);
}
#loader.fase-iconos .loader-glyphs { opacity: 1; }
#loader.fuera .loader-glyphs { opacity: 0; transform: scale(1.35); filter: blur(6px); }

.glyph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.12s ease, transform 0.3s var(--ease);
}
.glyph.activo { opacity: 1; transform: scale(1); }

/* ══════════ GRANO ══════════ */

.grain {
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grano 0.45s steps(4) infinite;
}
/* en celular el grano va quieto y del tamaño de la pantalla: animado era una capa enorme
   redibujándose sin parar, y le quitaba fluidez a los sliders y al scroll */
@media (hover: none), (max-width: 860px) {
  .grain { inset: 0; animation: none; }
}
@keyframes grano {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ══════════ PIEZAS COMUNES ══════════ */

.link-mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(234, 224, 197, 0.3);
  transition: border-color 0.4s ease;
}
.link-mono:hover { border-bottom-color: var(--hueso); }

.btn-solido {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--fondo);
  background: var(--hueso);
  padding: 20px 40px;
  transition: background 0.4s ease, letter-spacing 0.4s ease;
}
.btn-solido .flecha { font-family: var(--sans); transition: transform 0.4s var(--ease); }
.btn-solido:hover { background: #fff; letter-spacing: 0.36em; }
.btn-solido:hover .flecha { transform: translateX(6px); }

.titulo {
  font-family: var(--sans);
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.nota-mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.8;
  color: rgba(176, 165, 149, 0.8);
}

/* ══════════ HEADER ══════════ */

.cabecera {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--margen);
  border-bottom: 1px solid transparent;
  transition: background 0.6s ease, border-color 0.6s ease, backdrop-filter 0.6s ease;
}
/* sobre el video el header es transparente; al pasar el hero se vuelve sólido */
.cabecera:not(.solida) { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
.cabecera:not(.solida) .marca-icono { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55)); }
.cabecera.solida {
  background: rgba(11, 11, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--linea);
}
.js .cabecera { opacity: 0; transition: opacity 1.2s var(--ease), background 0.6s ease, border-color 0.6s ease; }
.js .listo .cabecera { opacity: 1; }
.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-decoration: none;
}
.marca-icono { width: 26px; height: 26px; }

/* ══════════ HERO VIDEO (como Chema Bal: lo primero que ves) ══════════ */

.hero-video {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomLento 24s ease-in-out infinite alternate;
  /* estado final: nítido. Mientras corre la intro está borroso y oscuro (abajo) */
  transform: scale(1);
  /* 90% sobre el fondo negro del hero: un poco más de contraste para el texto */
  opacity: 0.9;
  filter: blur(0) brightness(1);
  transition: filter 2.6s cubic-bezier(0.45, 0, 0.2, 1);
}
@keyframes zoomLento { from { scale: 1; } to { scale: 1.08; } }

/* el video "enfoca" desde el negro cuando se disuelve la intro */
body.cargando .hero-media video { filter: blur(14px) brightness(0.2); }

.hero-velo {
  position: absolute;
  inset: 0 0 -2px 0; /* cubre también el último píxel: sin línea al terminar el video */
  /* el video es protagonista: casi sin velo. Solo una franja arriba para el header,
     una sombra suave detrás del texto, viñeta ligera y el roll-off inferior hacia el fondo */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, transparent 16%, transparent 70%, rgba(11, 11, 10, 0.55) 86%, var(--fondo) 97%, var(--fondo) 100%),
    radial-gradient(ellipse 34% 26% at 50% 52%, rgba(0, 0, 0, 0.2), transparent 75%),
    radial-gradient(ellipse 95% 85% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}
.hero-icono { width: clamp(42px, 4.9vw, 70px); height: clamp(42px, 4.9vw, 70px); color: var(--hueso); filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.5)); }
.hero-marca {
  margin-top: 12px;
  font-size: clamp(34px, 5.1vw, 78px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-kicker {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: 0.35em;
  color: var(--lino);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
/* botón píldora (estilo Eyre Films): contorno fino, al pasar el cursor el hueso sube desde abajo */
.btn-pildora {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: none;
  margin-top: 34px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--hueso);
  /* vidrio translúcido y sin contorno: se ve el video a través */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
/* borde de vidrio (no una línea): aro tenue que capta luz arriba y abajo, difuminado */
.btn-pildora::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(170deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.07) 38%,
    rgba(255, 255, 255, 0.04) 62%,
    rgba(255, 255, 255, 0.2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: blur(0.4px);
  pointer-events: none;
}
/* al pasar el cursor: el vidrio se oscurece, pero los tonos del video siguen pasando */
.btn-pildora::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 8, 7, 0.42);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.btn-pildora .flecha { font-family: var(--sans); transition: transform 0.45s var(--ease); }
.btn-pildora:focus-visible { outline: 1px solid rgba(234, 224, 197, 0.6); outline-offset: 3px; }
.btn-pildora:focus-visible::before { opacity: 1; }
@media (hover: hover) {
  .btn-pildora:hover::before { opacity: 1; }
  .btn-pildora:hover .flecha { transform: translateX(4px); }
}
/* en celular no hay hover: al tocar, se oscurece un instante */
.btn-pildora:active::before { opacity: 1; transition-duration: 0.12s; }



.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--greige);
}
.scroll-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--greige);
  animation: bajar 2.2s ease-in-out infinite;
}
@keyframes bajar {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* el contenido del hero entra en cascada cuando el video ya enfocó */
.js .hero-meta {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease);
}
.js .listo .hero-meta { opacity: 1; transform: none; filter: blur(0); }
.js .listo .hero-meta:nth-child(2) { transition-delay: 0.15s; }
.js .listo .hero-meta:nth-child(3) { transition-delay: 0.35s; }
.js .listo .hero-meta:nth-child(4) { transition-delay: 0.55s; }
.js .listo .hero-scroll { transition-delay: 0.9s; }
.hero-scroll.hero-meta { transform: translateX(-50%) translateY(14px); }
.js .listo .hero-scroll.hero-meta { transform: translateX(-50%); }

.btn-linea {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(234, 224, 197, 0.4);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-decoration: none;
  transition: border-color 0.4s ease, letter-spacing 0.4s ease;
}
.btn-linea .flecha { font-family: var(--sans); transition: transform 0.4s var(--ease); }
.btn-linea:hover { border-bottom-color: var(--hueso); letter-spacing: 0.38em; }
.btn-linea:hover .flecha { transform: translateX(6px); }

/* ══════════ PRODUCTO ══════════ */

.producto {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 110px) var(--margen) 0;
  align-items: start;
  scroll-margin-top: 80px;
}

/* ══════════ CAJA 3D (producto.html) — como el render de la caja de Pordoi ══════════
   Escena de estudio oscura con luz de piso; la caja gira para mostrar el lomo (texto
   vertical) y el frente (título sobre una foto + bandas de tomas gradeadas).
   Todas las medidas en cqi: la caja escala con el ancho de la escena. */
.caja-escena {
  --w: 43cqi;                     /* ancho del frente */
  --h: calc(var(--w) * 1.5);      /* alto */
  --d: calc(var(--w) * 0.3);      /* grosor (lomo) */
  container-type: inline-size;
  position: sticky;
  top: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.1 / 1;
  overflow: hidden;
  perspective: 240cqi;
  background:
    radial-gradient(ellipse 48% 22% at 52% 82%, rgba(160, 172, 182, 0.13), transparent 72%),
    radial-gradient(ellipse 60% 55% at 30% 18%, rgba(120, 138, 152, 0.14), transparent 72%),
    linear-gradient(180deg, #13171b 0%, #0c0e11 64%, #08090b 100%);
}
.caja {
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform-origin: 50% 50% calc(var(--d) / -2);
  /* --giro (0→1) lo pone js/main.js al hacer scroll: la caja gira un poco hacia el frente y sube */
  /* translateX: centra el frente (lo que el ojo lee como "la caja"); el lomo oscuro queda a la izquierda */
  transform:
    translateX(-2.4cqi)
    translateY(calc(var(--giro, 0) * -2.5cqi))
    rotateY(calc(27deg - var(--giro, 0) * 12deg - var(--hover, 0) * 7deg))
    rotateX(calc(-2deg + var(--giro, 0) * 3deg));
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) {
  .caja-escena:hover .caja { --hover: 1; }
}
.caja-frente,
.caja-lomo { position: absolute; top: 0; height: 100%; backface-visibility: hidden; }

.caja-lomo {
  left: calc(var(--d) * -1);
  width: var(--d);
  transform-origin: right center;
  transform: rotateY(-90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #16181b, #0b0c0e 55%, #060708);
  color: var(--hueso);
}
/* luz: el lomo queda en sombra respecto al frente */
.caja-lomo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.15));
  pointer-events: none;
}
.lomo-texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6cqi;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 35%;
  white-space: nowrap;
}
.lomo-titulo {
  font-size: 3.7cqi;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}
.lomo-sub {
  font-size: 1.15cqi;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--greige);
}

.caja-frente {
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.16);
}
/* brillo de estudio: luz desde arriba a la izquierda */
.caja-frente::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.07), transparent 38%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.frente-banda { position: relative; flex: 1; overflow: hidden; }
.frente-banda + .frente-banda { border-top: 1px solid rgba(0, 0, 0, 0.55); }
.frente-banda img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frente-cabeza { flex: 1.6; }
.frente-cabeza::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 8, 10, 0.55), rgba(5, 8, 10, 0.25) 60%, rgba(5, 8, 10, 0.4));
}
.frente-titulos {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9cqi;
  text-align: center;
  color: #f4efe2;
}
.frente-marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqi;
  font-family: var(--mono);
  font-size: 1cqi;
  letter-spacing: 0.3em;
  opacity: 0.9;
}
.frente-marca svg { width: 1.6cqi; height: 1.6cqi; }
.frente-nombre {
  font-size: 6.2cqi;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-shadow: 0 0.4cqi 2cqi rgba(0, 0, 0, 0.45);
}
.frente-sub {
  font-family: var(--mono);
  font-size: 1.25cqi;
  letter-spacing: 0.4em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin-right: -0.4em;
}
.frente-pie { flex: 1.05; }
/* sombra de contacto en el piso */
.caja-sombra {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--h) / 2 - 1.5cqi);
  width: calc(var(--w) * 1.5);
  height: 5cqi;
  transform: translateX(-46%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), transparent);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.caja { z-index: 1; }

.producto-info { padding-top: clamp(0px, 2vw, 24px); }

.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--greige);
}
.producto-titulo {
  margin-top: 22px;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
.producto-titulo span { font-weight: 300; font-style: italic; color: var(--greige); letter-spacing: -0.045em; }

.precio {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--linea);
}
.precio .actual { font-size: 34px; font-weight: 300; letter-spacing: -0.03em; }
.precio .anterior { font-size: 17px; font-weight: 300; color: var(--greige); text-decoration: line-through; }
.precio .desc { font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em; color: var(--rojo); }

.producto-info .btn-solido { width: 100%; margin-top: 30px; }
.producto-info .nota-mono { margin-top: 14px; text-align: center; }

.lead { margin-top: 44px; font-size: 18px; letter-spacing: -0.01em; }
.lead strong { font-weight: 600; }
.cuerpo { margin-top: 14px; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--greige); }

.checklist { list-style: none; margin-top: 28px; border-top: 1px solid var(--linea); }
.checklist li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--linea);
  font-size: 14px;
  color: var(--lino);
}
.checklist li::before {
  content: "✓";
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rojo);
}

/* ══════════ PÁGINA DE PRODUCTO (producto.html) — estructura de Pordoi ══════════
   Izquierda: la caja 3D grande (~63%). Derecha (columna angosta): kicker, título,
   precio, línea, edición, botón de compra + express, frase, párrafos y checklist. */

.pagina-producto .producto.pagina {
  grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
  gap: clamp(32px, 3.4vw, 56px);
  max-width: 1440px;
  padding-top: calc(76px + clamp(16px, 2vw, 28px));
  padding-bottom: clamp(60px, 8vw, 120px);
  min-height: 100vh;
}
.pagina-producto .producto-info { max-width: 440px; padding-top: clamp(8px, 4vw, 64px); }
.pagina-producto .producto-titulo {
  margin-top: 14px;
  font-size: clamp(28px, 2.3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.pagina-producto .precio {
  margin-top: 14px;
  gap: 10px;
  padding-bottom: 26px;
  border-bottom-color: rgba(234, 224, 197, 0.32);
}
.pagina-producto .precio .actual { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.pagina-producto .precio .anterior { font-size: 14px; }

/* selector de edición: tarjetas como las variantes de una tienda */
.ediciones { margin-top: 24px; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.ediciones-titulo {
  padding: 0;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--greige);
}
.edicion {
  position: relative;
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(234, 224, 197, 0.16);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.edicion input {
  appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: inherit;
  cursor: pointer;
}
.edicion:hover { border-color: rgba(234, 224, 197, 0.34); }
.edicion:has(input:checked) { border-color: var(--hueso); background: rgba(234, 224, 197, 0.06); }
.edicion:has(input:focus-visible) { outline: 2px solid var(--hueso); outline-offset: 3px; }
.edicion-linea {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hueso);
}
/* punto de radio */
.edicion-linea::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(234, 224, 197, 0.45);
  transition: border-width 0.2s ease, border-color 0.2s ease;
}
.edicion:has(input:checked) .edicion-linea::before { border: 4px solid var(--hueso); }
.edicion-nombre { flex: 1; }
.edicion-precio { font-weight: 400; }
.edicion-desc { display: block; margin-top: 4px; padding-left: 24px; font-size: 12.5px; line-height: 1.5; color: var(--greige); }

/* botones como los de Pordoi: redondeados 14px, 52px de alto, a todo el ancho */
.btn-compra,
.btn-express {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.btn-compra {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--fondo);
  background: var(--hueso);
}
.btn-compra .flecha { font-family: var(--sans); transition: transform 0.4s var(--ease); }
.btn-express {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hueso);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-express-metodos { font-weight: 300; color: var(--greige); }
@media (hover: hover) {
  .btn-compra:hover { background: #fff; }
  .btn-compra:hover .flecha { transform: translateX(5px); }
  .btn-express:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
}
.pagos-nota { margin-top: 12px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--greige); }
.pagos-nota a { color: var(--lino); text-underline-offset: 3px; }

/* ══════════ TÉRMINOS (terms.html) ══════════ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(76px + clamp(48px, 7vw, 96px)) var(--margen) clamp(80px, 9vw, 130px);
}
.legal .titulo { margin-top: 18px; }
.legal-intro { margin-top: 26px; font-size: 17px; line-height: 1.7; color: var(--lino); }
.legal section { scroll-margin-top: 100px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--linea); }
.legal h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--hueso); }
.legal p { margin-top: 12px; font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--greige); }
.legal strong { font-weight: 600; color: var(--hueso); }
.legal a { color: var(--hueso); text-underline-offset: 3px; }
.legal-lista { margin-top: 12px; padding-left: 0; list-style: none; }
.legal-lista li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--greige);
}
.legal-lista li::before { content: "✕"; position: absolute; left: 0; top: 7px; font-size: 11px; color: var(--rojo); }

.pagina-producto .lead { margin-top: 34px; font-size: 15px; }
.pagina-producto .cuerpo { margin-top: 14px; font-size: 14px; line-height: 1.65; }
.pagina-producto .cuerpo strong { font-weight: 600; color: var(--hueso); }
/* oferta agrupada (TOOLS / TRAINING / ACCESS), como en Reilin Joey */
.pagina-producto .oferta-grupos { margin-top: 26px; }
.pagina-producto .checklist-grupo {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--greige);
}
.pagina-producto .checklist-grupo:first-child { margin-top: 0; }
.pagina-producto .oferta-grupos .checklist { margin-top: 6px; }
/* checklist como Pordoi: lista simple con ✓, sin líneas entre renglones */
.pagina-producto .checklist { border-top: none; }
.pagina-producto .checklist li { gap: 12px; padding: 4px 0; border-bottom: none; font-size: 14px; }
.ediciones-cambio {
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  color: var(--hueso);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(234, 224, 197, 0.4);
  cursor: pointer;
}
.ediciones-cambio:hover { text-decoration-color: var(--hueso); }
#luts { scroll-margin-top: 110px; }
.cierre-corto { margin-top: 0; }
.cierre-corto .cierre-pie { margin-top: 0; }

/* ══════════ MARCAS (franja continua de logos, como en twowaves.mx) ══════════ */

.marcas { padding: clamp(110px, 12vw, 180px) 0 clamp(36px, 4.5vw, 64px); }
/* misma tipografía que "Achieve cinematic consistency." (.titulo), a la mitad de tamaño */
.marcas-titulo {
  text-align: center;
  padding: 0 var(--margen);
  font-size: clamp(22px, 2.3vw, 32px);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.marcas-franja {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  overflow: hidden;
  /* desvanecido marcado en las orillas. Va como capas del color del fondo encima de la
     pista (no como máscara): no se recalcula en cada cuadro y es más fluido en celular */
  --fade: clamp(56px, 18vw, 300px);
}
.marcas-franja::before,
.marcas-franja::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  z-index: 2;
  width: var(--fade);
  pointer-events: none;
}
.marcas-franja::before { left: 0; background: linear-gradient(to right, var(--fondo) 0%, rgba(11, 11, 10, 0.88) 35%, rgba(11, 11, 10, 0.45) 70%, rgba(11, 11, 10, 0) 100%); }
.marcas-franja::after { right: 0; background: linear-gradient(to left, var(--fondo) 0%, rgba(11, 11, 10, 0.88) 35%, rgba(11, 11, 10, 0.45) 70%, rgba(11, 11, 10, 0) 100%); }
.marcas-pista {
  display: flex;
  align-items: center;
  gap: clamp(3.5rem, 7vw, 6.5rem);
  width: max-content;
  padding-right: clamp(3.5rem, 7vw, 6.5rem);
  animation: desfileMarcas 55s linear infinite;
  will-change: transform;
}
.marcas-franja:hover .marcas-pista { animation-play-state: paused; }
@keyframes desfileMarcas { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
/* mismo tamaño que en twowaves.mx: base común × factor óptico de cada logo (según su forma) */
.marca-logo {
  height: calc(var(--factor, 1) * clamp(2.2rem, 3.55vw, 3.25rem)); /* ~20% más chicos que en twowaves.mx */
  width: auto;
  max-width: 280px;
  object-fit: contain;
  /* los PNG ya vienen en blanco: sin filtro (un filtro en 40 logos en movimiento cuesta en celular) */
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.marca-logo:hover { opacity: 1; }

/* ══════════ CINEMATIC CONSISTENCY (encabeza el collage y los sliders) ══════════ */
.consistencia {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 130px) var(--margen) 0;
}
.consistencia .looks-cabeza { margin-bottom: 0; }

/* ══════════ COLLAGE (clase .introducing) ══════════ */

.introducing {
  position: relative;
  max-width: var(--ancho);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0 var(--margen);
}
.introducing-tiras {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.2fr 1fr 0.7fr;
  height: clamp(260px, 38vw, 520px);
  overflow: hidden;
}
.introducing-tiras img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════ LOOKS ══════════ */

.looks {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--margen) 0;
  scroll-margin-top: 60px;
}
.looks-cabeza {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: clamp(56px, 7vw, 96px);
}

/* ══════════ CARRUSEL DE SLIDERS ══════════
   Cada clip mide 960px (el tamaño de Pordoi); los vecinos se asoman tenues a los lados.
   La pista se mueve con transform; se navega con flechas, rayitas o tocando un vecino
   (el arrastre horizontal sobre la foto es del slider antes/después). */

.looks { max-width: none; padding-left: 0; padding-right: 0; }

.carrusel { --ancho-slide: min(960px, calc(100vw - 2 * var(--margen))); --hueco: clamp(12px, 2vw, 28px); }
.carrusel-ventana { overflow: hidden; }
.carrusel-pista {
  display: flex;
  gap: var(--hueco);
  transform: translate3d(var(--desplazamiento, 0px), 0, 0);
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.carrusel-pista .look {
  flex: 0 0 var(--ancho-slide);
  opacity: 0.32;
  transform: scale(0.94);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  cursor: pointer;
}
.carrusel-pista .look.activo { opacity: 1; transform: none; cursor: auto; }
/* los vecinos no se arrastran: un clic los trae al centro */
.carrusel-pista .look:not(.activo) .comparador { pointer-events: none; }

.carrusel-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(22px, 3vw, 34px);
  padding: 0 var(--margen);
}
.carrusel-flecha {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--hueso);
  font-family: var(--sans);
  font-size: 17px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease), opacity 0.4s ease;
}
@media (hover: hover) {
  .carrusel-flecha:hover { background: var(--hueso); color: var(--fondo); border-color: var(--hueso); }
  .carrusel-flecha[data-dir="-1"]:hover { transform: translateX(-2px); }
  .carrusel-flecha[data-dir="1"]:hover { transform: translateX(2px); }
}
.carrusel-flecha:active { transform: scale(0.94); }
.carrusel-flecha:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.carrusel-flecha:focus-visible { outline: 1px solid var(--hueso); outline-offset: 3px; }

.carrusel-centro { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 150px; }
.carrusel-contador {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--greige);
}
.carrusel-contador .actual { color: var(--hueso); }
.carrusel-puntos { display: flex; gap: 6px; }
.carrusel-punto {
  width: 16px;
  height: 14px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}
.carrusel-punto::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: rgba(234, 224, 197, 0.25);
  transition: background 0.4s ease, transform 0.4s var(--ease);
}
.carrusel-punto[aria-selected="true"]::before { background: var(--hueso); transform: scaleY(1.5); }
@media (hover: hover) { .carrusel-punto:hover::before { background: rgba(234, 224, 197, 0.6); } }
.carrusel-punto:focus-visible { outline: 1px solid var(--hueso); outline-offset: 2px; }

.look-num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hueso);
}
.look-nombre {
  margin: 2px 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.look-desc {
  margin-top: 26px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--greige);
}

/* ══════════ COMPARADOR (estilo Pordoi: 2:1, esquinas de 16px, manija sólida) ══════════
   Todo el movimiento es con transform (lo hace la GPU, sin repintar la foto):
   --x (0–100) desplaza el marco del "antes", su imagen en sentido contrario, y la guía. */

.comparador {
  --x: 25; /* debe coincidir con X_INICIAL en main.js: 3/4 del after a la vista */
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 16px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* pan-y: el gesto vertical sigue scrolleando la página; el horizontal mueve el slider */
  touch-action: pan-y;
  background: #050505;
  isolation: isolate;
  transform: translateZ(0); /* recorte de esquinas estable en Safari */
}
.comparador:focus-visible { outline: 1px solid var(--hueso); outline-offset: 4px; }

.comparador img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.antes-marco {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none; /* el toque siempre cae en el slider, no en esta capa */
  transform: translate3d(calc((var(--x) - 100) * 1%), 0, 0);
}
.antes-marco .antes { transform: translate3d(calc((100 - var(--x)) * 1%), 0, 0); }

/* capa del ancho del slider: la línea y la manija van centradas en ella y la capa se desplaza */
.guia {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform: translate3d(calc((var(--x) - 50) * 1%), 0, 0);
}
/* preparar capas de GPU solo en el clip activo: con los 8 a la vez, el iPhone se queda sin memoria gráfica */
.look.activo .antes-marco,
.look.activo .antes-marco .antes,
.look.activo .guia { will-change: transform; }
.guia .linea {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--hueso);
}
.guia .handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--hueso) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%230b0b0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='15' y1='8' x2='15' y2='22'/%3E%3Cpolyline points='7 11 3 15 7 19'/%3E%3Cline x1='3' y1='15' x2='11' y2='15'/%3E%3Cpolyline points='23 11 27 15 23 19'/%3E%3Cline x1='19' y1='15' x2='27' y2='15'/%3E%3C/svg%3E") center / 30px 30px no-repeat;
  box-shadow: 1px 1px 1px rgba(8, 3, 3, 0.5);
}
/* sin animar la manija al arrastrar: escalarla repintaba toda la capa de la guía cuadro por cuadro
   en celular, justo al empezar cada arrastre */
.comparador.arrastrando { cursor: grabbing; }

/* deslizamiento suave al tocar o usar el teclado (no durante el arrastre) */
.comparador.deslizando .antes-marco,
.comparador.deslizando .antes-marco .antes,
.comparador.deslizando .guia { transition: transform 0.45s var(--ease); }

.comparador .tag.camara {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--hueso);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 0, 0, 0.5);
}

/* ══════════ RESEÑAS (estructura de Pordoi) ══════════ */

.resenas {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(110px, 12vw, 180px) var(--margen) 0;
}
.resenas .titulo { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }
.resenas-carrusel { position: relative; }
.resenas-pista {
  --hueco-r: clamp(14px, 1.6vw, 22px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--hueco-r)) / 3);
  gap: var(--hueco-r);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.resenas-pista::-webkit-scrollbar { display: none; }
.resenas-pista:focus-visible { outline: 1px solid var(--hueso); outline-offset: 6px; border-radius: 18px; }
.resena {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}
.resena-autor { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.resena-perfil { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.resena-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(160deg, #22211f, #121211);
  box-shadow: 0 0 0 1px rgba(234, 224, 197, 0.16);
}
.resena-quien { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.resena-nombre { font-size: 15px; font-weight: 600; color: var(--hueso); }
.resena-ig { font-size: 13px; font-weight: 300; color: var(--greige); }
a.resena-perfil .resena-nombre { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.3s ease; }
a.resena-perfil:hover .resena-nombre { text-decoration-color: rgba(234, 224, 197, 0.5); }
a.resena-perfil:focus-visible { outline: 1px solid var(--hueso); outline-offset: 4px; border-radius: 8px; }
.resena-pais { flex-shrink: 0; margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rojo); }
.resena-estrellas { margin-top: 18px; font-size: 17px; letter-spacing: 3px; color: var(--hueso); }
.resena-titulo { margin-top: 14px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--hueso); }
.resena-texto { margin-top: 10px; font-size: 14.5px; font-weight: 300; line-height: 1.7; color: var(--greige); }

/* flechas a los lados, como en Pordoi */
.resenas-flecha { position: absolute; top: 50%; z-index: 2; margin-top: -23px; }
.resenas-flecha[data-dir="-1"] { left: -23px; }
.resenas-flecha[data-dir="1"] { right: -23px; }
.resenas-puntos { justify-content: center; margin-top: 28px; }

/* ══════════ BLOQUES (reviews, FAQ) ══════════ */

.bloque {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(110px, 12vw, 180px) var(--margen) 0;
}
.bloque .titulo { text-align: center; margin-bottom: clamp(44px, 5vw, 64px); }


.faq-item { border-bottom: 1px solid var(--linea); }
.faq-item:first-child { border-top: 1px solid var(--linea); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  list-style: none;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  padding: 24px 0;
  cursor: pointer;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .mas {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--greige);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.faq-item[open] .mas { transform: rotate(45deg); }
.faq-a { animation: faqEntra 0.5s var(--ease); }
@keyframes faqEntra {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.faq-a p { padding: 0 0 26px; font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--greige); max-width: 640px; }

/* ══════════ CIERRE ══════════ */

.cierre {
  margin-top: clamp(130px, 15vw, 220px);
  padding: 0 var(--margen) 32px;
}
.cierre-frase {
  font-size: clamp(44px, 9.6vw, 160px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.88;
  text-transform: uppercase;
  color: rgba(234, 224, 197, 0.07);
}
.cierre-pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--linea);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--greige);
}
.marca-texto { color: var(--hueso); font-size: 11px; letter-spacing: 0.4em; }
.cierre-links { display: flex; gap: 28px; }
.cierre-links a { text-decoration: none; transition: color 0.3s ease; }
.cierre-links a:hover { color: var(--hueso); }
/* crédito Two Waves: isotipo (T con punto) + texto, en una píldora tenue */
.cierre-powered { margin-top: 40px; text-align: center; }
.cierre-powered a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(234, 224, 197, 0.2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--lino);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.cierre-powered svg { width: 22px; height: auto; fill: currentColor; flex-shrink: 0; }
.cierre-powered strong { font-weight: 500; color: var(--hueso); }
.cierre-powered a:hover { color: var(--hueso); border-color: rgba(234, 224, 197, 0.5); background: rgba(234, 224, 197, 0.04); }
.cierre-powered a:focus-visible { outline: 1px solid var(--hueso); outline-offset: 3px; }

/* ══════════ BARRA DE COMPRA FIJA (estilo Pordoi, con el vidrio de SPECTRE) ══════════ */

.barra-compra {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  width: min(600px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 13, 0.74);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.5s var(--ease), opacity 0.35s ease;
  pointer-events: none;
}
.barra-compra.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* espacio al final para que la barra nunca tape el footer */
body:has(.barra-compra) .cierre { padding-bottom: 120px; }

/* miniatura: solo el icono de SPECTRE */
.barra-compra-mini {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a18, #070707 70%);
  border: 1px solid rgba(234, 224, 197, 0.14);
  color: var(--hueso);
}
.barra-compra-mini svg { position: absolute; left: 50%; top: 50%; width: 54%; transform: translate(-50%, -50%); }

.barra-compra-info { flex: 1; min-width: 0; }
.barra-compra-nombre {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hueso);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.barra-compra-nombre span { font-weight: 300; font-style: italic; color: var(--greige); }

.barra-compra-boton {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 15px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--fondo);
  background: var(--hueso);
  transition: background 0.3s ease;
}
.barra-compra-boton .flecha { font-family: var(--sans); transition: transform 0.4s var(--ease); }
@media (hover: hover) {
  .barra-compra-boton:hover { background: #fff; }
  .barra-compra-boton:hover .flecha { transform: translateX(4px); }
}
.barra-compra-boton:active { transform: scale(0.97); }
.barra-compra-boton:focus-visible { outline: 1px solid var(--hueso); outline-offset: 3px; }

@media (max-width: 600px) {
  .barra-compra { bottom: 10px; gap: 11px; padding: 7px; border-radius: 19px; }
  .barra-compra-mini { width: 44px; height: 44px; border-radius: 12px; }
  .barra-compra-nombre { font-size: 14px; }
  .barra-compra-boton { padding: 14px 16px; letter-spacing: 0.16em; }
}
@media (max-width: 380px) {
  .barra-compra-nombre span { display: none; }
}

/* ══════════ REVEAL ══════════ */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.visto { opacity: 1; transform: none; }

@media (max-width: 1100px) and (min-width: 861px) {
  .resenas-pista { grid-auto-columns: calc((100% - var(--hueco-r)) / 2); }
}

/* ══════════ MÓVIL ══════════ */

@media (max-width: 860px) {
  .producto { grid-template-columns: 1fr; }
  .pagina-producto .producto.pagina { grid-template-columns: 1fr; padding-top: 92px; min-height: 0; }
  .caja-escena { position: relative; top: 0; aspect-ratio: 1 / 1; }
  .caja-escena { --w: 46cqi; }
  .pagina-producto .producto-info { max-width: none; padding-top: 0; }
  .marca-logo { height: calc(var(--factor, 1) * 1.7rem); }
  .marcas-pista { gap: 2.4rem; padding-right: 2.4rem; animation-duration: 40s; }
  .consistencia .nota-mono { letter-spacing: 0.1em; }
  .resenas-pista { grid-auto-columns: 86%; }
  .resenas-flecha { display: none; }
  .carrusel-pista .look { opacity: 0.4; }
  .introducing-tiras { grid-template-columns: 1fr 1.4fr 1fr; }
  .introducing-tiras img:nth-child(n+4) { display: none; }
  .comparador .tag.camara { font-size: 9px; bottom: 10px; }
  .guia .handle { width: 40px; height: 40px; margin: -20px 0 0 -20px; background-size: 26px 26px; }
  .look-nombre { font-size: 22px; }
    .cabecera .link-mono { font-size: 9px; letter-spacing: 0.2em; }
  .hero-kicker { font-size: 8px; letter-spacing: 0.22em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .faq-a { animation: none; }
  .barra-compra { transition: none; }
  .marcas-pista { animation: none; }
  .carrusel-pista, .carrusel-pista .look { transition: none; }
  .comparador.deslizando .antes-marco,
  .comparador.deslizando .antes-marco .antes,
  .comparador.deslizando .guia { transition: none; }
  .hero-media video { animation: none; transition: none; }
  .scroll-dot { animation: none; }
  .js .hero-meta, .js .cabecera { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-scroll.hero-meta { transform: translateX(-50%); }
}

/* ══════════ ÁREA DE MIEMBROS (access.html) ══════════ */
.acceso {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(76px + clamp(48px, 7vw, 96px)) var(--margen) clamp(80px, 9vw, 130px);
  min-height: 80vh;
}
.acceso-candado { max-width: 440px; margin: 0 auto; text-align: center; }
.acceso-icono { width: 54px; height: 54px; color: var(--hueso); margin-bottom: 26px; }
.acceso-candado .titulo { margin-top: 16px; font-size: clamp(32px, 4vw, 48px); }
.acceso-texto { margin-top: 18px; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--greige); }
.acceso-texto a, .acceso-ayuda a, .acceso-error a { color: var(--hueso); text-underline-offset: 3px; }
.acceso-form { margin-top: 34px; text-align: left; }
.acceso-etiqueta { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; color: var(--greige); }
.acceso-form input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(234, 224, 197, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--hueso);
  font-family: var(--mono);
  font-size: 16px; /* 16px: el iPhone no hace zoom al enfocar */
  letter-spacing: 0.12em;
  outline: none;
  transition: border-color 0.3s ease;
}
.acceso-form input[type="password"]:focus { border-color: var(--hueso); }
.acceso-recordar { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--greige); cursor: pointer; }
.acceso-recordar input { accent-color: var(--hueso); width: 16px; height: 16px; }
.acceso-form .btn-compra { border: 0; cursor: pointer; }
.acceso-form .btn-compra:disabled { opacity: 0.6; cursor: wait; }
.acceso-error { margin-top: 14px; font-size: 13px; line-height: 1.6; color: #e07a6c; }
.acceso-ayuda { margin-top: 28px; font-size: 13px; color: var(--greige); }

.miembros-intro { max-width: 720px; }
.miembros-intro .titulo { margin-top: 16px; }
.miembros-seccion { margin-top: clamp(56px, 7vw, 88px); }
.miembros-subtitulo {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linea);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hueso);
}
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px 26px; margin-top: 28px; }
.video-marco {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #121211;
  border: 1px solid rgba(234, 224, 197, 0.1);
}
.video-marco.pronto { display: flex; align-items: center; justify-content: center; }
.video-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.4s ease; opacity: 0.85; }
.video-play-icono {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: var(--hueso);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.video-play-icono::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 19px;
  border-left: 16px solid var(--fondo);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
@media (hover: hover) {
  .video-play:hover img { transform: scale(1.03); opacity: 1; }
}
.video-play:focus-visible { outline: 2px solid var(--hueso); outline-offset: -2px; border-radius: 14px; }
.video-titulo { margin-top: 16px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--hueso); }
.video-meta { margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--rojo); }
.video-desc { margin-top: 8px; font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--greige); }

.descargas { list-style: none; margin-top: 10px; padding: 0; }
.descarga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--linea);
}
.descarga-titulo { font-size: 16px; font-weight: 600; color: var(--hueso); }
.descarga-detalle { margin-top: 4px; font-size: 13px; font-weight: 300; color: var(--greige); }
.descarga-boton {
  flex-shrink: 0;
  padding: 13px 20px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--fondo);
  background: var(--hueso);
  transition: background 0.3s ease;
}
.descarga-boton:hover { background: #fff; }
.descarga-boton.pronto { color: var(--greige); background: none; border: 1px solid rgba(234, 224, 197, 0.2); }
.miembros-mejora {
  margin-top: clamp(56px, 7vw, 88px);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(234, 224, 197, 0.18);
  background: rgba(234, 224, 197, 0.03);
}
.miembros-mejora .acceso-texto { margin-top: 0; max-width: 560px; }
.miembros-mejora .btn-compra { width: auto; display: inline-flex; padding: 0 26px; margin-top: 18px; }
.miembros-pie { margin-top: clamp(56px, 7vw, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.acceso-cerrar { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
@media (max-width: 600px) {
  .descarga { flex-direction: column; align-items: flex-start; gap: 14px; }
  .videos { grid-template-columns: 1fr; }
}
