/* A.M.A.R. — Estilos principales */

/* ── TOKENS ── */
:root {
  --navy:  #0c1b35;
  --cream: #F5F0E8;
  --gold:  #d08a00;
  --brown: #736656;
  --muted: #a08c7a;
  --line:  #ddd4c4;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  /* ── SPACING SCALE (base 8px) ── */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-7:  56px;
  --sp-8:  64px;

  /* ── LAYOUT ── */
  --pad-x:       32px;   /* horizontal gutter */
  --cream-bg:    #F5EDE0; /* alias de cream para pantallas premium */
  --topbar-pt:   52px;   /* safe-area top */
  --section-gap: 40px;   /* between major sections */
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #050d18;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── APP SHELL — móvil: pantalla completa ── */
.phone {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background: var(--navy);
  flex-shrink: 0;
}

/* ── Tablet: columna centrada 480px ── */
@media (min-width: 600px) {
  body {
    align-items: center;
  }
  .phone {
    width: 480px;
    height: 100vh;
    height: 100dvh;
    max-height: 900px;
  }
}

/* ── Desktop: igual que tablet ── */
@media (min-width: 900px) {
  .phone {
    width: 480px;
    max-height: 900px;
  }
}

/* ── SCREEN BASE ── */
.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  overflow: hidden;
}
.screen.active {
  display: flex;
  flex-direction: column;
}
/* Fade de entrada — se añade por JS y se remueve sola */
.screen--fadein {
  animation: fadeIn 0.7s ease forwards;
}

/* ── TOPBAR COMPARTIDA (cream screens) ── */
.screen-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px var(--pad-x) 20px;
  flex-shrink: 0;
  background: var(--navy);
}
.screen-topbar-back {
  position: absolute;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s;
  padding: 0;
}
.screen-topbar-back:hover { color: var(--brown); }
.screen-topbar-logo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── DARK TOPBAR BACK (bienvenida) ── */
.screen-topbar-back--dark { color: rgba(255,255,255,0.28); }
.screen-topbar-back--dark:hover { color: rgba(255,255,255,0.60); }

/* ════════════════════════════
   SCREEN 1 — SPLASH
════════════════════════════ */
#s-splash {
  background: var(--navy);
  align-items: center;
  justify-content: center;
}

.splash-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208,138,0,0.15) 0%, transparent 70%);
  opacity: 0;
  animation: glowIn 1.4s ease 0.5s forwards, glowPulse 2s ease 1.9s infinite alternate;
  pointer-events: none;
}

.splash-logo {
  opacity: 0;
  animation: fadeUp 1.0s ease 0.3s forwards;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash-logo img { width: 140px; height: auto; display: block; }

.logo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
}
.logo-wordmark {
  font-family: var(--serif);
  font-size: 52px;
  color: rgba(255,255,255,0.70);
  letter-spacing: 14px;
  text-indent: 14px;
  line-height: 1;
}
.logo-wordmark span { color: var(--gold); }
.logo-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-top: 10px;
}

.splash-subtitulo {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin: 10px 0 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.splash-author {
  position: absolute;
  bottom: 44px;
  font-size: 11px;
  color: rgba(255,255,255,0.20);
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.8s forwards;
}

/* ════════════════════════════
   SCREEN 2 — INTRO
════════════════════════════ */
/* ─── #s-intro — bloque único ───────────────────────── */
#s-intro {
  background: #0C1B35;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  justify-content: flex-end;
}
/* Fondo CSS cuando no hay imagen — pointer-events:none para no bloquear botones */
#s-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 60% 20%, rgba(208,138,0,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(12,27,53,0.95) 0%, transparent 70%),
    linear-gradient(160deg, #0c1b35 0%, #071020 60%, #0a1828 100%);
  z-index: 0;
  pointer-events: none;
}
#s-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(208,138,0,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}



/* Texto central */

.intro-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  padding: 32px 32px 48px;
  margin-top: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}

.intro-titulo {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 10px;
  color: var(--gold);
  margin: 0 0 10px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.intro-subtitulo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.60);
  margin: 0 0 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.45s forwards;
}

.intro-triple {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  text-align: center;
  margin: 0 0 32px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}

.intro-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(208,138,0,0.70);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.60s forwards;
}
.intro-btn:hover {
  color: rgba(255,255,255,0.95);
  border-color: var(--gold);
  background: rgba(208,138,0,0.08);
}

/* Textos puerta de entrada */
.intro-linea { opacity: 0; margin: 0; line-height: 1.55; }
.intro-linea--1 {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: var(--gold); margin-bottom: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}
.intro-linea--2 {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: rgba(255,255,255,0.70); margin-bottom: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}
.intro-linea--2 strong { color: rgba(255,255,255,0.70); font-weight: 400; }
.intro-linea--3 {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: rgba(255,255,255,0.70); margin-bottom: 64px;
  animation: fadeUp 0.6s ease 0.60s forwards;
}
.intro-caminos {
  display: flex; flex-direction: row; gap: 10px;
  width: 100%;
  opacity: 0; animation: fadeUp 0.6s ease 0.85s forwards;
}
/* Botón 1 — borde dorado, letra blanca */
.intro-camino:first-child {
  flex: 1; height: 48px; background: transparent;
  border: 1px solid var(--gold); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.90); cursor: pointer;
  white-space: nowrap; padding: 0 8px;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.intro-camino:first-child:hover {
  background: rgba(208,138,0,0.10);
}
/* Botón 2 — borde blanco, letra dorada */
.intro-camino:last-child {
  flex: 1; height: 48px; background: transparent;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); cursor: pointer;
  white-space: nowrap; padding: 0 8px;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.intro-camino:last-child:hover {
  border-color: var(--gold);
  background: rgba(208,138,0,0.06);
}

/* Puerta de entrada — texto y caminos */
.intro-texto {
  margin: 0 0 32px;
  text-align: left;
}



/* ════════════════════════════
   SCREEN 3 — REGISTRO
════════════════════════════ */
#s-registro {
  background: var(--cream);
  overflow-y: auto;
  scrollbar-width: none;
}
#s-registro::-webkit-scrollbar { display: none; }

.reg-inner {
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad-x) var(--sp-8);
  flex: 1;
}

.reg-header {
  margin-top: var(--section-gap);
  margin-bottom: calc(var(--section-gap) + 16px);
}
.reg-welcome { font-family: var(--serif); font-size: 32px; color: var(--gold); display: block; margin-bottom: var(--sp-1); }
.reg-title { font-family: var(--serif); font-size: 20px; color: var(--brown); display: block; opacity: 0.70; }

.reg-form { display: flex; flex-direction: column; }

.field { margin-bottom: var(--sp-6); }
.field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.field-input {
  display: block; width: 100%;
  border: none; 
  background: transparent; padding: 0 0 16px;
  font-family: var(--sans); font-size: 18px; font-weight: 500; color: var(--brown);
  outline: none; transition: border-color 0.18s;
  -webkit-appearance: none; border-radius: 0;
}
.field-input::placeholder { color: rgba(115,102,86,0.28); font-weight: 400; }
.field-input:focus { border-bottom-color: var(--gold); }

.field-select {
  display: block; width: 100%;
  border: none; 
  background: transparent; padding: 0 0 16px;
  font-family: var(--sans); font-size: 18px; font-weight: 500;
  color: rgba(115,102,86,0.38);
  outline: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color 0.18s; border-radius: 0;
}
.field-select:focus { border-bottom-color: var(--gold); color: var(--brown); }
.field-select.selected { color: var(--brown); }

.reg-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
  background: transparent; border: 1px solid var(--brown); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  cursor: pointer; margin-top: calc(var(--sp-1) + 16px);
  transition: background 0.18s, border-color 0.18s;
}
.reg-btn:hover { background: rgba(208,138,0,0.06); border-color: var(--gold); }

.reg-footer { margin-top: var(--sp-4); text-align: center; font-size: 12px; color: var(--muted); }
.reg-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ════════════════════════════
   SCREEN 4 — ESPEJO DE ENTRADA
════════════════════════════ */
#s-espejo { background: var(--cream); overflow-y: auto; scrollbar-width: none; }
#s-espejo::-webkit-scrollbar { display: none; }

.esp-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--sp-5) var(--pad-x) var(--sp-7);
}

.esp-top { flex-shrink: 0; }
.esp-tension { margin-bottom: 32px; }
.esp-line1 { font-family: var(--serif); font-size: 28px; color: var(--brown); line-height: 1.1; display: block; margin-bottom: 4px; }
.esp-line2 { font-family: var(--serif); font-size: 36px; color: var(--gold); font-style: italic; line-height: 1.1; display: block; }
.esp-marco {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
  margin-bottom: var(--sp-3);
  padding: 0 var(--sp-2);
}

.esp-instruction { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.45; letter-spacing: 2px; text-transform: uppercase; margin-top: 44px; margin-bottom: 0; padding: 0 var(--pad-x); }

.esp-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.esp-opt {
  display: flex;
  align-items: center;
  padding: var(--sp-4) 0;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.esp-opt:hover { opacity: 0.55; transform: translateX(3px); }
.esp-opt-icon { width: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--gold); margin-right: 0; }
.esp-opt-sep {
  width: 1.5px; height: 28px;
  background: var(--gold); opacity: 0.35;
  flex-shrink: 0; margin: 0 var(--sp-2); border-radius: 2px;
}
.esp-opt-text { font-size: 16px; font-weight: 500; color: var(--brown); line-height: 1.45; flex: 1; }

/* ════════════════════════════
   SCREEN 5 — DIAGNÓSTICO
════════════════════════════ */
#s-diagnostico { background: var(--cream); overflow-y: auto; scrollbar-width: none; }
#s-diagnostico::-webkit-scrollbar { display: none; }

.diag-inner {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  justify-content: flex-start;
  padding: var(--sp-5) var(--pad-x) var(--sp-7);
}

.diag-progress {
  display: flex; gap: 6px; margin-bottom: 44px;
}
.diag-progress-dot {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(115,102,86,0.15);
  transition: background 0.3s;
}
.diag-progress-dot.done { background: var(--gold); }
.diag-progress-dot.active { background: rgba(208,138,0,0.45); }

.diag-paso {
  font-size: 13px; font-weight: 700; color: var(--muted);
  line-height: 1.45; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0;
}

.diag-pregunta {
  font-family: var(--serif);
  font-size: 28px; font-weight: 400;
  color: var(--brown); line-height: 1.20;
  margin-top: 44px; margin-bottom: 32px;
}

/* Opciones — mismo patrón que esp-opt */
.diag-opts { display: flex; flex-direction: column; gap: 0; }

.diag-opt {
  display: flex; align-items: center;
  padding: var(--sp-4) 0;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.diag-opt:hover { opacity: 0.55; transform: translateX(3px); }

.diag-opt-icon {
  width: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-right: 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
}
.diag-opt-sep {
  width: 1.5px; height: 28px;
  background: var(--gold); opacity: 0.35;
  flex-shrink: 0; margin: 0 var(--sp-2); border-radius: 2px;
}
.diag-opt-text { font-size: 16px; font-weight: 500; color: var(--brown); line-height: 1.45; flex: 1; }

/* ════════════════════════════
   SCREEN 6 — BIENVENIDA
════════════════════════════ */
#s-bienvenida {
  background: #0c1c36;
}

.bienvenida-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-4) var(--pad-x) var(--sp-5);
  justify-content: space-between;
}

.bienvenida-top {
  display: flex;
  flex-direction: column;
}

.bienvenida-greeting {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: var(--sp-3);
  opacity: 0; animation: fadeUp 0.6s ease 0.10s forwards;
}
.bienvenida-greeting span { color: var(--gold); opacity: 1; }

.bienvenida-titular {
  font-family: var(--serif); font-size: 36px;
  line-height: 1.15; margin-bottom: var(--sp-2);
  opacity: 0; animation: fadeUp 0.7s ease 0.20s forwards;
}
.bienvenida-titular-l1 {
  color: rgba(255,255,255,0.65);
  display: block;
}
.bienvenida-titular-l2 {
  color: var(--gold);
  font-style: italic;
  display: block;
}


.bienvenida-img-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.bienvenida-img {
  height: clamp(240px, 40vh, 360px);
  width: auto;
  display: block;
  mix-blend-mode: lighten;
  object-fit: contain;
}

.bienvenida-personal {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--gold); font-style: normal;
  line-height: 1.75; text-align: center;
  padding: 0 var(--sp-5);
  opacity: 0; animation: fadeUp 0.7s ease 0.60s forwards;
}


.bienvenida-insight {
  font-size: 15px; font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.55); line-height: 1.65;
  text-align: center; margin-bottom: var(--sp-4);
  padding: 0 var(--sp-3);
  opacity: 0; animation: fadeUp 0.6s ease 0.9s forwards;
}

.bienvenida-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%; height: 48px;
  background: transparent; border: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); cursor: pointer;
  transition: opacity 0.2s;
  opacity: 0; animation: fadeUp 0.7s ease 0.60s forwards;
}
.bienvenida-btn:hover { opacity: 0.75; }

/* ════════════════════════════
   SCREEN 6 — HOME
════════════════════════════ */
#s-home {
  background: var(--cream);
}

.home-scroll {
  width: 100%;
  height: 100%;
  background: var(--cream);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-scroll::-webkit-scrollbar { display: none; }

/* Home topbar — logo + avatar */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 0;
  margin-bottom: var(--section-gap);
}

.topbar-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.5px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Saludo */
.saludo { padding: 0 var(--pad-x); margin-bottom: var(--sp-2); }
.saludo-hora {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: var(--sp-1);
  opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards;
}
.saludo-nombre {
  font-family: var(--serif); font-size: 36px;
  color: var(--brown); line-height: 1.05;
  opacity: 0; animation: fadeUp 0.6s ease 0.2s forwards;
}
.saludo-nombre span { color: var(--gold); font-style: italic; }

/* Tarjeta momento — única tarjeta navy */
.momento {
  margin: var(--section-gap) var(--pad-x) 0;
  padding: var(--sp-3) var(--sp-3);
  background: var(--navy);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.32s forwards;
}
.momento-glow {
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(208,138,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.momento-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--sp-3); display: block;
}
.momento-texto {
  font-family: var(--serif); font-size: 26px;
  color: rgba(255,255,255,0.72); line-height: 1.45; margin-bottom: var(--sp-3);
}
.momento-texto em { font-style: italic; color: rgba(255,255,255,0.45); }
.momento-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  cursor: pointer; transition: gap 0.18s;
  background: none; border: none; padding: 0; font-family: var(--sans);
}
.momento-cta:hover { gap: 12px; }

/* Frase — con más espacio superior */
.frase-wrap {
  padding: 0 var(--pad-x); margin-top: var(--section-gap); margin-bottom: var(--section-gap);
  opacity: 0; animation: fadeUp 0.6s ease 0.44s forwards;
}
.frase-texto {
  font-family: var(--serif); font-size: 17px;
  font-style: italic; color: var(--brown);
  line-height: 1.65; opacity: 0.70;
}
.frase-fuente {
  font-size: 11px; font-weight: 600;
  color: var(--brown); opacity: 0.50;
  margin-top: var(--sp-1); letter-spacing: 0.3px;
}

/* Accesos */
.accesos-label {
  padding: 0 var(--pad-x);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--sp-3); display: block;
  opacity: 0; animation: fadeUp 0.6s ease 0.52s forwards;
}

.accesos {
  padding: 0 var(--pad-x);
  display: flex; flex-direction: column;
  gap: 0; margin-bottom: var(--sp-7);
  opacity: 0; animation: fadeUp 0.6s ease 0.58s forwards;
}

/* ── MENÚ ACCESOS — estilo lista con línea dorada ── */
.acceso {
  display: flex;
  align-items: center;
  padding: var(--sp-3) 0;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  background: none;
  border-radius: 0;
  border: none;
  gap: 0;
}

.acceso:hover { opacity: 0.55; transform: translateX(3px); }
.acceso[data-recomendado="1"] {
  background: rgba(208,138,0,0.06);
  border-radius: var(--border-radius-md);
  padding-left: 10px; padding-right: 10px;
  margin: 0 -10px;
}
.acceso[data-recomendado="1"] .acceso-nombre::after {
  content: ' · Para ti hoy';
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; color: var(--gold); opacity: 0.80;
}
.acceso:active { opacity: 0.40; transform: translateX(3px); }

.acceso-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; margin-right: 0; }
.acceso-sep { width: 2px; height: 26px; background: var(--gold); opacity: 0.60; flex-shrink: 0; margin: 0 var(--sp-2); border-radius: 2px; }
.acceso-info { flex: 1; }
.acceso-nombre { font-size: 16px; font-weight: 500; color: var(--brown); line-height: 1.3; }
.acceso-desc { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.acceso-arrow { flex-shrink: 0; color: var(--muted); opacity: 0.40; margin-left: var(--sp-2); }

/* NAVBAR HOME */
.navbar {
  position: sticky; bottom: 0; left: 0; right: 0;
  background: #d9d2c5; border-top: 1px solid #b8ae9f;
  display: flex; align-items: center; justify-content: space-around;
  padding: 12px 0 20px; z-index: 10;
}
.nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  cursor: pointer; transition: opacity 0.15s; padding: 0 12px;
}
.nav-item:hover { opacity: 0.60; }
.nav-item svg { color: var(--brown); opacity: 0.80; transition: color 0.18s, opacity 0.18s; }
.nav-item.active svg { color: var(--gold); opacity: 1; }
.nav-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--brown); opacity: 0.85;
}
.nav-item.active .nav-label { color: var(--gold); opacity: 1; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.50; transform: scale(0.85); }
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes glowPulse {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(1.08); opacity: 0.6; }
}

/* ════════════════════════════
   SCREEN 7 — DIARIO
════════════════════════════ */
#s-diario { overflow: hidden; background: var(--cream); }

/* Di-screen management */
.di-screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 62px;
  width: 100%;
  background: var(--cream);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.di-screen.di-active { display: flex; }

/* Diario topbar */
.di-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 0;
  margin-bottom: var(--sp-3);
  flex-shrink: 0;
}

.di-back {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); padding: 0; transition: color 0.18s;
}
.di-back:hover { color: var(--brown); }

.di-topbar-logo {
  font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold);
}

/* Dots de progreso */
.di-dots { display: flex; gap: 6px; align-items: center; }
.di-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(115,102,86,0.18); transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.di-dot.on  { width: 18px; border-radius: 3px; background: var(--gold); }
.di-dot.done { background: rgba(208,138,0,0.38); }

/* Diario body — scroll simple, padding fijo */
.di-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: var(--sp-3) var(--pad-x) var(--sp-6);
  min-height: 0;
}
.di-body::-webkit-scrollbar { display: none; }

.di-cita {
  margin-bottom: 36px;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin-left: 6px;
  margin-right: 6px;
}
.di-cita-texto {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.60;
  display: block;
}

.di-pregunta-wrap {
  margin-bottom: 36px;
  font-family: var(--serif);
  font-size: 28px; line-height: 1.25;
}
.di-pregunta { color: var(--brown); font-weight: 400; }
.di-pregunta-gold { color: var(--gold); font-style: italic; }

.di-hint {
  font-size: 18px; font-weight: 500;
  color: var(--muted); line-height: 1.55;
  margin-bottom: 0;
  text-align: center;
}

/* Bloque inferior — margen superior fijo, flujo natural */
.di-body .bottom {
  display: flex;
  flex-direction: column;
  margin-top: 44px;
}

.di-paso-header { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 36px; }
.di-paso-circulo {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.di-paso-letra {
  font-family: var(--sans); font-size: 14px;
  font-weight: 700; color: var(--gold); line-height: 1;
  letter-spacing: 0;
}
.di-paso-nombre {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold);
}

/* Opciones de vínculo */
.di-opts-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-4);
}

.di-opt {
  display: flex; align-items: center;
  min-height: 0;
  padding: var(--sp-3) 0;
  
  cursor: pointer; transition: opacity 0.15s, transform 0.15s;
}
.di-opt:last-child { border-bottom: none; }
.di-opt:hover { opacity: 0.55; transform: translateX(2px); }
.di-opt-icon {
  width: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-right: var(--sp-2);
}
.di-opt-sep {
  width: 1.5px; height: 28px;
  background: var(--gold); opacity: 0.35;
  flex-shrink: 0; margin-right: var(--sp-2); border-radius: 2px;
}
.di-opt-text {
  font-size: 17px; font-weight: 500;
  color: var(--brown); line-height: 1.4; flex: 1;
}

/* Emociones — grid 2×4, distribuye el espacio disponible */
.di-emos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-1);
  margin-bottom: 52px;
  align-content: start;
}

.di-emo {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 14px 8px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.80);
  cursor: pointer; transition: opacity 0.3s, transform 0.3s;
}
.di-emo.di-on { background: var(--navy); border-color: var(--navy); }
.di-emo-icon { font-size: 22px; line-height: 1; }
.di-emo-name { font-size: 10px; font-weight: 600; color: var(--brown); text-align: center; line-height: 1.2; }
.di-emo.di-on .di-emo-name { color: rgba(255,255,255,0.70); }

/* Reacciones R — lista con líneas, sin ruido visual */
.di-reacciones {
  display: flex;
  flex-direction: column;
  margin-bottom: 52px;
}
.di-reaccion {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 0;
  
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
.di-reaccion::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--brown);
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}
.di-reaccion::after { display: none; }
.di-reaccion.di-on { color: var(--navy); font-weight: 600; }
.di-reaccion.di-on::before {
  background: var(--gold);
  border-color: var(--gold);
}

/* Textarea — altura fija y natural, sin estirar */
.di-ta {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.80);
  padding: var(--sp-2);
  font-family: var(--sans); font-size: 16px; color: var(--brown);
  line-height: 1.75; resize: none; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  height: 140px;
  margin-bottom: 52px;
}
.di-ta:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(208,138,0,0.08); }
.di-ta::placeholder { color: rgba(115,102,86,0.40); font-size: 15px; }

/* Botón diario */
.di-btn {
  width: 100%; height: 48px;
  background: transparent; border: 1px solid var(--gold); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); cursor: pointer; transition: background 0.18s;
}
.di-btn:hover { background: rgba(208,138,0,0.06); }

/* Pantalla Guía IA */
.di-guia-body {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  padding: var(--section-gap) var(--pad-x) var(--sp-8);
}
.di-guia-body::-webkit-scrollbar { display: none; }

.di-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: var(--sp-3);
}
.di-spinner {
  width: 34px; height: 34px;
  border: 1.5px solid var(--line); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
.di-loading-text { font-size: 14px; color: var(--muted); font-style: italic; }

.di-g-section {
  margin-bottom: var(--section-gap); opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.di-g-section.show { opacity: 1; transform: translateY(0); }

.di-g-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--sp-2); display: block;
}
.di-g-text { font-size: 15px; color: var(--brown); line-height: 1.80; }

.di-g-frase .di-g-text {
  font-family: var(--serif); font-size: 20px;
  color: var(--navy); font-style: italic; line-height: 1.55;
}
.di-g-practica { border-left: 2px solid var(--gold); padding-left: var(--sp-3); }

.di-btn-nueva {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; background: transparent;
  border: 1px solid var(--brown); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); cursor: pointer; margin-top: var(--sp-3);
  transition: background 0.18s;
}
.di-btn-nueva:hover { background: rgba(208,138,0,0.06); }

/* Toast de validación (reemplaza alert) */
.di-toast {
  position: absolute;
  bottom: 88px; left: 24px; right: 24px;
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 13px; font-weight: 500;
  padding: 14px 18px; border-radius: 10px;
  border-left: 3px solid var(--gold);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}
.di-toast.visible { opacity: 1; }

/* NAVBAR DIARIO */
.di-navbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #ede8de; border-top: 1px solid #c8bfb0;
  display: flex; align-items: center; justify-content: space-around;
  padding: 10px 0 18px; z-index: 20; flex-shrink: 0;
}
.di-nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  cursor: pointer; padding: 0 10px; transition: opacity 0.15s;
}
.di-nav-item:hover { opacity: 0.60; }
.di-nav-item svg { color: var(--brown); opacity: 0.70; }
.di-nav-item.active svg { color: var(--gold); opacity: 1; }
.di-nav-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--brown); opacity: 0.75;
}
.di-nav-item.active .di-nav-label { color: var(--gold); opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════
   SCREEN 8 — REGULA
════════════════════════════ */


/* Re-use di-screen pattern for sub-screens */

/* ══════════════════════════════
   SCREEN: REGULA
══════════════════════════════ */

/* Pantalla 1 (portada) = navy. Pantallas 2-4 = crema */
#s-regula { overflow: hidden; }

.rg-screen {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  display: none; flex-direction: column; overflow: hidden;
}
.rg-screen.rg-active { display: flex; }

/* ── PORTADA: fondo navy ── */
.rg-portada { background: var(--navy); }

/* ── PANTALLAS INTERNAS: fondo crema ── */
.rg-interna { background: var(--navy); }

/* Topbar portada */
.rg-topbar-portada {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 0; flex-shrink: 0;
}
.rg-back-portada {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.30); padding: 0; transition: color 0.18s;
}
.rg-back-portada:hover { color: rgba(255,255,255,0.60); }
.rg-topbar-logo-portada {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
}

/* Topbar interna */
.rg-topbar-interna {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 0; flex-shrink: 0;
  margin-bottom: var(--sp-2);
}
.rg-back-interna {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); padding: 0; transition: color 0.18s;
}
.rg-back-interna:hover { color: var(--brown); }
.rg-topbar-logo-interna {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
}

/* Barra progreso */
.rg-progress {
  height: 2px; background: rgba(255,255,255,0.10);
  margin: var(--sp-2) var(--pad-x) 0; border-radius: 2px;
  flex-shrink: 0; overflow: hidden;
}
.rg-progress.crema { background: var(--line); }
.rg-progress-fill {
  height: 100%; border-radius: 2px; transition: width 0.4s ease;
  background: var(--gold);
}

/* Body scrollable */
.rg-body {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  padding: var(--sp-4) var(--pad-x) var(--sp-8); min-height: 0;
}
.rg-body::-webkit-scrollbar { display: none; }

/* ── PORTADA: grid de emociones ── */
.rg-portada-header { margin-bottom: var(--sp-5); }
.rg-portada-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px;
}
.rg-portada-titulo {
  font-family: var(--serif); font-size: 32px; font-weight: 300;
  color: rgba(255,255,255,0.80); line-height: 1.15;
}
.rg-portada-titulo em { color: var(--gold); font-style: italic; }
.rg-portada-sub {
  font-size: 14px; color: rgba(255,255,255,0.40);
  line-height: 1.60; margin-top: var(--sp-2);
}

.rg-emo-lista {
  display: flex; flex-direction: column;
}
.rg-emo-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  
  cursor: pointer; transition: opacity 0.15s, transform 0.15s;
}
.rg-emo-item:hover { opacity: 0.65; transform: translateX(4px); }
.rg-emo-emoji { font-size: 26px; flex-shrink: 0; width: 36px; text-align: center; }
.rg-emo-info { flex: 1; }
.rg-emo-nombre { font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.75); }
.rg-emo-desc { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.rg-emo-flecha { color: rgba(255,255,255,0.20); flex-shrink: 0; }

/* Emociones bloqueadas (premium) */
.rg-emo-item--locked { opacity: 0.65; }
.rg-emo-item--locked:hover { opacity: 0.80; transform: none; }
.rg-emo-item--locked .rg-emo-nombre { color: rgba(255,255,255,0.55); }

/* Artículos de módulo bloqueados */
.mo-card--locked { opacity: 0.65; }
.mo-card--locked:hover { opacity: 0.80; }

/* ── PANTALLA INTERNA: sección de contenido ── */
.rg-seccion-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px;
}
.rg-seccion-titulo {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  color: var(--brown); line-height: 1.2; margin-bottom: var(--sp-4);
}

/* Bloque definición */
.rg-definicion {
  font-size: 15px; color: var(--brown); line-height: 1.80;
  margin-bottom: var(--sp-4);
}
.rg-definicion p { margin-bottom: var(--sp-2); }

/* Bloque función — lo que sirve */
.rg-funcion {
  background: rgba(208,138,0,0.07);
  border-left: 2px solid var(--gold);
  padding: 14px 16px; border-radius: 0 10px 10px 0;
  margin-bottom: var(--sp-4);
}
.rg-resignif {
  background: var(--navy);
  border-radius: 14px;
  padding: var(--sp-3);
  margin-top: var(--sp-2);
}
.rg-funcion-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px;
}
.rg-funcion-texto {
  font-family: var(--serif); font-size: 15px;
  color: var(--brown); line-height: 1.60; font-style: italic;
}

/* Bloque cuerpo — manifestación física */
.rg-cuerpo {
  background: var(--navy); border-radius: 14px;
  padding: var(--sp-3); margin-bottom: var(--sp-4);
}
.rg-cuerpo-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: var(--sp-2);
}
.rg-cuerpo-lista {
  display: flex; flex-direction: column; gap: 10px; margin-top: 4px;
}
.rg-cuerpo-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.70); line-height: 1.70;
}

/* Pasos de regulación */
.rg-pasos-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: var(--sp-3);
}
.rg-paso {
  display: flex; gap: 14px; margin-bottom: var(--sp-3);
  padding-bottom: 0; border-bottom: none;
}
.rg-paso:last-child { margin-bottom: 0; }
.rg-paso-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.rg-paso-num span { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--gold); }
.rg-paso-body { flex: 1; }
.rg-paso-titulo { font-size: 14px; font-weight: 700; color: var(--brown); margin-bottom: 5px; }
.rg-paso-texto { font-size: 14px; color: var(--brown); line-height: 1.70; }

/* Ejemplo del libro */

/* Acción final */
.rg-accion {
  background: var(--navy);
  border: none;
  border-radius: 14px; padding: var(--sp-3);
  margin-top: var(--sp-4);
}
.rg-accion-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px;
}
.rg-accion-texto { font-size: 14px; color: rgba(255,255,255,0.70); line-height: 1.75; }

/* Botón continuar */
.rg-btn-continuar {
  width: 100%; height: 48px; margin-top: var(--sp-5);
  background: transparent; border: 1px solid var(--gold); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); cursor: pointer; transition: background 0.18s;
}
.rg-btn-continuar:hover { background: rgba(208,138,0,0.06); }

/* Botones finales */
.rg-btn-nueva {
  width: 100%; height: 48px;
  background: transparent; border: 1px solid var(--gold); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); cursor: pointer; transition: background 0.18s; margin-bottom: 10px;
}
.rg-btn-nueva:hover { background: rgba(208,138,0,0.06); }
.rg-btn-home {
  width: 100%; height: 44px;
  background: transparent; border: none;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: color 0.18s;
}
.rg-btn-home:hover { color: var(--brown); }

/* Toast */
.rg-toast {
  position: absolute; bottom: 32px; left: 24px; right: 24px;
  background: var(--navy); color: rgba(255,255,255,0.75);
  font-size: 13px; padding: 14px 18px; border-radius: 10px;
  border-left: 3px solid var(--gold); opacity: 0;
  pointer-events: none; transition: opacity 0.25s ease; z-index: 50;
}
.rg-toast.visible { opacity: 1; }

/* ════════════════════════════
   SCREEN 9 — GUÍA CONVERSACIONAL
════════════════════════════ */
#s-guia { overflow: hidden; background: var(--navy); }

.guia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.guia-header-back {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.30); padding: 0; transition: color 0.18s;
}
.guia-header-back:hover { color: rgba(255,255,255,0.60); }
.guia-header-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--gold);
}
.guia-header-btn-nueva {
  background: none; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 5px 10px; cursor: pointer;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.30); transition: color 0.3s, opacity 0.3s;
}
.guia-header-btn-nueva:hover { border-color: rgba(208,138,0,0.40); color: var(--gold); }

.guia-chat-area {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: var(--sp-4) var(--pad-x) var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.guia-chat-area::-webkit-scrollbar { display: none; }

.guia-burbuja {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.guia-burbuja.show { opacity: 1; transform: translateY(0); }
.guia-burbuja--ia { align-self: flex-start; }

.guia-burbuja-texto {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.70;
}
.guia-burbuja--ia .guia-burbuja-texto {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.82);
  border-bottom-left-radius: 4px;
}
.guia-burbuja--usuario .guia-burbuja-texto {
  background: rgba(208,138,0,0.18);
  color: rgba(255,255,255,0.75);
  border-bottom-right-radius: 4px;
  font-size: 14px;
}
.guia-burbuja--cierre .guia-burbuja-texto {
  background: rgba(208,138,0,0.08);
  border: 1px solid rgba(208,138,0,0.20);
  color: rgba(255,255,255,0.82);
  border-radius: 18px;
}
.guia-frase-cierre {
  margin-top: 10px;
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: rgba(208,138,0,0.90);
  line-height: 1.55;
}

.guia-typing {
  display: none;
  align-self: flex-start;
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  gap: 5px;
  align-items: center;
}
.guia-typing.visible { display: flex; }
.guia-typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.30);
  animation: typingBounce 1.2s ease infinite;
}
.guia-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.guia-typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.30; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.guia-input-area {
  flex-shrink: 0;
  padding: var(--sp-2) var(--pad-x) 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.guia-textarea {
  flex: 1;
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  padding: 12px 16px;
  font-family: var(--sans); font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55; resize: none; outline: none;
  transition: border-color 0.18s;
  min-height: 48px; max-height: 120px;
  overflow-y: auto;
}
.guia-textarea:focus { border-color: rgba(208,138,0,0.50); }
.guia-textarea::placeholder { color: rgba(255,255,255,0.22); font-size: 14px; }
.guia-textarea:disabled { opacity: 0.35; }

.guia-send-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity 0.18s, transform 0.15s;
}
.guia-send-btn:hover { opacity: 0.85; }
.guia-send-btn:active { transform: scale(0.93); }
.guia-send-btn:disabled { opacity: 0.25; cursor: default; transform: none; }
.guia-send-btn svg { color: var(--navy); }

.guia-acciones-cierre {
  display: none;
  flex-shrink: 0;
  padding: var(--sp-2) var(--pad-x) 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-direction: column;
  gap: 10px;
}
.guia-acciones-cierre.visible { display: flex; }
.guia-btn-nueva {
  width: 100%; height: 48px;
  background: transparent; border: 1px solid var(--gold); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); cursor: pointer; transition: background 0.18s;
}
.guia-btn-nueva:hover { background: rgba(208,138,0,0.08); }
.guia-btn-home {
  width: 100%; height: 44px;
  background: transparent; border: none;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.25); cursor: pointer; transition: color 0.18s;
}
.guia-btn-home:hover { color: rgba(255,255,255,0.50); }

/* ── Paddings internos en tablet/desktop ── */
@media (min-width: 600px) {
  .reg-inner,
  .screen-topbar { padding-left: 44px; padding-right: 44px; }
  .screen-topbar-back { left: 44px; }
  .intro-content { padding-left: 52px; padding-right: 52px; }
  .di-guia-body { padding-left: 48px; padding-right: 48px; }
  .di-body { padding-left: 44px; padding-right: 44px; }
  .home-topbar { padding-left: 36px; padding-right: 36px; }
  .saludo, .frase-wrap, .accesos-label, .accesos { padding-left: 36px; padding-right: 36px; }
  .momento { margin-left: 36px; margin-right: 36px; }
  .di-topbar { padding-left: 36px; padding-right: 36px; }
}

/* ════════════════════════════
   SCREEN 10 — APRENDE
════════════════════════════ */
#s-aprende { overflow: hidden; background: var(--navy); position: relative; }

/* Sub-screens: lista de capítulos / lección */
.ap-screen {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background: var(--navy);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#ap-leccion, #ap-capitulo { background: var(--navy); }
.ap-screen.ap-active { display: flex; }

/* Topbar de Aprende */
.ap-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 0;
  margin-bottom: var(--sp-3);
  flex-shrink: 0;
}
.ap-back {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.30); padding: 0; transition: color 0.18s;
}
#ap-capitulo, #ap-leccion { background: var(--navy); }
#ap-lista { background: var(--navy); }
#ap-capitulo .ap-back, #ap-leccion .ap-back { color: var(--muted); }
.ap-back:hover { color: var(--brown); }
.ap-topbar-logo {
  font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--gold);
}
.ap-topbar-placeholder { width: 50px; }

/* ── LISTA DE CAPÍTULOS ── */
.ap-lista-body {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  padding: var(--sp-3) var(--pad-x) var(--sp-8); min-height: 0;
}
.ap-lista-body::-webkit-scrollbar { display: none; }

.ap-lista-header {
  margin-bottom: var(--sp-5);
}
.ap-lista-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 10px;
}
.ap-lista-titulo {
  font-family: var(--serif); font-size: 32px; font-weight: 300;
  color: rgba(255,255,255,0.70); line-height: 1.15;
}
.ap-lista-titulo em {
  font-style: italic; color: var(--gold); opacity: 1;
}

/* Tarjeta de capítulo */
.ap-cap-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
/* .ap-cap-card:first-child — border-top eliminado */
.ap-cap-card:hover { opacity: 0.60; transform: translateX(3px); }

.ap-cap-num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  opacity: 0.60;
  min-width: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.ap-cap-sep { width: 2px; height: 26px; background: var(--gold); opacity: 0.60; flex-shrink: 0; margin: 0 12px; border-radius: 2px; }
.ap-cap-info { flex: 1; }
.ap-cap-nombre {
  font-family: var(--sans); font-size: 17px; font-weight: 500;
  color: rgba(255,255,255,0.70); line-height: 1.25; margin-bottom: 3px;
}
.ap-cap-lecciones {
  font-size: 12px;
  color: rgba(255,255,255,0.35); display: block;
}
.ap-cap-arrow {
  flex-shrink: 0; color: rgba(255,255,255,0.20);
}

/* ── VISTA DE CAPÍTULO ── */
.ap-cap-body {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  padding: 0 var(--pad-x) var(--sp-8);
  min-height: 0;
}
.ap-cap-body::-webkit-scrollbar { display: none; }

/* Hero del capítulo */
.ap-cap-hero {
  padding: var(--sp-4) 0 var(--sp-4);
  margin-bottom: var(--sp-4);
}
.ap-cap-hero-num {
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 10px;
}
.ap-cap-hero-titulo {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  color: var(--brown); line-height: 1.2; margin-bottom: 4px;
}
.ap-cap-hero-desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.60; margin-top: var(--sp-2);
}
.ap-book-links {
  display: flex; gap: 16px; margin-top: var(--sp-3); flex-wrap: wrap;
}
.ap-book-link {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); text-decoration: none; opacity: 1;
  transition: opacity 0.18s;
}
.ap-book-link:hover { opacity: 0.75; }

/* Lista de lecciones del capítulo */
.ap-lec-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: var(--sp-3);
}
.ap-lecciones-lista {
  display: flex;
  flex-direction: column;
}

.ap-lec-item:hover { opacity: 0.55; transform: translateX(3px); }
.ap-lec-item--locked { opacity: 0.65; }
.ap-lec-item--locked::after {
  content: '🔒';
  font-size: 13px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.ap-lec-item { position: relative; }
.ap-lec-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; margin-right: 0; }
.ap-lec-sep { width: 2px; height: 26px; background: var(--gold); opacity: 0.60; flex-shrink: 0; margin: 0 var(--sp-2); border-radius: 2px; }
.ap-lec-info { flex: 1; }
.ap-lec-item-nombre { font-size: 16px; font-weight: 500; color: var(--brown); line-height: 1.3; }
.ap-lec-nombre { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--brown); line-height: 1.2; margin-bottom: var(--sp-3); }
.ap-lec-desc { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ── VISTA DE LECCIÓN ── */
.ap-lec-body {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  padding: var(--sp-4) var(--pad-x) var(--sp-8); min-height: 0;
}
.ap-lec-body::-webkit-scrollbar { display: none; }

/* Header lección */
.ap-lec-header {
  margin-bottom: var(--sp-3);
}
.ap-lec-cap-ref {
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 8px;
}

.ap-lec-contenido p strong {
  color: var(--navy); font-weight: 600;
}

/* Bloque clave — destacado dorado */

.ap-lec-clave p {
  font-family: var(--serif); font-size: 16px;
  color: var(--navy); line-height: 1.6; margin: 0;
  font-style: italic;
}

/* Reflexión al final */

/* Navegación lección — anterior/siguiente */
.ap-lec-nav {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-6);
}
.ap-lec-nav-btn {
  flex: 1; height: 48px;
  background: transparent; border: 1px solid var(--line); border-radius: 0;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: background 0.3s, color 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ap-lec-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.ap-lec-nav-btn.ap-lec-nav-siguiente {
  border-color: var(--gold); color: var(--gold);
}
.ap-lec-nav-btn.ap-lec-nav-siguiente:hover {
  background: rgba(208,138,0,0.08);
}

/* ════════════════════════════
   SCREEN 11 — CHECK-IN SEMANAL
════════════════════════════ */
#s-checkin { overflow: hidden; background: var(--navy); }

.ci-screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--navy);
  display: none; flex-direction: column; overflow: hidden;
}
.ci-screen.ci-active { display: flex; }

.ci-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 0;
  margin-bottom: var(--sp-2); flex-shrink: 0;
}
.ci-back {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.70);
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); padding: 0; transition: color 0.18s;
}
.ci-back:hover { color: var(--brown); }
.ci-topbar-logo { font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }

.ci-progress { height: 2px; background: var(--line); margin: var(--sp-2) var(--pad-x) 0; border-radius: 2px; flex-shrink: 0; overflow: hidden; }
.ci-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s ease; }

.ci-body { flex: 1; overflow-y: auto; scrollbar-width: none; padding: var(--sp-4) var(--pad-x) var(--sp-8); }
.ci-body::-webkit-scrollbar { display: none; }

.ci-paso-tag { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: var(--sp-2); }
.ci-pregunta { font-family: var(--serif); font-size: 26px; color: var(--brown); line-height: 1.25; margin-bottom: var(--sp-5); }
.ci-pregunta em { color: var(--gold); font-style: italic; }

.ci-tono-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--sp-5); }
.ci-tono-opt { display: flex; align-items: center; gap: 16px; padding: 20px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.70); cursor: pointer; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.ci-tono-opt:hover { border-color: var(--gold); background: rgba(208,138,0,0.05); }
.ci-tono-opt.ci-sel { border-color: var(--gold); background: rgba(208,138,0,0.08); }
.ci-tono-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.ci-tono-info { flex: 1; }
.ci-tono-label { font-size: 15px; font-weight: 600; color: var(--brown); display: block; margin-bottom: 2px; }
.ci-tono-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

.ci-vinculo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: var(--sp-3); }
.ci-vinculo-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.70); cursor: pointer; transition: background 0.3s, border-color 0.3s, color 0.3s; text-align: center; }
.ci-vinculo-opt:hover { border-color: var(--gold); background: rgba(208,138,0,0.05); }
.ci-vinculo-opt.ci-sel { border-color: var(--gold); background: rgba(208,138,0,0.08); }
.ci-vinculo-icon { font-size: 24px; line-height: 1; }
.ci-vinculo-label { font-size: 13px; font-weight: 600; color: var(--brown); }

.ci-calidad-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: var(--sp-2); margin-top: var(--sp-4); }
.ci-calidad-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.ci-calidad-opt { padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 500; color: var(--brown); background: rgba(255,255,255,0.70); cursor: pointer; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.ci-calidad-opt:hover { border-color: var(--gold); }
.ci-calidad-opt.ci-sel { border-color: var(--gold); background: rgba(208,138,0,0.10); color: var(--navy); font-weight: 600; }

.ci-emo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: var(--sp-5); }
.ci-emo-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.80); cursor: pointer; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.ci-emo-opt:hover { border-color: var(--gold); }
.ci-emo-opt.ci-sel { background: var(--navy); border-color: var(--navy); }
.ci-emo-opt.ci-sel .ci-emo-name { font-size: 12px; color: var(--brown); font-weight: 500; }
.ci-emo-emoji { font-size: 22px; line-height: 1; }
.ci-emo-name { font-size: 10px; font-weight: 600; color: var(--brown); text-align: center; line-height: 1.2; }

.ci-reflexion-pregunta { font-family: var(--serif); font-size: 20px; color: var(--brown); line-height: 1.45; margin-bottom: var(--sp-3); border-left: 2px solid var(--gold); padding-left: 14px; }
.ci-ta { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.80); padding: var(--sp-2); font-family: var(--sans); font-size: 16px; color: var(--brown); line-height: 1.75; resize: none; outline: none; transition: border-color 0.18s, box-shadow 0.18s; height: 130px; margin-bottom: var(--sp-5); }
.ci-ta:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(208,138,0,0.08); }
.ci-ta::placeholder { color: rgba(115,102,86,0.38); font-size: 15px; }

.ci-btn { width: 100%; height: 48px; background: var(--gold); border: none; border-radius: 10px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--navy); cursor: pointer; transition: background 0.18s; }
.ci-btn:hover { background: rgba(208,138,0,0.06); }
.ci-btn:disabled { opacity: 0.30; cursor: default; }

.ci-toast { position: absolute; bottom: 88px; left: 24px; right: 24px; background: var(--navy); color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500; padding: 14px 18px; border-radius: 10px; border-left: 3px solid var(--gold); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 50; }
.ci-toast.visible { opacity: 1; }

.ci-resultado-screen { background: var(--navy) !important; }
.ci-resultado-inner { flex: 1; overflow-y: auto; scrollbar-width: none; padding: var(--sp-5) var(--pad-x) var(--sp-8); display: flex; flex-direction: column; }
.ci-resultado-inner::-webkit-scrollbar { display: none; }
.ci-res-tag { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: var(--sp-3); }
.ci-res-semana { font-family: var(--serif); font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: var(--sp-5); letter-spacing: 0.5px; }
.ci-res-datos { display: flex; gap: 10px; margin-bottom: var(--sp-5); flex-wrap: wrap; }
.ci-res-dato { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border-radius: 20px; padding: 7px 14px; }
.ci-res-dato-emoji { font-size: 16px; }
.ci-res-dato-texto { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55); }

.ci-res-loading { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); flex: 1; justify-content: center; }
.ci-spinner { width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,0.10); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
.ci-loading-text { font-size: 14px; color: rgba(255,255,255,0.35); font-style: italic; }

.ci-res-lectura { display: none; flex-direction: column; }
.ci-res-lectura.show { display: flex; }
.ci-res-lectura-label { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: var(--sp-3); }
.ci-res-texto { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.85; margin-bottom: var(--sp-5); opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.ci-res-texto.show { opacity: 1; transform: translateY(0); }
.ci-res-acciones { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-4); }
.ci-accion { display: flex; align-items: flex-start; gap: 12px; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 12px 14px; }
.ci-accion-num { font-family: var(--serif); font-size: 18px; color: var(--gold); flex-shrink: 0; line-height: 1.4; }
.ci-accion-txt { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.65; margin: 0; }
.ci-res-frase { font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--gold); line-height: 1.55; border-left: 2px solid rgba(208,138,0,0.40); padding-left: 14px; margin-bottom: var(--sp-6); opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s; }
.ci-res-frase.show { opacity: 1; transform: translateY(0); }
.ci-btn-home { width: 100%; height: 48px; background: transparent; border: 1px solid rgba(208,138,0,0.40); border-radius: 0; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.3s, color 0.3s, opacity 0.3s; margin-top: auto; }
.ci-btn-home:hover { border-color: var(--gold); color: var(--gold); }

/* ════════════════════════════
   MÓDULOS: CULTIVA / ACTITUDES / AMOR PERDURABLE
   Arquitectura compartida — 3 sub-screens: lista, detalle, práctica
════════════════════════════ */
#s-modulo { overflow: hidden; background: var(--navy); }

.mo-screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--cream);
  display: none; flex-direction: column; overflow: hidden;
}
.mo-screen.mo-active { display: flex; }

/* Topbar */
.mo-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 0;
  margin-bottom: var(--sp-2); flex-shrink: 0;
}
.mo-back {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); padding: 0; transition: color 0.18s;
}
.mo-back:hover { color: var(--brown); }
.mo-topbar-logo { font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }

/* Body scrollable */
.mo-body { flex: 1; overflow-y: auto; scrollbar-width: none; padding: var(--sp-3) var(--pad-x) var(--sp-8); min-height: 0; }
.mo-body::-webkit-scrollbar { display: none; }

/* ── LISTA DE ELEMENTOS ── */
.mo-lista-header { margin-bottom: var(--sp-5); }
.mo-lista-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.mo-lista-titulo { font-family: var(--serif); font-size: 28px; color: var(--brown); line-height: 1.2; margin-bottom: 8px; }
.mo-lista-subtitulo { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Tarjeta de elemento */
.mo-card {
  display: flex; align-items: center; gap: 0;
  padding: 24px 0;
  cursor: pointer; transition: opacity 0.15s, transform 0.15s;
}
.mo-card:hover { opacity: 0.55; transform: translateX(3px); }
.mo-card:first-of-type {  }
.mo-card:hover { opacity: 0.60; transform: translateX(3px); }

.mo-card-num {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: var(--gold); min-width: 36px; flex-shrink: 0; text-align: center;
}
.mo-card-sep { width: 2px; height: 26px; background: var(--gold); opacity: 0.60; flex-shrink: 0; margin: 0 var(--sp-2); border-radius: 2px; }
.mo-card-info { flex: 1; }
.mo-card-nombre { font-size: 16px; font-weight: 500; color: var(--brown); line-height: 1.3; margin-bottom: 2px; }
.mo-card-desc { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mo-card-arrow { flex-shrink: 0; color: var(--muted); }

/* ── DETALLE DE ELEMENTO ── */
.mo-det-hero {
  padding: var(--sp-3) 0 var(--sp-2);
  margin-bottom: 0;
}
.mo-det-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.mo-det-titulo { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--brown); line-height: 1.15; margin-bottom: var(--sp-3); }
.mo-det-historia {
  font-size: 15px; color: var(--brown); line-height: 1.80;
  margin-bottom: var(--sp-4);
}
.mo-det-historia p { margin-bottom: var(--sp-2); }

/* Bloque filosofía/fe */
.mo-det-fe {
  border-left: 2px solid var(--gold);
  opacity: 1;
  padding-left: 14px; margin-bottom: var(--sp-5);
}
.mo-det-fe-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.mo-det-fe-texto { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--muted); line-height: 1.65; }

/* Pasos */
.mo-pasos-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); display: block; margin-top: var(--sp-4); margin-bottom: var(--sp-3); }
.mo-paso {
  display: flex; gap: 14px; margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
}
.mo-paso:last-child { border-bottom: none; }
.mo-paso-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.mo-paso-num span { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--gold); }
.mo-paso-contenido { flex: 1; }
.mo-paso-titulo { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 5px; }
.mo-paso-texto { font-size: 14px; color: var(--brown); line-height: 1.70; }

/* Señales — dos columnas positivo/negativo */
/* ── Subtítulo del ítem ── */
.mo-det-subtitulo {
  font-size: 14px; color: var(--muted);
  margin: 2px 0 var(--sp-3); font-style: italic;
}

/* ── Contexto: primer párrafo, fluye directo tras el hero ── */
.mo-det-contexto {
  font-size: 15px; color: var(--brown); line-height: 1.80;
  margin-bottom: var(--sp-3);
}
.mo-det-contexto p { margin: 0 0 var(--sp-2); }
.mo-det-contexto p:last-child { margin-bottom: 0; }

/* ── Label de sección (= rg-seccion-eyebrow / rg-funcion-label) ── */
.mo-det-bloque-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  display: block; margin: var(--sp-4) 0 var(--sp-2);
}

/* ── Bloque de texto corrido (= rg-definicion) ── */
.mo-det-bloque { margin-bottom: var(--sp-3); }
.mo-det-bloque-texto {
  font-size: 15px; color: var(--brown); line-height: 1.80;
  margin: 0 0 var(--sp-2);
}
.mo-det-bloque-texto:last-child { margin-bottom: 0; }

/* ── Epígrafe / cita (= rg-funcion con borde dorado) ── */
.mo-det-epigrafe {
  background: rgba(208,138,0,0.07);
  border-left: 2px solid var(--gold);
  padding: 14px 16px; border-radius: 0 10px 10px 0;
  margin-bottom: var(--sp-4);
  font-family: var(--serif); font-size: 15px;
  color: var(--brown); line-height: 1.60; font-style: italic;
}

/* ── La clave (= rg-funcion con fondo dorado suave) ── */
.mo-det-clave {
  background: rgba(208,138,0,0.07);
  border-left: 2px solid var(--gold);
  padding: 14px 16px; border-radius: 0 10px 10px 0;
  margin: var(--sp-5) 0 var(--sp-4);
}
.mo-det-clave-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 8px;
}
.mo-det-clave-texto {
  font-family: var(--serif); font-size: 15px;
  color: var(--brown); line-height: 1.60; font-style: italic;
  margin: 0;
}

/* ── Ejercicio práctico (= rg-accion / rg-cuerpo en navy) ── */
.mo-det-ejercicio {
  background: var(--navy); border-radius: 14px;
  padding: var(--sp-3); margin: var(--sp-4) 0;
}




/* ── Reflexión final ── */
.mo-det-reflexion {
  margin: var(--sp-4) 0;
}

/* ── CTA: calificación + comentario + notificaciones (= rg-cta) ── */
.mo-cta {
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.mo-cta-titulo {
  font-family: var(--serif); font-size: 18px;
  color: var(--brown); line-height: 1.3; margin-bottom: 4px; margin-top: 0;
}
.mo-cta-sub {
  font-size: 13px; color: var(--muted); margin-bottom: var(--sp-3);
}
.mo-cta-stars {
  display: flex; gap: 10px; margin-bottom: var(--sp-4);
}
.mo-star {
  width: 28px; height: 28px; cursor: pointer; background: none; border: none; padding: 0;
  color: var(--line); transition: color 0.15s, transform 0.15s; flex-shrink: 0;
}
.mo-star:hover, .mo-star.active { color: var(--gold); }
.mo-star svg { display: block; width: 28px; height: 28px; }
.mo-cta-textarea {
  width: 100%; height: 90px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,0.80);
  padding: 12px 14px; font-family: var(--sans); font-size: 14px;
  color: var(--brown); line-height: 1.65; resize: none; outline: none;
  transition: border-color 0.18s; margin-bottom: var(--sp-3);
  box-sizing: border-box;
}
.mo-cta-textarea::placeholder { color: var(--muted); }
.mo-cta-btn-notif {
  background: rgba(255,255,255,0.70); border: none; border-radius: 8px;
  color: var(--navy); font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; width: 100%; height: 44px;
  transition: background 0.18s; display: flex; align-items: center;
  justify-content: center; gap: 8px;
}
.mo-cta-btn-notif:hover { background: rgba(255,255,255,0.90); }
.mo-senales { display: flex; flex-direction: column; gap: var(--sp-4); margin: var(--sp-4) 0; }
.mo-senales-col { width: 100%; }
.mo-senales-col-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.mo-senales-col--pos .mo-senales-col-label { color: var(--gold); }
.mo-senales-col--neg .mo-senales-col-label { color: var(--muted); }
.mo-senal {
  font-size: 12px; color: var(--brown); line-height: 1.5;
  padding: 6px 0; 
  display: flex; gap: 6px; align-items: flex-start;
}
.mo-senal:last-child { border-bottom: none; }
.mo-senal-dot { flex-shrink: 0; margin-top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0.50; }
.mo-senales-col--neg .mo-senal-dot { background: var(--muted); }

/* Ejercicio práctico */
.mo-ejercicio {
  background: var(--navy); border-radius: 14px;
  padding: var(--sp-4); margin-top: var(--sp-5);
}
.mo-ejercicio-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.mo-ejercicio-titulo { font-family: var(--serif); font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.mo-ejercicio-texto { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.70; }

/* Nav entre elementos */
.mo-det-nav { display: flex; gap: 10px; margin-top: var(--sp-5); }
.mo-det-nav-btn {
  flex: 1; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 0;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: background 0.3s, color 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mo-det-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.mo-det-nav-btn--sig { border-color: var(--gold); color: var(--gold); }
.mo-det-nav-btn--sig:hover { background: rgba(208,138,0,0.08); }

/* ── CTA: calificación + comentario + suscripción ── */
.rg-cta {
  margin-top: var(--sp-6);
  
  padding-top: var(--sp-5);
}
.rg-cta-titulo {
  font-family: var(--serif); font-size: 18px;
  color: var(--brown); line-height: 1.3; margin-bottom: 4px; margin-top: 0;
}
.rg-cta-sub {
  font-size: 13px; color: var(--muted); margin-bottom: var(--sp-3);
}

/* Estrellas */
.rg-stars {
  display: flex; gap: 10px; margin-bottom: var(--sp-4);
}
.rg-star {
  width: 28px; height: 28px; cursor: pointer;
  color: var(--line); transition: color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.rg-star:hover, .rg-star.active { color: var(--gold); transform: scale(1.12); }
.rg-star svg { width: 28px; height: 28px; display: block; }

/* Textarea comentario */
.rg-cta-ta {
  width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,0.80);
  padding: 12px 14px;
  font-family: var(--sans); font-size: 14px; color: var(--brown);
  line-height: 1.65; resize: none; outline: none;
  transition: border-color 0.18s;
  height: 90px; margin-bottom: var(--sp-3);
}
.rg-cta-ta:focus { border-color: rgba(208,138,0,0.50); }
.rg-cta-ta::placeholder { color: rgba(115,102,86,0.38); }

/* Suscripción */
.rg-cta-sus-btn {
  background: rgba(255,255,255,0.70); border: none; border-radius: 8px;
  color: var(--navy); font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; width: 100%; height: 44px;
  transition: background 0.18s;
}
.rg-cta-sus-btn:hover { background: rgba(255,255,255,0.90); }

.rg-cta-suscripcion {
  background: var(--navy); border-radius: 14px;
  padding: var(--sp-3); margin-top: var(--sp-5);
}
.rg-cta-sus-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 6px;
}
.rg-cta-sus-desc {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.60; margin-bottom: var(--sp-3);
}
.rg-cta-sus-confirmacion {
  display: none; font-size: 13px;
  color: var(--gold); margin-top: 8px; font-style: italic;
}

/* Botón enviar comentario */
.rg-cta-enviar {
  width: 100%; height: 44px;
  background: transparent; border: 1px solid var(--gold); border-radius: 0;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); cursor: pointer; transition: background 0.18s;
  margin-bottom: 0;
}
.rg-cta-enviar:hover { background: rgba(208,138,0,0.06); }
.rg-cta-confirmacion {
  display: none; font-size: 13px; color: var(--gold);
  text-align: center; font-style: italic; padding: 8px 0;
}

/* ════════════════════════════
   SCREEN — BIENVENIDA RETORNO
════════════════════════════ */
#s-retorno { background: var(--navy); }

.ret-inner {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--sp-6) var(--pad-x);
  text-align: center;
}
.ret-saludo {
  font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--sp-3);
  line-height: 1.8;
  opacity: 0; animation: fadeUp 0.6s ease 0.2s forwards;
}
.ret-frase {
  font-family: var(--serif); font-size: 28px;
  font-weight: 400; color: white;
  line-height: 1.3; margin-bottom: var(--sp-5);
  opacity: 0; animation: fadeUp 0.6s ease 0.4s forwards;
}
.ret-nombre {
  color: var(--gold); font-style: italic;
}
.ret-cita {
  font-size: 14px; color: rgba(255,255,255,0.50);
  font-style: italic; line-height: 1.65;
  max-width: 280px; margin: 0 auto var(--sp-6);
  opacity: 0; animation: fadeUp 0.6s ease 0.6s forwards;
}
.ret-btn {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  transition: opacity 0.2s;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}
.ret-btn:hover { opacity: 0.75; }

/* ════════════════════════════
   SCREEN — PERFIL / PROGRESO
════════════════════════════ */
#s-perfil { background: var(--cream); overflow-y: auto; scrollbar-width: none; }
#s-perfil::-webkit-scrollbar { display: none; }

.perf-inner {
  display: flex; flex-direction: column;
  padding: 0 var(--pad-x) var(--sp-8);
  min-height: 100%;
}

/* Header */
.perf-header {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--sp-6) 0 var(--sp-5);
  text-align: center;
}
.perf-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--gold);
  margin-bottom: 14px;
}
.perf-nombre {
  font-family: var(--serif); font-size: 24px;
  font-weight: 400; color: var(--brown); margin-bottom: 4px;
}
.perf-momento {
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}
.perf-frase {
  font-size: 14px; font-weight: 400; font-style: italic;
  color: var(--gold); margin-top: 12px; line-height: 1.55;
  padding: 0 var(--sp-3);
}

/* Separador */
.perf-sep {
  height: 0.5px; background: rgba(115,102,86,0.15);
  margin: var(--sp-4) 0;
}

/* Label de sección */
.perf-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--sp-3);
}

/* Grid de métricas */
.perf-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: var(--sp-4);
}
.perf-metric {
  background: rgba(115,102,86,0.06);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
}
.perf-metric-val {
  font-family: var(--serif); font-size: 32px;
  font-weight: 400; color: var(--brown);
  line-height: 1; margin-bottom: 4px;
}
.perf-metric-val span {
  font-size: 16px; color: var(--muted);
  font-family: var(--sans); font-weight: 400;
}
.perf-metric-label {
  font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.4;
}
.perf-metric-sub {
  font-size: 11px; color: rgba(115,102,86,0.50);
  margin-top: 2px; line-height: 1.3;
}

/* Racha */
.perf-racha {
  display: flex; align-items: center; gap: 14px;
  background: var(--navy); border-radius: var(--border-radius-md);
  padding: 16px 20px; margin-bottom: var(--sp-4);
}
.perf-racha-num {
  font-family: var(--serif); font-size: 44px;
  font-weight: 400; color: var(--gold); line-height: 1;
  flex-shrink: 0;
}
.perf-racha-info { flex: 1; }
.perf-racha-label {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.80); margin-bottom: 2px;
}
.perf-racha-sub {
  font-size: 12px; color: rgba(255,255,255,0.40); line-height: 1.4;
}

/* Emoción frecuente */
.perf-emo-row {
  display: flex; align-items: center; gap: 12px;
  padding: var(--sp-3) 0;
  border-bottom: 0.5px solid rgba(115,102,86,0.12);
}
.perf-emo-row:last-child { border-bottom: none; }
.perf-emo-icon { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }
.perf-emo-name { font-size: 15px; font-weight: 500; color: var(--brown); flex: 1; }
.perf-emo-count { font-size: 12px; color: var(--muted); }

/* Vínculo más trabajado */
.perf-vinculo-tag {
  display: inline-block;
  font-size: 13px; font-weight: 500;
  color: var(--brown); padding: 6px 14px;
  border: 0.5px solid rgba(115,102,86,0.25);
  border-radius: 20px; margin-right: 6px; margin-bottom: 6px;
}
.perf-vinculo-tag.primary {
  background: rgba(208,138,0,0.08);
  border-color: rgba(208,138,0,0.30);
  color: var(--brown);
}

/* Estado vacío */
.perf-empty {
  font-size: 13px; color: var(--muted);
  font-style: italic; padding: var(--sp-2) 0;
}

.topbar-avatar:hover { opacity: 0.70; }

/* ════════════════════════════
   GANCHO DIARIO — cream style
════════════════════════════ */
.gancho-wrap {
  margin: var(--section-gap) var(--pad-x) 0;
  opacity: 0; animation: fadeUp 0.6s ease 0.38s forwards;
}
.gancho-card {
  border-left: 2px solid var(--gold);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4);
  background: transparent;
}

.gancho-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--sp-2); display: block;
}

.gancho-texto {
  font-size: 15px; font-weight: 500;
  color: var(--brown); line-height: 1.55;
  margin-bottom: var(--sp-3);
}
.gancho-card--frase .gancho-texto { font-family: var(--serif); font-style: italic; font-size: 16px; }

.gancho-fuente {
  font-size: 11px; color: var(--muted);
  margin-bottom: var(--sp-3); display: block;
}

.gancho-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px;
  border-radius: 20px; cursor: pointer;
  font-family: var(--sans); font-size: 11px;
  font-weight: 700; letter-spacing: 1px;
  border: none; transition: opacity 0.18s;
}
.gancho-btn:hover { opacity: 0.75; }
.gancho-btn--frase { background: rgba(208,138,0,0.12); color: var(--gold); }
.gancho-btn--accion { background: var(--navy); color: rgba(255,255,255,0.80); }
.gancho-btn--accion.done { background: rgba(208,138,0,0.12); color: var(--gold); }
.gancho-btn--pregunta { background: var(--navy); color: rgba(255,255,255,0.80); }

.gancho-pregunta-input {
  width: 100%; min-height: 72px;
  background: rgba(115,102,86,0.06);
  border: 0.5px solid rgba(115,102,86,0.20); border-radius: 10px;
  padding: 10px 12px; font-family: var(--sans); font-size: 14px;
  color: var(--brown); line-height: 1.5; resize: none;
  margin-bottom: var(--sp-2);
}
.gancho-pregunta-input::placeholder { color: var(--muted); }
.gancho-pregunta-input:focus { outline: none; border-color: rgba(208,138,0,0.40); }

/* ══════════════════════════════════════════════
   ACCESIBILIDAD — prefers-reduced-motion
   Respeta la preferencia del sistema operativo
   de reducir o eliminar animaciones.
══════════════════════════════════════════════ */

/* ════════════════════════════
   SCREEN — PREMIUM / TIENDA
════════════════════════════ */
#s-premium { background: var(--navy); }

.prem-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: var(--sp-5) var(--pad-x) var(--sp-8);
}
.prem-body::-webkit-scrollbar { display: none; }

.prem-bloque {
  padding: var(--sp-4) 0;
}

.prem-divisor {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: var(--sp-4) 0;
}

.prem-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-2);
}

.prem-titulo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  line-height: 1.2;
  margin: 0 0 10px;
}

.prem-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.40);
  line-height: 1.6;
  margin: 0 0 var(--sp-4);
}

.prem-ben-grupo {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-4);
}

.prem-ben {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  line-height: 1.4;
}

.prem-ben-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.prem-ben--incluye {
  padding: 24px 0 8px;
  border: none;
}

.prem-ben-subtitulo {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.prem-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: opacity 0.15s;
}
.prem-plan:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.prem-plan:hover { opacity: 0.70; }
.prem-plan-izq { display: flex; align-items: center; gap: 14px; }
.prem-plan-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.prem-plan--sel .prem-plan-radio {
  border-color: var(--gold);
  background: var(--gold);
}
.prem-plan-nombre {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
}
.prem-plan--sel .prem-plan-nombre {
  color: rgba(255,255,255,0.70);
}
.prem-plan-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(208,138,0,0.12);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 8px;
}
.prem-plan-der { text-align: right; }
.prem-plan-precio {
  font-family: var(--serif);
  font-size: 18px;
  color: rgba(255,255,255,0.70);
  font-weight: 400;
}
.prem-plan-periodo {
  font-size: 11px;
  color: rgba(255,255,255,0.30);
}

.prem-btn-comprar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  background: var(--gold);
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
  cursor: pointer;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
  transition: opacity 0.18s;
}
.prem-btn-comprar:hover { opacity: 0.85; }

.prem-btn-secundario {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  margin-top: var(--sp-4);
  transition: color 0.15s;
}
.prem-btn-secundario:hover { color: rgba(255,255,255,0.60); }

.prem-nota {
  font-size: 11px;
  color: rgba(255,255,255,0.20);
  text-align: center;
  line-height: 1.6;
  margin: var(--sp-3) 0 0;
}

.prem-metodo {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin: var(--sp-2) 0 0;
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════
   GRUPOS — Parejas v1
════════════════════════════════════ */

/* Badge en home */
#home-grupo-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(208,138,0,0.08);
  border: 0.5px solid rgba(208,138,0,0.25);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brown);
  cursor: pointer;
  transition: opacity 0.15s;
  margin: var(--sp-2) 0;
}
#home-grupo-badge:hover { opacity: 0.75; }

/* Cuerpo scrollable de pantallas de grupo */
.grupo-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: var(--sp-4) var(--pad-x) var(--sp-8);
}
.grupo-body::-webkit-scrollbar { display: none; }

/* Header del grupo */
.grupo-header {
  text-align: center;
  margin-bottom: var(--sp-5);
}
.grupo-emoji {
  font-size: 40px;
  display: block;
  margin-bottom: var(--sp-1);
}
.grupo-tipo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Secciones */
.grupo-seccion { margin-bottom: var(--sp-5); }
.grupo-seccion-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-3);
}
.grupo-empty {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Estado esperando */
.grupo-espera { text-align: center; }
.grupo-espera-titulo {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin: 0 0 var(--sp-4);
}
.grupo-espera-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin: var(--sp-3) 0 0;
}
.grupo-codigo-box {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: var(--sp-4);
}
.grupo-codigo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 var(--sp-2);
}
.grupo-codigo {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 6px;
  margin: 0 0 var(--sp-3);
}
.grupo-btn-copiar {
  background: transparent;
  border: 0.5px solid rgba(255,255,255,0.20);
  border-radius: 8px;
  padding: 8px 20px;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  cursor: pointer;
  transition: opacity 0.15s;
}
.grupo-btn-copiar:hover { opacity: 0.7; }

/* Check-in grid */
.grupo-checkin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: var(--sp-3);
}
.grupo-checkin-card {
  background: white;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: var(--sp-3);
}
.grupo-checkin-card--listo  { border-color: rgba(208,138,0,0.30); }
.grupo-checkin-card--completo { border-color: var(--navy); }
.grupo-cc-nombre {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.grupo-cc-estado {
  font-size: 13px;
  color: var(--brown);
  margin: 0;
}
.grupo-cc-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.grupo-cc-tono {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 4px;
}
.grupo-cc-emocion {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}
.grupo-cc-reflexion {
  font-size: 13px;
  color: var(--brown);
  font-style: italic;
  line-height: 1.5;
  margin: var(--sp-2) 0 0;
  border-top: 0.5px solid var(--line);
  padding-top: var(--sp-2);
}

/* Ejercicios */
.grupo-ej-card {
  background: white;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: var(--sp-3);
  margin-bottom: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.grupo-ej-card:hover { opacity: 0.75; }
.grupo-ej-card--completo { border-color: rgba(208,138,0,0.30); }
.grupo-ej-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.grupo-ej-modulo {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.grupo-ej-estado {
  font-size: 11px;
  color: var(--muted);
}
.grupo-ej-titulo {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
  margin: 0 0 4px;
  line-height: 1.4;
}
.grupo-ej-cta {
  font-size: 12px;
  color: var(--gold);
  margin: 6px 0 0;
  font-weight: 600;
}

/* Ejercicio detalle */
.grupo-ej-detalle { padding-bottom: var(--sp-5); }
.grupo-ej-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-2);
}
.grupo-ej-h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--brown);
  margin: 0 0 var(--sp-5);
  line-height: 1.3;
}
.grupo-ej-textarea {
  width: 100%;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--brown);
  background: white;
  resize: none;
  box-sizing: border-box;
  margin-bottom: var(--sp-3);
  outline: none;
  transition: border-color 0.15s;
}
.grupo-ej-textarea:focus { border-color: var(--navy); }
.grupo-ej-mi-resp {
  background: rgba(208,138,0,0.06);
  border: 0.5px solid rgba(208,138,0,0.20);
  border-radius: 12px;
  padding: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.grupo-ej-resp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.grupo-ej-resp-texto {
  font-size: 14px;
  color: var(--brown);
  line-height: 1.6;
  margin: 0 0 var(--sp-2);
}
.grupo-ej-espera {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.grupo-ej-respuestas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grupo-resp-card {
  background: white;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  padding: var(--sp-3);
}
.grupo-resp-nombre {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.grupo-resp-texto {
  font-size: 14px;
  color: var(--brown);
  line-height: 1.65;
  margin: 0;
}

/* Formulario crear/unirse */
.grupo-btn-accion {
  width: 100%;
  height: 48px;
  background: var(--navy);
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: var(--sp-2);
}
.grupo-btn-accion:hover { opacity: 0.80; }


/* ══════════════════════════════════════════════════════
   GRUPO CREAR — diseño con imagen de fondo
══════════════════════════════════════════════════════ */
#s-grupo-crear {
  position: relative;
  overflow: hidden;
}

.gc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}

.gc-overlay {
  display: none;
}

/* Contenido centrado verticalmente */
.gc-content {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  width: 55%;
  padding: 80px 28px 48px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gc-content::-webkit-scrollbar { display: none; }

/* Topbar sobre imagen — centrado correcto */
.gc-bg ~ .screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--topbar-pt) var(--pad-x) 0;
}
.gc-bg ~ .screen-topbar .screen-topbar-back {
  position: static;
  order: 1;
}
.gc-bg ~ .screen-topbar .screen-topbar-logo {
  position: static;
  order: 2;
  flex: 1;
  text-align: center;
}
.gc-bg ~ .screen-topbar > div:last-child {
  order: 3;
}

/* Títulos de sección — grandes, serif, dorado */
.gc-eyebrow {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1.15;
}

.gc-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.40);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Campos */
.gc-campo { margin-bottom: 20px; }

.gc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Input minimalista — solo línea inferior */
.gc-input, .gc-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 8px 0 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.gc-input::placeholder { color: rgba(255,255,255,0.18); }
.gc-input:focus, .gc-select:focus { border-bottom-color: var(--gold); }
.gc-select option { background: #0c1b35; color: white; }

.gc-input--codigo {
  letter-spacing: 0.25em;
  font-weight: 600;
  font-size: 16px;
}

.gc-error {
  font-size: 11px;
  color: #e07070;
  min-height: 14px;
  margin-top: -12px;
  margin-bottom: 8px;
}

/* Botones */
.gc-btn {
  width: 100%;
  padding: 13px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: opacity 0.2s;
  border-radius: 4px;
  margin-top: 4px;
}
.gc-btn:active { opacity: 0.75; }
.gc-btn:disabled { opacity: 0.35; cursor: default; }

.gc-btn--primario {
  background: var(--gold);
  color: var(--navy);
  border: none;
}
.gc-btn--primario:hover { opacity: 0.88; }

.gc-btn--secundario {
  background: transparent;
  color: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.18);
}
.gc-btn--secundario:hover { opacity: 0.80; }

/* Separación entre bloques del formulario */
.gc-card + .gc-card {
  margin-top: 40px;
}

/* ── Clases de formulario usadas por grupos.js ────────── */
.grupo-campo { margin-bottom: 12px; }

.grupo-input, .grupo-select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--navy);
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.grupo-input:focus, .grupo-select:focus { border-color: var(--navy); }
.grupo-input--codigo {
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

.grupo-error {
  font-size: 12px;
  color: #c0392b;
  min-height: 16px;
  margin-bottom: 8px;
}
