/* ═══════════════════════════════════════════════════
   DEMIN CONSCIENTE — Laboratorio de Respiración
   Laboratorio oscuro. Paleta DEMIN unificada el 2026-09-16 (LAB V2,
   Motion System V1): antes verde/jade; los NOMBRES de los tokens se
   conservaron (--verde-profundo es ahora una superficie cálida oscura,
   --jade-suave un dorado claro para el acento secundario). Lee el
   valor, no el nombre — mismo criterio que css/style-registro.css.
   ═══════════════════════════════════════════════════ */

:root {
  /* Paleta de marca — sin alterar hex, solo reinterpretada en oscuro */
  --verde-profundo:  #2A2621;
  --jade-suave:      #E3C988;
  --arena-calida:    #F2EDE4;
  --cobre-organico:  #C9A84C;
  --casi-negro:      #1C1A18;
  --oro-logo:        #C9A84C;

  /* Texto sobre fondo oscuro */
  --text: var(--arena-calida);
  --text-muted-deep: rgba(242, 237, 228, 0.62);    /* sobre casi-negro */
  --text-muted-surface: rgba(242, 237, 228, 0.78); /* sobre verde-profundo (más claro) */

  /* Espaciado — múltiplos de 4px/8px */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  /* Micro-interacciones */
  --transition: 240ms ease-in-out;

  /* Glassmorphism — vidrio oscuro, borde cobre orgánico */
  --glass-bg: rgba(28, 26, 24, 0.45);
  --glass-bg-strong: rgba(24, 22, 19, 0.62);
  --glass-border: rgba(201, 168, 76, 0.22);
  --glass-blur: blur(16px);

  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem; /* 16px base — evita auto-zoom de iOS en inputs */
  color: var(--text);
  background-color: var(--casi-negro);
  line-height: 1.6;
  /* espacio para la barra CTA fija de pulgar en móvil */
  padding-bottom: 76px;
}

body.gate-active {
  overflow: hidden;
}

body.gate-active .navbar,
body.gate-active .thumb-bar {
  display: none;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.highlight {
  color: var(--cobre-organico);
  font-style: italic;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  background-color: var(--verde-profundo);
  color: var(--arena-calida);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: top 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── MICRO-INTERACCIONES GLOBALES ──────────────── */
a, button, input, .slider, .bio-axis__input, .experiment-card, .revelation-toggle {
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), opacity var(--transition),
              transform var(--transition), box-shadow var(--transition);
}

button:active, .cta-primary:active, .cta-secondary:active, .play-button:active {
  transform: scale(0.97);
}

:focus-visible {
  outline: 2px solid var(--cobre-organico);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}


/* ═══════════════════════════════════════════════════
   PORTAL DE ENTRADA — secuencia de respiración
   ═══════════════════════════════════════════════════ */

.experiment-tips {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.experiment-tips[hidden] {
  display: none;
}

.experiment-tips__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(28, 26, 24, 0.75);
}

.experiment-tips__box {
  position: relative;
  max-width: 360px;
  width: 100%;
  background-color: var(--verde-profundo);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: center;
}

.experiment-tips__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted-surface);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.experiment-tips__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  margin-bottom: 1.25rem;
}

.experiment-tips__list {
  list-style: none;
  margin: 0 0 1.75rem;
  text-align: left;
}

.experiment-tips__list li {
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.375rem 0 0.375rem 1.25rem;
  position: relative;
}

.experiment-tips__list li::before {
  content: '·';
  position: absolute;
  left: 0.25rem;
  color: var(--cobre-organico);
  font-weight: 700;
}

.experiment-tips .cta-primary {
  width: 100%;
}


/* ─── LOGIN — mismo patrón de modal que .experiment-tips ─────── */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(28, 26, 24, 0.75);
}

.auth-modal__box {
  position: relative;
  max-width: 360px;
  width: 100%;
  background-color: var(--verde-profundo);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: center;
}

.auth-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted-surface);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.auth-modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  margin-bottom: 1rem;
}

.auth-modal__box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.auth-modal__box p {
  font-size: 0.9375rem;
  color: var(--text-muted-deep);
  margin-bottom: 1.5rem;
}

.auth-modal .cta-primary {
  width: 100%;
}


/* ─── TU LABORATORIO — progreso visible sin login ─────────────── */

.lab-progress-block {
  max-width: 320px;
  margin: 0 auto 2rem;
  text-align: center;
}

.lab-progress-block__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  margin-bottom: 0.75rem;
}

.lab-progress__list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.lab-progress__item {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted-deep);
}

.lab-progress__item.is-done {
  color: var(--jade-suave);
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  text-align: center;
  background:
    radial-gradient(700px circle at 50% 40%, rgba(227, 201, 136, 0.1), transparent 70%),
    var(--casi-negro);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.intro-gate.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-gate__circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 201, 136, 0.4) 0%, rgba(201, 168, 76, 0.16) 70%, transparent 100%);
  border: 1px solid rgba(201, 168, 76, 0.4);
  animation: gateBreathe 5.5s ease-in-out infinite;
}

/* expansión → pausa → contracción → pausa — proporciones medidas sobre el
   audio real (audios/gate-respiracion-in-out.mp3, silencedetect vía ffmpeg):
   inhalación ~40% del ciclo, sostenida arriba ~8%, exhalación ~17%,
   sostenida abajo ~35%. El audio empieza inhalando en el segundo 0, por eso
   el halo también arranca expandiéndose desde el 0% en vez de esperar. */
@keyframes gateBreathe {
  0%   { transform: scale(0.68); opacity: 0.55; }
  40%  { transform: scale(1);    opacity: 1; }
  48%  { transform: scale(1);    opacity: 1; }
  65%  { transform: scale(0.68); opacity: 0.55; }
  100% { transform: scale(0.68); opacity: 0.55; }
}

.intro-gate__text {
  min-height: 2.5em;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--text);
  max-width: 20ch;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.intro-gate__text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-gate__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 420px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.intro-gate__welcome.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-gate__welcome h1 {
  font-size: 1.875rem;
  letter-spacing: 0.02em;
}

.intro-gate__welcome p {
  font-size: 0.9375rem;
  color: var(--text-muted-deep);
  line-height: 1.7;
}

.intro-gate__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cobre-organico);
}

@media (min-width: 768px) {
  .intro-gate__text { font-size: 2.25rem; }
  .intro-gate__welcome h1 { font-size: 2.5rem; }
}


/* ═══════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: rgba(28, 26, 24, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  padding: 0.875rem 1.75rem;
}

.navbar__logo p {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--jade-suave);
  text-decoration: none;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--cobre-organico);
}

.navbar__cta {
  /* En móvil la acción principal vive en la barra inferior (zona de pulgar) */
  display: none;
  background-color: var(--cobre-organico);
  color: var(--casi-negro);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}

.navbar__cta:hover,
.navbar__cta:focus-visible {
  opacity: 0.85;
}

@media (min-width: 768px) {
  .navbar { padding: 1rem 2.5rem; }
  .navbar__cta { display: inline-block; }
}

/* ─── CONTROL DE AUDIO AMBIENTAL ─────────────────── */

.ambient-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(242, 237, 228, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--cobre-organico);
  font-size: 0.9375rem;
  cursor: pointer;
}

.ambient-toggle[aria-pressed="true"] {
  background-color: var(--cobre-organico);
  color: var(--casi-negro);
}


/* ═══════════════════════════════════════════════════
   BARRA CTA FIJA — zona de pulgar (solo móvil)
   ═══════════════════════════════════════════════════ */

.thumb-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background-color: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.thumb-bar__cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background-color: var(--cobre-organico);
  color: var(--casi-negro);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.thumb-bar__cta:active {
  transform: scale(0.97);
}

.thumb-bar__cta--secondary {
  background-color: transparent;
  color: var(--jade-suave);
  border: 1.5px solid var(--jade-suave);
}

@media (min-width: 768px) {
  .thumb-bar { display: none; }
}


/* ═══════════════════════════════════════════════════
   BOTONES REUTILIZABLES
   ═══════════════════════════════════════════════════ */

.cta-primary {
  display: inline-block;
  background-color: var(--cobre-organico);
  color: var(--casi-negro);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.28);
}

.cta-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--jade-suave);
  border: 1px solid var(--jade-suave);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 4px;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background-color: var(--jade-suave);
  color: var(--casi-negro);
}

.cta-large {
  font-size: 1.0625rem;
  padding: 1.125rem 3rem;
}


/* ═══════════════════════════════════════════════════
   DIVISOR ENTRE SECCIONES
   ═══════════════════════════════════════════════════ */

.section-divider {
  height: 1px;
  max-width: 220px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.5), transparent);
}


/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--casi-negro);
  background-image:
    radial-gradient(560px circle at 20% 25%, rgba(227, 201, 136, 0.12), transparent 70%),
    radial-gradient(480px circle at 80% 78%, rgba(201, 168, 76, 0.1), transparent 70%);
  padding: 6rem 1.75rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.14);
  animation: heroBreath 7s ease-in-out infinite;
  pointer-events: none;
}

/* expansión → pausa → contracción → pausa — lenguaje de movimiento base del sitio */
@keyframes heroBreath {
  0%   { transform: translate(-50%, -50%) scale(0.85); opacity: 0.45; }
  30%  { transform: translate(-50%, -50%) scale(1);    opacity: 0.16; }
  50%  { transform: translate(-50%, -50%) scale(1);    opacity: 0.16; }
  80%  { transform: translate(-50%, -50%) scale(0.85); opacity: 0.45; }
  100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.45; }
}

.hero__visual {
  width: 84px;
  height: 84px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 201, 136, 0.4) 0%, rgba(201, 168, 76, 0.14) 70%, transparent 100%);
  border: 1px solid rgba(201, 168, 76, 0.35);
  animation: heroVisualBreathe 7s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes heroVisualBreathe {
  0%   { transform: scale(0.72); opacity: 0.55; }
  30%  { transform: scale(1);    opacity: 1; }
  50%  { transform: scale(1);    opacity: 1; }
  80%  { transform: scale(0.72); opacity: 0.55; }
  100% { transform: scale(0.72); opacity: 0.55; }
}

.hero__container {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 2rem;
  max-width: 22ch;
  margin: 0 auto 1.75rem;
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted-deep);
  max-width: 46ch;
  margin: 0 auto 2.5rem;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero__pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--cobre-organico);
  background-color: rgba(201, 168, 76, 0.16);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Contador comunitario — oculto hasta que el RPC (get_practice_counter,
   supabase/practice-counter-schema.sql) responde con un número real; nunca
   se muestra vacío ni en "0". Deliberadamente discreto (mono, tenue, sin
   badge/borde) para no competir con el CTA ni los pills de arriba. */
.hero__practice-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--jade-suave);
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .hero__title { font-size: 3rem; }
  .hero__subtitle { font-size: 1.0625rem; }
}


/* ═══════════════════════════════════════════════════
   EXPERIMENTOS
   ═══════════════════════════════════════════════════ */

.experiments {
  background-color: var(--casi-negro);
  background-image:
    radial-gradient(560px circle at 10% 10%, rgba(227, 201, 136, 0.1), transparent 65%),
    radial-gradient(520px circle at 90% 30%, rgba(201, 168, 76, 0.09), transparent 65%),
    radial-gradient(500px circle at 30% 90%, rgba(227, 201, 136, 0.06), transparent 65%);
  padding: 5rem 1.75rem;
}

.experiments__container {
  max-width: 720px;
  margin: 0 auto;
}

.experiments__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  text-align: center;
  margin-bottom: 1.25rem;
}

.experiments h2 {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 1rem;
}

.experiments__subtitle {
  text-align: center;
  color: var(--text-muted-deep);
  font-size: 1rem;
  margin-bottom: 3.5rem;
}

.experiments__closing {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--jade-suave);
  text-align: center;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .experiments { padding: 7rem 2.5rem; }
  .experiments h2 { font-size: 2.375rem; }
}


/* ─── EXPERIMENT CARD ───────────────────────────── */

.experiment-card {
  position: relative;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  border-left: 3px solid var(--jade-suave);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  transition: filter var(--transition), opacity var(--transition);
}

.experiment-card--01 { border-left-color: var(--jade-suave); }
.experiment-card--02 { border-left-color: var(--cobre-organico); }
.experiment-card--03 { border-left-color: var(--jade-suave); }
.experiment-card--04 { border-left-color: var(--cobre-organico); }
.experiment-card--05 { border-left-color: var(--jade-suave); }

.experiment-card__header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

/* Nivel "técnico" de tipografía — número enorme como marca de agua editorial */
.experiment-card__bignum {
  display: block;
  font-family: var(--font-mono);
  font-size: 4.25rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(201, 168, 76, 0.16);
  margin-bottom: -1.25rem;
  user-select: none;
}

.experiment-card__skill {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  margin-bottom: 0.5rem;
  position: relative;
}

.experiment-card__header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
}

.experiment-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.875rem 0 1.25rem;
}

.experiment-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem 0.875rem;
}

.experiment-card__meta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.experiment-card__meta-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-deep);
}

.experiment-card__meta-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
}

.experiment-card__meta-pill--primary {
  background-color: rgba(201, 168, 76, 0.16);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--cobre-organico);
}

.experiment-card__meta-pill--secondary {
  background-color: rgba(227, 201, 136, 0.12);
  border: 1px solid rgba(227, 201, 136, 0.4);
  color: var(--jade-suave);
}

@media (min-width: 768px) {
  .experiment-card__bignum { font-size: 5.5rem; margin-bottom: -1.75rem; }
}


/* ─── ACORDEÓN — comprimir experimentos, expandir bajo demanda ──── */

.experiment-card__toggle {
  display: block;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade-suave);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0 0;
}

.experiment-card__toggle:hover,
.experiment-card__toggle:focus-visible {
  color: var(--cobre-organico);
}

.experiment-card__toggle-icon {
  display: inline-block;
  margin-left: 0.375rem;
  transition: transform var(--transition);
}

.experiment-card.is-expanded .experiment-card__toggle-icon {
  transform: rotate(180deg);
}

.experiment-card:not(.is-expanded) .experiment-steps,
.experiment-card:not(.is-expanded) .experiment-card__body,
.experiment-card:not(.is-expanded) .experiment-card__revelation {
  display: none;
}


/* ─── STEPPER ANTES · PRÁCTICA · DESPUÉS ─────────── */

.experiment-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0 auto 1.75rem;
}

.experiment-steps__step {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-deep);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.experiment-steps__sep {
  color: rgba(242, 237, 228, 0.25);
  font-size: 0.625rem;
}

.experiment-steps__step.is-current {
  color: var(--cobre-organico);
  border-bottom-color: var(--cobre-organico);
}

.experiment-steps__step.is-done {
  color: var(--jade-suave);
}

.experiment-card__description {
  font-size: 0.9375rem;
  color: var(--text-muted-deep);
  font-style: italic;
}

.experiment-card__body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.experiment-card__measure {
  text-align: center;
}

.bio-measure__question {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.bio-measure__hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted-deep);
  margin-bottom: 1.25rem;
}

.bio-axis__track {
  position: relative;
}

.bio-axis__before-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background-color: var(--jade-suave);
  border: 2px solid var(--casi-negro);
  box-shadow: 0 0 0 1px rgba(227, 201, 136, 0.5);
  pointer-events: none;
  z-index: 1;
}


/* ─── BIO-DASHBOARD (indicadores de percepción) ──── */

.bio-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.bio-axis__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-deep);
  margin-bottom: 0.375rem;
}

.bio-axis__value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--cobre-organico);
}

.bio-axis__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--jade-suave) 0%, var(--jade-suave) 50%, rgba(242, 237, 228, 0.15) 50%, rgba(242, 237, 228, 0.15) 100%);
  outline: none;
  cursor: pointer;
}

.bio-axis__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--cobre-organico);
  border: 2px solid var(--casi-negro);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.5);
  cursor: pointer;
}

.bio-axis__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--cobre-organico);
  border: 2px solid var(--casi-negro);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.5);
  cursor: pointer;
}

.bio-axis__poles {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted-deep);
  margin-top: 0.375rem;
}

@media (min-width: 560px) {
  .bio-dashboard {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.75rem;
    max-width: 460px;
  }
}


/* ─── PLAY BUTTON ────────────────────────────────── */

.experiment-card__play-section {
  text-align: center;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background-color: var(--jade-suave);
  color: var(--casi-negro);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
}

.play-button:hover,
.play-button:focus-visible {
  opacity: 0.85;
}

.play-button.is-playing {
  background-color: var(--cobre-organico);
}

.play-button__icon {
  font-size: 0.75rem;
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.audio-controls__time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted-deep);
  min-width: 5.5rem;
  text-align: right;
}

.audio-controls__volume {
  width: 72px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 2px;
  background: rgba(242, 237, 228, 0.2);
  cursor: pointer;
}

.audio-controls__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--jade-suave);
  cursor: pointer;
}

.audio-controls__volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--jade-suave);
  border: none;
  cursor: pointer;
}

.audio-controls__restart {
  background: none;
  border: none;
  color: var(--text-muted-deep);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.audio-controls__restart:hover,
.audio-controls__restart:focus-visible {
  color: var(--cobre-organico);
}

.play-section__hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted-deep);
  margin-top: 0.625rem;
}

.play-section__note {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--cobre-organico);
  margin-top: 0.5rem;
}

.play-section__note.is-visible {
  display: block;
}

.play-button.is-silent {
  background-color: var(--jade-suave);
  opacity: 0.85;
}

/* ─── SKELETON / LOADING STATE (audio buffering) ─── */

.play-button.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}

.play-button.is-loading .play-button__skeleton {
  display: block;
}

.play-button__skeleton {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60%;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(28, 26, 24, 0.2) 25%,
    rgba(28, 26, 24, 0.5) 50%,
    rgba(28, 26, 24, 0.2) 75%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.2s ease-in-out infinite;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ─── REVELATION ─────────────────────────────────── */

.experiment-card__revelation {
  margin-top: 2rem;
  display: none;
}

.experiment-card__revelation.is-visible {
  display: block;
  animation: revealFade 0.6s ease;
}

@keyframes revealFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.revelation-box {
  background-color: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
}

.revelation-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1875rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.revelation-desc {
  font-size: 0.9375rem;
  color: var(--text-muted-deep);
  margin-bottom: 1.25rem;
}

.revelation-toggle {
  background: none;
  border: 1px solid var(--jade-suave);
  color: var(--jade-suave);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
}

.revelation-toggle:hover,
.revelation-toggle:focus-visible {
  background-color: var(--jade-suave);
  color: var(--casi-negro);
}

.revelation-details {
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(227, 201, 136, 0.25);
}

.revelation-details p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-muted-deep);
  margin-bottom: 0.875rem;
}

.revelation-details p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .experiment-card { padding: 3rem; }
}


/* ─── FEEDBACK POR EXPERIMENTO ───────────────────── */

.experiment-feedback {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
  text-align: center;
}

.experiment-feedback__label {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.feedback-rating {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
}

.feedback-rating__option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  background: none;
  color: var(--text-muted-deep);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  cursor: pointer;
}

.feedback-rating__option:hover,
.feedback-rating__option:focus-visible {
  border-color: var(--cobre-organico);
  color: var(--text);
}

.feedback-rating__option[aria-pressed="true"] {
  background-color: var(--cobre-organico);
  border-color: var(--cobre-organico);
  color: var(--casi-negro);
}

.feedback-rating__scale-labels {
  display: flex;
  justify-content: space-between;
  max-width: 240px;
  margin: 0 auto 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted-deep);
}

.experiment-feedback__comment {
  width: 100%;
  resize: vertical;
  margin-bottom: 0.5rem;
}

.experiment-feedback__status {
  display: block;
  margin-bottom: 0.75rem;
}

.experiment-feedback__submit {
  width: 100%;
}

@media (min-width: 768px) {
  .experiment-feedback { max-width: 360px; margin-left: auto; margin-right: auto; }
}


.signature-line {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jade-suave);
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   COMUNIDAD — invitación abierta (sin gate)
   ═══════════════════════════════════════════════════ */

.community-invite {
  background-color: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  margin: 1.5rem 0 2.5rem;
  text-align: center;
}

.community-invite__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  margin-bottom: 0.75rem;
}

.community-invite h3 {
  font-size: 1.375rem;
  margin-bottom: 1.75rem;
  line-height: 1.35;
}

.community-invite .cta-primary {
  display: block;
}


/* ─── NOTA DE SEGURIDAD — breve, siempre visible ─── */

.safety-note {
  margin: 1.5rem 0 2.5rem;
  text-align: left;
}

.safety-note summary {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--jade-suave);
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0;
}

.safety-note summary::-webkit-details-marker {
  display: none;
}

.safety-note summary::before {
  content: '+ ';
  color: var(--cobre-organico);
}

.safety-note[open] summary::before {
  content: '– ';
}

.safety-note__content {
  padding-top: 0.75rem;
}

.safety-note__content p {
  font-size: 0.875rem;
  color: var(--text-muted-deep);
  margin-bottom: 0.875rem;
}

.safety-note__note {
  font-style: italic;
}

.safety__list {
  list-style: none;
  margin: 0.5rem 0 1.25rem;
}

.safety__list li {
  font-size: 0.875rem;
  color: var(--text-muted-deep);
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}

.safety__list li::before {
  content: '·';
  position: absolute;
  left: 0.25rem;
  color: var(--cobre-organico);
  font-weight: 700;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; /* 16px — evita zoom automático en iOS */
  padding: 0.875rem 1rem;
  min-height: 48px;
  border: 1.5px solid rgba(242, 237, 228, 0.2);
  border-radius: 6px;
  background-color: rgba(242, 237, 228, 0.06);
  color: var(--text);
}

.form-input::placeholder {
  color: rgba(242, 237, 228, 0.4);
}

.form-input:focus {
  outline: 2px solid var(--jade-suave);
  outline-offset: 1px;
  border-color: var(--jade-suave);
}

.form-input.is-valid {
  border-color: var(--jade-suave);
  background-color: rgba(227, 201, 136, 0.1);
}

.form-input.is-invalid {
  border-color: #d98a6f;
}

.field-feedback {
  font-size: 0.75rem;
  min-height: 1em;
  color: #e2947a;
}

.field-feedback.is-valid {
  color: var(--jade-suave);
}

.disclaimer-note {
  font-size: 0.75rem;
  color: var(--text-muted-deep);
  text-align: center;
  margin-top: 1rem;
}

.cta-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .community-invite { padding: 2.5rem; }
}


/* ═══════════════════════════════════════════════════
   RESUMEN + BIBLIOTECA — tras los 3 experimentos
   ═══════════════════════════════════════════════════ */

.lab-summary {
  padding: 3rem 1.5rem;
  text-align: center;
}

.lab-summary__container {
  max-width: 460px;
  margin: 0 auto;
}

.lab-summary__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--cobre-organico);
  margin-bottom: 1rem;
}

.lab-summary__checklist {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--jade-suave);
  margin-bottom: 1rem;
}

.lab-summary__text {
  color: var(--text-muted-deep);
  margin-bottom: 2.5rem;
}

.library-teaser {
  background-color: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.library-teaser__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-deep);
  margin-bottom: 0.75rem;
}

.library-teaser h3 {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
}

.library-teaser__desc {
  font-size: 0.9375rem;
  color: var(--text-muted-deep);
  margin-bottom: 1.25rem;
}

.library-teaser__price {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  color: var(--cobre-organico);
  margin-bottom: 1.5rem;
}


/* ═══════════════════════════════════════════════════
   ONE BREATH
   ═══════════════════════════════════════════════════ */

.one-breath {
  background-color: var(--casi-negro);
  padding: 3.5rem 1.75rem;
  text-align: center;
  border-top: 1px solid rgba(227, 201, 136, 0.15);
  border-bottom: 1px solid rgba(227, 201, 136, 0.15);
}

.one-breath__container {
  max-width: 480px;
  margin: 0 auto;
}

.one-breath h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.one-breath p {
  font-size: 0.9375rem;
  color: var(--text-muted-deep);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}


/* ═══════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════ */

.cta-final {
  background-color: var(--casi-negro);
  padding: 6rem 1.75rem;
  text-align: center;
}

.cta-final__container {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-final p {
  color: var(--text-muted-deep);
  font-size: 1rem;
}

.cta-final__question {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.375rem;
  color: var(--jade-suave) !important;
  margin: 1.5rem 0 2rem !important;
}

@media (min-width: 768px) {
  .cta-final { padding: 8rem 2.5rem; }
  .cta-final h2 { font-size: 2.75rem; }
}


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.footer {
  background-color: var(--casi-negro);
  padding: 2rem 1.75rem;
  text-align: center;
  border-top: 1px solid rgba(227, 201, 136, 0.1);
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted-deep);
  margin-bottom: 0.25rem;
}


/* ═══════════════════════════════════════════════════════════════════
   LAB V2 — MOTION SYSTEM V1 (2026-09-16)
   material-fuente/specs-docx/DEMIN_CONSCIENTE_MOTION_SYSTEM_V1_MASTER_
   BRIEF.docx, sección 8: "Evolucionar sin destruir". Solo CSS y al final
   de esta hoja a propósito: laboratorio-deploy/ la consume por symlink,
   así que no hace falta ningún archivo nuevo en el otro proyecto Vercel.

   · Hero ........ REVEAL escalonado al llegar; el orbe y el anillo ya
                   respiraban (heroBreath) y se conservan.
   · Recorrido ... secciones y tarjetas emergen con el scroll
                   (animation-timeline: view(); sin soporte, se ven quietas).
   · Identidad por experimento, SOLO mientras suena su audio:
       01 ACTIVAR → PULSE  microexpansión del botón + anillo breve
       02 RELAJAR → FLOW   una luz que recorre lento el borde de la tarjeta
       03 VIBRAR  → WAVE   ondas que se propagan desde el botón
   · ANTES → PRÁCTICA → DESPUÉS: el paso actual respira.
   · La revelación final entra con REVEAL + blur.
   Todo bajo prefers-reduced-motion: no-preference.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --breath-dur: 6s;
  --pulse-scale: 1.025;
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes labReveal {
  from { opacity: 0; transform: translate3d(0, 20px, 0); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: no-preference) {

  /* ─── Hero: entrada escalonada ─── */
  .hero__title,
  .hero__subtitle,
  .hero__cta,
  .hero__pills,
  .hero__practice-counter {
    animation: labReveal 900ms var(--ease-reveal) backwards;
  }
  .hero__title { animation-delay: 250ms; }
  .hero__subtitle { animation-delay: 900ms; }
  .hero__cta { animation-delay: 1400ms; }
  .hero__pills { animation-delay: 1650ms; }
  .hero__practice-counter { animation-delay: 1850ms; }
  .hero__visual { animation: labReveal 1200ms var(--ease-reveal) backwards, heroVisualBreathe 7s ease-in-out 1.2s infinite; }

  /* ─── Recorrido: emerge con el scroll, sin secuestrarlo ─── */
  @supports (animation-timeline: view()) {
    .experiments__eyebrow,
    .experiments h2,
    .experiments__subtitle,
    .lab-progress-block,
    .safety-note,
    .experiment-card {
      animation: labReveal linear backwards;
      animation-timeline: view();
      animation-range: entry 0px entry 260px; /* fijo: una tarjeta expandida más alta que la pantalla no debe quedarse semitransparente mientras se lee */
    }
  }

  /* ─── Pasos: el actual respira ─── */
  .experiment-steps__step.is-current {
    animation: labStepBreath var(--breath-dur) var(--ease-breath) infinite;
  }
  @keyframes labStepBreath {
    0%, 100% { opacity: 0.75; }
    50%      { opacity: 1; }
  }

  /* ─── Revelación: REVEAL con blur ─── */
  .experiment-card__revelation.is-visible { animation: labReveal 900ms var(--ease-reveal) backwards; }

  /* ─── Identidad de cada experimento mientras suena ─── */
  .play-button { position: relative; isolation: isolate; }
  .play-button::before,
  .play-button::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid var(--cobre-organico);
    opacity: 0;
    pointer-events: none;
  }

  /* 01 ACTIVAR — PULSE: microexpansión + anillo breve */
  .experiment-card--01 .play-button.is-playing { animation: labPulse 1.6s var(--ease-breath) infinite; }
  .experiment-card--01 .play-button.is-playing::after { animation: labPulseRing 1.6s var(--ease-reveal) infinite; }
  @keyframes labPulse {
    0%, 45%, 100% { scale: 1; }
    20%           { scale: var(--pulse-scale); }
  }
  @keyframes labPulseRing {
    0%   { transform: scale(1); opacity: 0.8; }
    60%  { transform: scale(1.12, 1.6); opacity: 0; }
    100% { transform: scale(1.12, 1.6); opacity: 0; }
  }

  /* 02 RELAJAR — FLOW: una luz recorre despacio el borde izquierdo */
  .experiment-card--02 { overflow: hidden; }
  .experiment-card--02::after {
    content: '';
    position: absolute;
    left: 0; /* dentro del padding box: overflow:hidden recorta el borde */
    top: 0;
    width: 2px;
    height: 38%;
    background: linear-gradient(to bottom, transparent, var(--arena-calida), transparent);
    opacity: 0;
    pointer-events: none;
  }
  .experiment-card--02:has(.play-button.is-playing)::after {
    animation: labFlow 9s var(--ease-breath) infinite;
  }
  @keyframes labFlow {
    0%   { transform: translateY(-100%); opacity: 0; }
    15%  { opacity: 0.9; }
    85%  { opacity: 0.9; }
    100% { transform: translateY(280%); opacity: 0; }
  }
  .experiment-card--02 .play-button.is-playing { animation: labFlowButton 9s var(--ease-breath) infinite; }
  @keyframes labFlowButton {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -2px; }
  }

  /* 03 VIBRAR — WAVE: ondas orgánicas que se propagan (no ecualizador) */
  .experiment-card--03 .play-button.is-playing::before,
  .experiment-card--03 .play-button.is-playing::after {
    border-radius: 999px;
    animation: labWave 2.8s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
  }
  .experiment-card--03 .play-button.is-playing::after { animation-delay: 1.4s; }
  @keyframes labWave {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.35, 2.4); opacity: 0; }
  }
}


/* ═══════════════════════════════════════════════════════════════════
   HERO UMBRAL (2026-09-16) — mismo patrón que index.html (hub),
   registro.html y sus hermanas (.rhero en css/style-ritual.css).
   Diego: "aplica el mismo estilo al laboratorio y biblioteca".
     · halo de anillos que respira (token BREATH .96 → 1, ciclo 6 s)
     · título Playfair 400 centrado, frases en itálica que llegan una a una
     · CTA en pill con anillo que respira
     · datos reales en línea bajo un separador fino, sin cajas ni pills
   Este bloque está duplicado a propósito en style-laboratorio.css y
   style-biblioteca.css: son hojas independientes del proyecto
   demin-laboratorio (symlinks en laboratorio-deploy/). Si cambias uno,
   cambia el otro.
   ═══════════════════════════════════════════════════════════════════ */

.umbral {
  --u-gold: #C9A84C;
  --u-cream: #F2EDE4;
  --u-dark: #1C1A18;
  --u-muted: rgba(242, 237, 228, 0.62);
  --u-rule: rgba(201, 168, 76, 0.22);
  --u-breath: 6s;
  --u-ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
  --u-ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(92svh, 880px);
  padding: 5.5rem 1.5rem 4.5rem;
  background-color: var(--u-dark);
  background-image: none;
}
.umbral::before { display: none; }

.umbral__halo {
  position: absolute;
  z-index: -1;
  top: 46%;
  left: 50%;
  width: min(640px, 130vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}
.umbral__halo svg { width: 100%; height: 100%; overflow: visible; }
.umbral__halo circle { stroke: var(--u-gold); stroke-width: 0.35; vector-effect: non-scaling-stroke; }
.umbral__halo circle:nth-child(1) { opacity: 0.18; }
.umbral__halo circle:nth-child(2) { opacity: 0.12; }
.umbral__halo circle:nth-child(3) { opacity: 0.08; }
.umbral__halo::before {
  content: '';
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
}

.umbral__inner { display: flex; flex-direction: column; align-items: center; max-width: 44rem; }

.umbral .umbral__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 7.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 16ch;
  margin: 0;
  color: var(--u-cream);
}
.umbral__phrase {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 3.6vw, 1.625rem);
  line-height: 1.35;
  color: var(--u-cream);
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 32ch;
}
.umbral__phrase--quiet {
  font-size: clamp(1.0625rem, 2.8vw, 1.25rem);
  color: var(--u-muted);
  margin-top: 0.5rem;
}

.umbral__cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 220px;
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 999px;
  background: var(--u-gold);
  color: var(--u-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  touch-action: manipulation;
  transition: transform 300ms var(--u-ease-reveal), filter 300ms var(--u-ease-reveal);
}
.umbral__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid var(--u-gold);
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .umbral__cta:hover { transform: scale(1.02); filter: brightness(1.05); opacity: 1; }
}
.umbral__cta:active { transform: scale(0.98); transition-duration: 100ms; }
.umbral__cta:focus-visible { outline: 2px solid var(--u-cream); outline-offset: 4px; }

.umbral__assurance { margin-top: 1rem; font-size: 0.875rem; color: var(--u-muted); }
.umbral__assurance strong { color: var(--u-gold); font-weight: 500; }
.umbral .hero__practice-counter { margin-top: 1rem; font-size: 0.875rem; color: var(--u-muted); }

.umbral__facts {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  width: min(100%, 34rem);
  border-top: 1px solid var(--u-rule);
}
.umbral__facts dt { font-size: 0.8125rem; color: var(--u-muted); margin-bottom: 0.25rem; }
.umbral__facts dd { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.25rem, 4vw, 1.625rem); color: var(--u-cream); }
.umbral__facts--words { font-size: 0.9375rem; color: var(--u-muted); }

/* ─── Movimiento: PAUSE → frases una a una → BREATH ─── */
@keyframes umbralReveal {
  from { opacity: 0; transform: translate3d(0, 20px, 0); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .umbral .umbral__title,
  .umbral .umbral__phrase,
  .umbral .umbral__cta,
  .umbral .umbral__assurance,
  .umbral .hero__practice-counter,
  .umbral .umbral__facts {
    animation: umbralReveal 900ms var(--u-ease-reveal) backwards;
  }
  .umbral .umbral__title { animation-delay: 250ms; }
  .umbral .umbral__phrase { animation-delay: 1000ms; }
  .umbral .umbral__phrase--quiet { animation-delay: 1600ms; }
  .umbral .umbral__cta { animation-delay: 2200ms; }
  .umbral .umbral__assurance,
  .umbral .hero__practice-counter { animation-delay: 2450ms; }
  .umbral .umbral__facts { animation-delay: 2700ms; }

  .umbral__halo { animation: umbralHaloIn 2.4s var(--u-ease-reveal) 0.2s backwards; }
  .umbral__halo svg { transform-origin: 50% 50%; animation: umbralBreath var(--u-breath) var(--u-ease-breath) 2.6s infinite both; }
  @keyframes umbralHaloIn { from { opacity: 0; } }
  @keyframes umbralBreath {
    0%, 100% { transform: scale(0.96); opacity: 0.8; }
    50%      { transform: scale(1); opacity: 1; }
  }
  .umbral__cta::after { animation: umbralCtaRing var(--u-breath) var(--u-ease-breath) 3.2s infinite; }
  @keyframes umbralCtaRing {
    0%   { transform: scale(1); opacity: 0; }
    30%  { opacity: 0.7; }
    60%  { transform: scale(1.12, 1.4); opacity: 0; }
    100% { transform: scale(1.12, 1.4); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .umbral *, .umbral *::before, .umbral *::after { animation: none !important; }
}


/* ─── PORTAL DE ENTRADA como umbral (2026-09-16) ───────────────────────
   Mismo lenguaje que .umbral: anillos que respiran, título Playfair 400,
   frases en itálica que llegan una a una, CTA en pill. El círculo central
   conserva gateBreathe: su duración la sincroniza js/laboratorio.js con el
   audio real al tocar "Entrar". */
.intro-gate {
  --u-gold: #C9A84C;
  --u-cream: #F2EDE4;
  --u-dark: #1C1A18;
  --u-muted: rgba(242, 237, 228, 0.62);
  --u-breath: 6s;
  --u-ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
  --u-ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--u-dark);
  gap: 1.5rem;
}
.intro-gate__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin-bottom: 1rem;
}
.intro-gate__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 110vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}
.intro-gate__halo svg { width: 100%; height: 100%; overflow: visible; }
.intro-gate__halo circle { stroke: var(--u-gold); stroke-width: 0.35; vector-effect: non-scaling-stroke; }
.intro-gate__halo circle:nth-child(1) { opacity: 0.18; }
.intro-gate__halo circle:nth-child(2) { opacity: 0.12; }
.intro-gate__halo circle:nth-child(3) { opacity: 0.08; }
.intro-gate__circle {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.45) 0%, rgba(201, 168, 76, 0.12) 70%, transparent 100%);
  border-color: rgba(201, 168, 76, 0.45);
}
.intro-gate__welcome { gap: 0; max-width: 34rem; }
.intro-gate__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--u-cream);
  margin: 0;
}
.intro-gate__welcome .intro-gate__phrase {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 3.6vw, 1.625rem);
  line-height: 1.35;
  color: var(--u-cream);
  margin-top: clamp(1.25rem, 4vw, 1.75rem);
}
.intro-gate__welcome .intro-gate__phrase--quiet { color: var(--u-muted); font-size: clamp(1.0625rem, 2.8vw, 1.25rem); margin-top: 0.375rem; }
.intro-gate__text { font-style: italic; font-weight: 400; }

@media (prefers-reduced-motion: no-preference) {
  .intro-gate__halo svg { transform-origin: 50% 50%; animation: umbralBreath var(--u-breath) var(--u-ease-breath) 1.2s infinite both; }
  .intro-gate__welcome.is-visible .intro-gate__title,
  .intro-gate__welcome.is-visible .intro-gate__phrase,
  .intro-gate__welcome.is-visible .intro-gate__enter {
    animation: umbralReveal 900ms var(--u-ease-reveal) backwards;
  }
  .intro-gate__welcome.is-visible .intro-gate__title { animation-delay: 150ms; }
  .intro-gate__welcome.is-visible .intro-gate__phrase { animation-delay: 800ms; }
  .intro-gate__welcome.is-visible .intro-gate__phrase--quiet { animation-delay: 1300ms; }
  .intro-gate__welcome.is-visible .intro-gate__enter { animation-delay: 1800ms; }
  .intro-gate__enter::after { animation: umbralCtaRing var(--u-breath) var(--u-ease-breath) 2.6s infinite; }
}


/* ═══════════════════════════════════════════════════════════════════
   TARJETA DE EXPERIMENTO V3 (2026-09-16)
   Diego: "que se acomode la información en cada experimento para que esté
   más clara, coherente y congruente; quitar o mejorar medir antes y
   después". Auditoría impeccable de la tarjeta anterior: número gigante
   encimado a una etiqueta, 7 pills con rótulos de 9px, borde lateral
   grueso, 4 sliders sin valor por experimento, textos en mayúsculas.

   Orden nuevo, una idea por bloque:
     1. glifo en arco (identidad: ACTIVAR sube · RELAJAR ondas · VIBRAR sonido)
     2. nombre (Playfair 400) + pregunta en itálica
     3. una línea de datos + una línea de propósito, en frase
     4. recorrido Antes · Práctica · Después (puntos y línea, como Registro)
     5. check-in: UNA pregunta, 5 opciones tocables — la misma antes y después
     6. práctica: botón pill + controles
     7. "Terminé la práctica" → revelación + feedback
   ═══════════════════════════════════════════════════════════════════ */

.experiment-card,
.experiment-card--01,
.experiment-card--02,
.experiment-card--03 {
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 18px;
  padding: 2.25rem 1.25rem 2rem;
  background-color: rgba(28, 26, 24, 0.6);
  box-shadow: none;
}
@media (min-width: 640px) {
  .experiment-card { padding: 2.75rem 2.5rem 2.5rem; }
}

/* 1–3. Encabezado */
.experiment-card__header { margin-bottom: 1.75rem; }
.exp-glyph {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 4.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  color: #C9A84C;
}
.exp-glyph svg { width: 2rem; height: 2rem; overflow: visible; }
.exp-glyph svg * { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.experiment-card__header .exp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
.experiment-card__header .experiment-card__description {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.125rem, 3.4vw, 1.3125rem);
  line-height: 1.4;
  color: #F2EDE4;
  max-width: 30ch;
  margin: 0 auto;
}
.exp-meta { margin-top: 1rem; font-size: 0.875rem; color: rgba(242, 237, 228, 0.66); }
.exp-purpose { margin-top: 0.25rem; font-size: 0.875rem; color: #E3C988; }
.experiment-card__toggle {
  margin-top: 1.25rem;
  padding: 0.625rem 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(242, 237, 228, 0.72);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(201, 168, 76, 0.5);
}

/* 4. Recorrido Antes · Práctica · Después */
.experiment-steps {
  position: relative;
  gap: 0;
  max-width: 22rem;
  margin: 0 auto 2rem;
}
.experiment-steps__step {
  position: relative;
  flex: 1;
  padding: 1.25rem 0 0;
  border-bottom: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  color: rgba(242, 237, 228, 0.5);
}
.experiment-steps__step::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 228, 0.35);
  background: #1C1A18;
  z-index: 1;
}
.experiment-steps__step::after {
  content: '';
  position: absolute;
  top: calc(0.25rem + 4px);
  left: 50%;
  width: 100%;
  height: 1px;
  background: rgba(242, 237, 228, 0.16);
}
.experiment-steps__step:last-child::after { display: none; }
.experiment-steps__step.is-current { color: #F2EDE4; border-bottom-color: transparent; }
.experiment-steps__step.is-current::before { border-color: #C9A84C; background: #C9A84C; }
.experiment-steps__step.is-done { color: rgba(242, 237, 228, 0.72); }
.experiment-steps__step.is-done::before { border-color: #C9A84C; background: #1C1A18; }
.experiment-steps__step.is-done::after { background: rgba(201, 168, 76, 0.55); }

/* 5. Check-in */
.checkin { text-align: center; }
.checkin__q {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.125rem, 3.4vw, 1.3125rem);
  line-height: 1.4;
  color: #F2EDE4;
  max-width: 28ch;
  margin: 0 auto 1rem;
}
.checkin__scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.375rem;
  max-width: 30rem;
  margin: 0 auto;
}
.checkin__option {
  min-height: 48px;
  padding: 0.5rem 0.25rem;
  border: 1px solid rgba(242, 237, 228, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(242, 237, 228, 0.82);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.15;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease, transform 120ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .checkin__option:hover { border-color: rgba(201, 168, 76, 0.6); color: #F2EDE4; }
}
.checkin__option:active { transform: scale(0.96); }
.checkin__option:focus-visible { outline: 2px solid #C9A84C; outline-offset: 2px; }
.checkin__option[aria-checked="true"] { background: #C9A84C; border-color: #C9A84C; color: #1C1A18; font-weight: 500; }
.checkin__hint { margin-top: 0.75rem; font-size: 0.8125rem; color: rgba(242, 237, 228, 0.6); min-height: 1.2em; }
.checkin__compare {
  margin: 1rem auto 0;
  max-width: 32ch;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  color: #E3C988;
}
/* Durante la práctica la pregunta se recoge: la atención está en respirar. */
.checkin[data-phase="practica"] .checkin__q,
.checkin[data-phase="practica"] .checkin__scale,
.checkin[data-phase="cerrado"] .checkin__q,
.checkin[data-phase="cerrado"] .checkin__scale { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .checkin__option[aria-checked="true"] { animation: labCheckPulse 480ms cubic-bezier(0.45, 0, 0.55, 1); }
  @keyframes labCheckPulse { 50% { scale: 1.06; } }
  .checkin[data-phase="despues"] { animation: labReveal 800ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
}
@media (max-width: 380px) {
  .checkin__option { font-size: 0.75rem; }
}

/* 6. Práctica */
.experiment-card__play-section { display: flex; flex-direction: column; align-items: center; }
.play-button {
  min-height: 52px;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  background-color: #C9A84C;
  color: #1C1A18;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
}
.play-button.is-playing { background-color: #E3C988; }
.play-button__icon { font-size: 0.8125rem; font-family: 'DM Sans', sans-serif; }
.play-section__hint { font-family: 'DM Sans', sans-serif; font-size: 0.8125rem; letter-spacing: 0; }
.audio-controls__time { font-size: 0.8125rem; }

/* 7. Cierre de la práctica */
.exp-finish {
  align-self: center;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  border: 1px solid rgba(201, 168, 76, 0.55);
  border-radius: 999px;
  background: transparent;
  color: #F2EDE4;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  cursor: pointer;
}
.exp-finish[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .exp-finish:hover { border-color: #C9A84C; color: #C9A84C; }
}
.revelation-toggle { text-transform: none; letter-spacing: 0.01em; font-family: 'DM Sans', sans-serif; font-size: 0.875rem; }
.revelation-text strong { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.25rem; line-height: 1.35; }

/* FLOW de RELAJAR: la luz recorre el borde superior (ya no hay borde lateral). */
@media (prefers-reduced-motion: no-preference) {
  .experiment-card--02::after { left: 0; top: 0; width: 38%; height: 1px; background: linear-gradient(90deg, transparent, #F2EDE4, transparent); }
  @keyframes labFlow {
    0%   { transform: translateX(-100%); opacity: 0; }
    15%  { opacity: 0.8; }
    85%  { opacity: 0.8; }
    100% { transform: translateX(280%); opacity: 0; }
  }
}
/* FLOW de RELAJAR, versión final: sin línea que recorre un borde (se leía
   como marquesina). Mientras suena, el glifo de ondas flota lento. */
.experiment-card--02::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .experiment-card--01:has(.play-button.is-playing) .exp-glyph svg { animation: labGlyphPulse 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .experiment-card--02:has(.play-button.is-playing) .exp-glyph svg { animation: labGlyphFloat 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .experiment-card--03:has(.play-button.is-playing) .exp-glyph svg { animation: labGlyphPulse 2.8s cubic-bezier(0.2, 0.6, 0.35, 1) infinite; }
  @keyframes labGlyphPulse { 0%, 45%, 100% { scale: 1; } 20% { scale: 1.08; } }
  @keyframes labGlyphFloat { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
}


/* ═══ CARRUSEL DE EXPERIMENTOS (2026-09-16) ═══════════════════════════
   Diego: "que los experimentos se scrolleen hacia la derecha en lugar de
   hacia abajo". Scroll nativo con scroll-snap: el deslizamiento vertical de
   la página queda intacto, cada tarjeta asoma la siguiente para invitar a
   deslizar. En desktop se abre más ancho que el contenedor de texto. */
.exp-carousel {
  position: relative;
  width: calc(100% + 3.5rem);
  margin: 0 -1.75rem;
}
@media (min-width: 768px) {
  .exp-carousel { width: min(1120px, 100vw - 5rem); margin: 0; left: 50%; translate: -50% 0; }
}

.exp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 1.75rem 1.25rem;
}
.exp-pager__names { display: flex; gap: 0.25rem; }
.exp-pager__name {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(242, 237, 228, 0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 300ms ease, border-color 300ms ease, background-color 300ms ease;
}
.exp-pager__name.is-active { color: #1C1A18; background: #C9A84C; border-color: #C9A84C; }
@media (hover: hover) and (pointer: fine) {
  .exp-pager__name:not(.is-active):hover { color: #F2EDE4; border-color: rgba(201, 168, 76, 0.45); }
}
.exp-pager__name:focus-visible,
.exp-pager__arrow:focus-visible { outline: 2px solid #C9A84C; outline-offset: 2px; }
.exp-pager__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #F2EDE4;
  cursor: pointer;
  transition: opacity 300ms ease, border-color 300ms ease;
}
.exp-pager__arrow svg { width: 18px; height: 18px; }
.exp-pager__arrow svg path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.exp-pager__arrow:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 420px) {
  .exp-pager__arrow { display: none; }
  .exp-pager__name { padding-inline: 0.875rem; }
}

.exp-track {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.75rem;
  padding: 0.25rem 1.75rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.exp-track::-webkit-scrollbar { display: none; }
.exp-track:focus-visible { outline: 2px solid rgba(201, 168, 76, 0.6); outline-offset: -2px; border-radius: 18px; }
.exp-track > .experiment-card {
  flex: 0 0 min(86%, 560px);
  scroll-snap-align: start;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .exp-track { gap: 1.5rem; padding-inline: 2.5rem; scroll-padding-inline: 2.5rem; }
  .exp-track > .experiment-card { flex-basis: min(52%, 560px); } /* una completa + la siguiente asomando: 3 posiciones de scroll reales */
}
/* El reveal ligado a view() mide el eje vertical: dentro de un contenedor que
   hace scroll horizontal nunca avanzaría y dejaría las tarjetas invisibles. */
.exp-track > .experiment-card { animation: none; }
.exp-carousel__hint { margin: 0.25rem 1.75rem 0; text-align: center; font-size: 0.8125rem; color: rgba(242, 237, 228, 0.5); }
@media (min-width: 1100px) { .exp-carousel__hint { display: none; } }

/* ═══ CIERRE DE LOS EXPERIMENTOS — frase + invitación ════════════════ */
.experiments__close { text-align: center; margin-top: 4rem; }
.experiments__close .experiments__closing { font-size: clamp(1.375rem, 4.5vw, 1.875rem); line-height: 1.35; max-width: 26ch; margin: 0 auto; }
.experiments__invite { margin: 1.25rem auto 0; max-width: 40ch; font-size: 1rem; line-height: 1.6; color: rgba(242, 237, 228, 0.72); }
.experiments__invite a { color: #F2EDE4; text-decoration: underline; text-decoration-color: rgba(201, 168, 76, 0.6); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .experiments__invite a:hover { color: #C9A84C; }
}

/* ═══ PORTAL: "Respira conmigo" centrado ═════════════════════════════
   Al tocar "Entrar" la bienvenida se desvanece pero seguía ocupando su
   espacio y empujaba el halo hacia arriba. Mientras suena la respiración,
   la bienvenida sale del flujo y el halo + la frase quedan al centro. */
.intro-gate:has(.intro-gate__text.is-visible) .intro-gate__welcome { display: none; }
.intro-gate:has(.intro-gate__text.is-visible) { gap: 2.5rem; }
.intro-gate__text { min-height: 0; text-align: center; }
.intro-gate__text:empty { display: none; }
