/* ═══════════════════════════════════════════════════
   DEMIN CONSCIENTE — Biblioteca de Respiración
   Misma paleta oscura del Laboratorio, tokens propios. Paleta DEMIN
   unificada el 2026-09-16 (antes verde/jade; nombres de tokens
   conservados — lee el valor, no el nombre)
   (páginas hermanas, hojas de estilo independientes —
   mismo criterio ya usado en style-respirando-con-ciencia.css)
   ═══════════════════════════════════════════════════ */

:root {
  --verde-profundo:  #2A2621;
  --jade-suave:      #E3C988;
  --arena-calida:    #F2EDE4;
  --cobre-organico:  #C9A84C;
  --casi-negro:      #1C1A18;

  --text: var(--arena-calida);
  --text-muted-deep: rgba(242, 237, 228, 0.62);

  --transition: 240ms ease-in-out;

  --glass-bg-strong: rgba(24, 22, 19, 0.62);
  --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;
  color: var(--text);
  background-color: var(--casi-negro);
  line-height: 1.6;
}

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

.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;
  }
}

a, button, input {
  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 {
  transform: scale(0.97);
}

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


/* ═══════════════════════════════════════════════════
   MARCA DE AGUA — pequeña, fija, discreta
   (mismo criterio que #brand-watermark en experiencia/,
   Diego prefirió esto sobre un fondo grande que compite
   visualmente con el contenido)
   ═══════════════════════════════════════════════════ */

#brand-watermark {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  z-index: 50;
  pointer-events: none;
  background: url('../assets/logos/Demin Consciente _Foto de perfil.svg') center / contain no-repeat;
  opacity: 0.35;
}


/* ═══════════════════════════════════════════════════
   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__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

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

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


/* ─── LOGIN — mismo patrón de modal usado en el Laboratorio ──── */

.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(--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.75rem;
  text-align: center;
}

.auth-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted-deep);
  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%;
}


/* ═══════════════════════════════════════════════════
   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);
}


/* ═══════════════════════════════════════════════════
   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);
}


/* ═══════════════════════════════════════════════════
   ACUSE DE RECIBO POST-CHECKOUT
   ═══════════════════════════════════════════════════ */

.checkout-banner {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9375rem;
  background-color: rgba(227, 201, 136, 0.14);
  border: 1px solid rgba(227, 201, 136, 0.4);
  color: var(--jade-suave);
}

.checkout-banner[hidden] {
  display: none;
}


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

.hero {
  padding: 4rem 1.75rem 3rem;
  text-align: center;
  background-color: var(--casi-negro);
  background-image: radial-gradient(560px circle at 30% 20%, rgba(227, 201, 136, 0.1), transparent 70%);
}

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

.hero__title {
  font-size: 1.875rem;
  max-width: 620px;
  margin: 0 auto 1rem;
}

.hero__price {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted-deep);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 999px;
  padding: 0.375rem 1rem;
}

.hero__price strong {
  color: var(--cobre-organico);
}

.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;
  text-transform: uppercase;
  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;
}

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


/* ═══════════════════════════════════════════════════
   INTRO DE SECCIÓN — APRENDE / PRACTICA / EXPERIMENTA /
   PRÁCTICAS ONLINE / ONE BREATH comparten este patrón
   ═══════════════════════════════════════════════════ */

.section-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.75rem 1.5rem;
  text-align: center;
}

.section-intro h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

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

@media (min-width: 768px) {
  .section-intro h2 { font-size: 1.875rem; }
}

.experimenta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 280px;
  margin: 0 auto 2rem;
  text-align: left;
}

.experimenta-list li {
  font-size: 0.9375rem;
  color: var(--text-muted-deep);
}

.experimenta-list li span {
  font-family: var(--font-mono);
  color: var(--cobre-organico);
  margin-right: 0.5rem;
}


/* ═══════════════════════════════════════════════════
   NOTA DE SEGURIDAD — mismo copy y mecanismo que el Laboratorio
   ═══════════════════════════════════════════════════ */

.safety-note {
  margin: 1.5rem auto 2.5rem;
  max-width: 720px;
  text-align: left;
  padding: 0 1.75rem;
}

.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;
}


/* ═══════════════════════════════════════════════════
   PILLS DE PROTOCOLO — usadas en la página de detalle
   (el acordeón de la home que las originó se retiró en
   la Rama "biblioteca-3-pilares", PRACTICA ahora son
   tarjetas .library-card que llevan a esa página)
   ═══════════════════════════════════════════════════ */

.protocol-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.1875rem 0.5625rem;
  border-radius: 999px;
  white-space: nowrap;
}

.protocol-pill--system {
  background-color: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--cobre-organico);
}

.protocol-pill--duration {
  border: 1px solid rgba(242, 237, 228, 0.2);
  color: var(--text-muted-deep);
}


/* ─── REPRODUCTOR (página de detalle de protocolo) ──── */

.protocol-player {
  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.3);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.protocol-player__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--cobre-organico);
  margin-bottom: 0.5rem;
}

.protocol-player__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.protocol-player__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.55) 0%, rgba(227, 201, 136, 0.22) 100%);
  border: 1px solid var(--cobre-organico);
  color: var(--casi-negro);
  font-size: 1rem;
  cursor: pointer;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.protocol-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

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

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

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

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

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

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

.protocol-player__progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(242, 237, 228, 0.15);
  overflow: hidden;
}

.protocol-player__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--jade-suave);
}


/* ═══════════════════════════════════════════════════
   COMUNIDAD — mismo componente/copy que el Laboratorio
   ═══════════════════════════════════════════════════ */

.community-invite {
  max-width: 720px;
  margin: 1.5rem auto 2.5rem;
  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;
}

.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;
}


/* ═══════════════════════════════════════════════════
   TARJETAS COMPARTIDAS (APRENDE / PRACTICA / relacionados)
   ═══════════════════════════════════════════════════ */

.library-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.75rem 0.5rem;
}

@media (min-width: 640px) {
  .library-card-grid { grid-template-columns: 1fr 1fr; }
}

.library-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.02);
}

.library-card:hover,
.library-card:focus-visible {
  border-color: var(--cobre-organico);
  background-color: rgba(201, 168, 76, 0.06);
}

.library-card__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(201, 168, 76, 0.55);
}

.library-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jade-suave);
}

.library-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
}

.library-card__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted-deep);
}

.library-card__badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
}

.library-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.library-card__meta-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.1875rem 0.5625rem;
  border-radius: 999px;
  white-space: nowrap;
}

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

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

.library-card__cta {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cobre-organico);
}


/* ═══════════════════════════════════════════════════
   PÁGINAS DE DETALLE (protocolo / técnica)
   ═══════════════════════════════════════════════════ */

.detail-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 3rem;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: var(--text-muted-deep);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--jade-suave);
  text-decoration: none;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.protocol-detail__category,
.technique-detail__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jade-suave);
  margin-bottom: 0.5rem;
}

.protocol-detail__title,
.technique-detail__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.protocol-detail__description,
.technique-detail__description {
  color: var(--text-muted-deep);
  margin-bottom: 1.5rem;
}

.protocol-detail__meta,
.technique-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.protocol-pill--intensity {
  background-color: rgba(242, 237, 228, 0.08);
  border: 1px solid rgba(242, 237, 228, 0.25);
  color: var(--text);
}

.protocol-pill--level {
  border: 1px solid rgba(227, 201, 136, 0.4);
  color: var(--jade-suave);
}

.protocol-detail__before,
.protocol-detail__related,
.protocol-structure,
.technique-detail__block,
.technique-detail__practice {
  margin: 2.5rem 0;
}

.protocol-detail__before h2,
.protocol-detail__related h2,
.protocol-structure h2,
.technique-detail__block h2,
.technique-detail__practice h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--jade-suave);
  border: 1px solid rgba(227, 201, 136, 0.4);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
}

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

.protocol-structure__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.protocol-structure__list li {
  font-size: 0.9375rem;
  color: var(--text-muted-deep);
}

.protocol-structure__list li span {
  font-family: var(--font-mono);
  color: var(--cobre-organico);
}

.protocol-detail__back,
.technique-detail__back {
  display: inline-block;
  margin-top: 1rem;
}

.protocol-detail__not-found,
.technique-detail__not-found {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted-deep);
}

.technique-detail__video-wrap {
  margin: 1.5rem 0 2.5rem;
}

.technique-detail__video {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.coming-soon {
  border: 1px dashed rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.02);
}

.coming-soon__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cobre-organico);
  margin-bottom: 0.5rem;
}

.coming-soon__note {
  font-size: 0.875rem;
  color: var(--text-muted-deep);
}


/* ─── PANEL DE BLOQUEO — protocolo sin acceso real (library_access) ── */

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

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

.protocol-locked__price {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.protocol-locked__option {
  padding: 1.25rem 0;
}

.protocol-locked__option + .protocol-locked__option {
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}

.protocol-locked__option-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jade-suave);
  margin-bottom: 0.5rem;
}

.protocol-locked .cta-primary,
.protocol-locked .cta-secondary {
  width: 100%;
}

.technique-detail__pending {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  font-style: italic;
  color: var(--text-muted-deep);
}


/* ═══════════════════════════════════════════════════
   PRÁCTICAS ONLINE — mismo patrón/copy que #cta-final
   en el Laboratorio (ver css/style-laboratorio.css)
   ═══════════════════════════════════════════════════ */

.cta-final {
  background-color: var(--casi-negro);
  padding: 4rem 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: 1.5rem;
  margin-bottom: 0.5rem;
}

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

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


/* ═══════════════════════════════════════════════════
   ONE BREATH — mismo patrón/copy que en el Laboratorio
   ═══════════════════════════════════════════════════ */

.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;
}


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

.footer {
  background-color: var(--casi-negro);
  padding: 2rem 1.75rem 3.5rem;
  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;
}


/* ═══════════════════════════════════════════════════════════════════
   BIBLIOTECA — MOTION SYSTEM V1 (2026-09-16) · "Continúa explorando."
   Solo CSS, al final de la hoja (laboratorio-deploy/ la usa por symlink).
   · Hero ........ REVEAL escalonado (eyebrow → título → precio → pills)
   · Recorrido ... secciones y tarjetas emergen con el scroll
                   (animation-timeline: view(); sin soporte, quietas)
   · Tarjetas .... hover: microexpansión PULSE (1.02) + borde dorado
   · Reproductor . mientras suena, WAVE desde el botón de play
   Todo bajo prefers-reduced-motion: no-preference.
   ═══════════════════════════════════════════════════════════════════ */

@keyframes bibReveal {
  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__eyebrow, .hero__title, .hero__price, .hero__pills {
    animation: bibReveal 900ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .hero__eyebrow { animation-delay: 150ms; }
  .hero__title { animation-delay: 400ms; }
  .hero__price { animation-delay: 900ms; }
  .hero__pills { animation-delay: 1150ms; }

  @supports (animation-timeline: view()) {
    .section-intro,
    .library-card,
    .protocol-player,
    .protocol-locked,
    .one-breath,
    .community-invite,
    .coming-soon,
    .cta-final__container {
      animation: bibReveal linear backwards;
      animation-timeline: view();
      animation-range: entry 0px entry 240px;
    }
  }

  @media (hover: hover) and (pointer: fine) {
    .library-card {
      transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), border-color 600ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .library-card:hover { transform: scale(1.02); border-color: rgba(201, 168, 76, 0.55); }
  }

  .protocol-player__play { position: relative; isolation: isolate; }
  .protocol-player__play[aria-pressed="true"]::before,
  .protocol-player__play[aria-pressed="true"]::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 999px;
    border: 1px solid var(--cobre-organico);
    pointer-events: none;
    animation: bibWave 2.8s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
  }
  .protocol-player__play[aria-pressed="true"]::after { animation-delay: 1.4s; }
  @keyframes bibWave {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.9); 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; }
}

/* ─── Fichas de protocolo y técnica (HTML generado por JS) ───
   Mismo lenguaje sin tocar el JS: halo detrás del encabezado, título
   editorial, descripción en itálica, entrada escalonada. */
.detail-page { position: relative; isolation: isolate; }
.detail-page::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -3rem;
  left: 50%;
  width: min(520px, 120vw);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.16);
  box-shadow: inset 0 0 0 64px rgba(201, 168, 76, 0.025), inset 0 0 0 128px rgba(201, 168, 76, 0.02);
  pointer-events: none;
}
.protocol-detail__title,
.technique-detail__title {
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}
.protocol-detail__description { font-family: 'Playfair Display', Georgia, serif; font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  .detail-page::before { animation: umbralBreath 6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .detail-page > .breadcrumb,
  .detail-page > .protocol-detail__category,
  .detail-page > .technique-detail__eyebrow,
  .detail-page > h1,
  .detail-page > .protocol-detail__description,
  .detail-page > .protocol-detail__meta,
  .detail-page > .technique-detail__meta {
    animation: umbralReveal 900ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .detail-page > h1 { animation-delay: 200ms; }
  .detail-page > .protocol-detail__description { animation-delay: 700ms; }
  .detail-page > .protocol-detail__meta,
  .detail-page > .technique-detail__meta { animation-delay: 1000ms; }
}
.protocol-detail__title,
.technique-detail__title { font-size: clamp(2.25rem, 6vw, 3.5rem); margin-top: 0.25rem; }
