/* 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 */
  --border-radius-md: 14px;  /* radius de tarjetas y bloques */
  --topbar-pt:       max(36px, env(safe-area-inset-top));   /* 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;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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 FLOTANTE (pill izq + pill der) ── */
.screen-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(40px, calc(env(safe-area-inset-top) + 16px), 64px) var(--pad-x) 0;
  background: transparent;
  pointer-events: none;
  flex-shrink: 0;
  transform: translateZ(0);
  will-change: transform;
}
.screen-topbar > * { pointer-events: all; }
.screen-topbar-logo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

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

/* Indicador de carga del splash — oculto */
.splash-cargando { display: none !important; }

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

/* 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;
}
.intro-camino {
  flex: 1; height: 48px; background: transparent;
  border: none;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); cursor: pointer;
  white-space: nowrap; padding: 0 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity 0.2s;
}
.intro-camino:hover { opacity: 0.75; }
.intro-camino::after {
  content: '→';
  font-size: 15px;
  letter-spacing: 0;
}

/* ════════════════════════════
   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: max(72px, calc(env(safe-area-inset-top) + 52px)) var(--pad-x) var(--sp-8);
  flex: 1;
}

.reg-header {
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-4);
  text-align: center;
}
.reg-welcome { font-family: var(--serif); font-size: 32px; color: var(--gold); display: block; margin-bottom: var(--sp-1); }
.reg-title { font-family: var(--sans); font-size: 16px; color: rgba(115,102,86,0.70); display: block; line-height: 1.5; margin-top: 4px; }
.reg-title-mark { font-family: var(--serif); color: var(--gold); }

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

.field { margin-bottom: 20px; }  /* reducido de sp-6 (~32px) a 20px */
.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);
  -webkit-text-fill-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-input:-webkit-autofill,
.field-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--cream) inset;
  -webkit-text-fill-color: var(--brown);
  caret-color: var(--brown);
}

.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);
  -webkit-text-fill-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); -webkit-text-fill-color: var(--brown); }
.field-select.selected { color: var(--brown); -webkit-text-fill-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-btn[disabled] { opacity: 0.35; pointer-events: none; }

/* Loader de espera — formulario de registro */
#reg-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
}
#reg-loader p {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-align: center;
}

.reg-sep-google {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 14px;
}
.reg-sep-google::before,
.reg-sep-google::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}
.reg-sep-google span { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.5px; }

.reg-btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 48px; border-radius: 10px;
  background: #fff; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: #1f1f1f; letter-spacing: 0.1px;
  transition: box-shadow 0.18s, background 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.reg-btn-google:hover { background: #f5f5f5; box-shadow: 0 2px 8px rgba(0,0,0,0.22); }
.reg-btn-google:active { background: #ebebeb; }

.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 3B — MODELO A.M.A.R.
════════════════════════════ */
.mo-inner { padding: max(72px, calc(env(safe-area-inset-top) + 52px)) var(--pad-x) var(--sp-8); }
.mo-hero-card {
  background: var(--navy);
  border-radius: 16px;
  padding: var(--sp-5) var(--sp-3) var(--sp-4);
  margin-bottom: var(--section-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ════════════════════════════
   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: max(72px, calc(env(safe-area-inset-top) + 52px)) 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: max(72px, calc(env(safe-area-inset-top) + 52px)) 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; }

/* ── IRA-25 — cuestionario (reutiliza diag-progress + mecánica ci-tono-opt) ── */
#s-ira25 { overflow: hidden; background: var(--cream); }
.ira-intro { margin: var(--sp-2) var(--pad-x) 0; }
.ira-intro .ira-informe-eyebrow { margin-bottom: var(--sp-1); }

.ira-progress { margin: var(--sp-2) var(--pad-x) 0; flex-shrink: 0; }

.ira-paso { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: var(--section-gap); }

.ira-item { margin-bottom: var(--sp-6); }
.ira-item-texto { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--brown); line-height: 1.4; margin-bottom: var(--sp-4); }

.ira-opts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ira-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; }
.ira-opt:hover { border-color: var(--gold); }
.ira-opt.ira-sel { border-color: var(--gold); background: rgba(208,138,0,0.10); color: var(--brown); font-weight: 600; }

/* ── IRA-25 — informe (especificacion_informe_ira25.md, secciones 3-8) ── */
.ira-informe-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); display: block; }
.ira-informe-eyebrow--sep { margin-top: 40px; }

.ira-informe-patron { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--brown); margin: 8px 0 10px; }
.ira-informe-patron-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

.ira-iir-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ira-iir-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(115,102,86,0.12); overflow: hidden; }
.ira-iir-bar-fill { height: 100%; background: var(--gold); border-radius: 4px; }
.ira-iir-num { font-family: var(--serif); font-size: 16px; color: var(--brown); flex-shrink: 0; }
.ira-iir-rango { font-size: 12px; color: var(--muted); margin-top: 8px; }
.ira-informe-muted { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 10px; }

.ira-informe-seccion { margin-top: 36px; }
.ira-informe-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--gold); }
.ira-informe-heading svg { flex-shrink: 0; }
.ira-informe-parrafo { font-size: 12px; color: var(--brown); line-height: 1.7; }

.ira-modo-bloque { margin-top: 36px; border-left: 2px solid var(--gold); padding-left: 16px; margin-left: 6px; margin-right: 6px; }
.ira-modo-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.ira-modo-etiqueta { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--gold); line-height: 1.3; margin-bottom: 4px; }
.ira-modo-texto { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--brown); line-height: 1.6; }

.ira-informe-lista { margin: 0; padding-left: 18px; }
.ira-informe-lista li { font-size: 12px; color: var(--brown); line-height: 1.7; margin-bottom: 6px; }
.ira-informe-lista li:last-child { margin-bottom: 0; }

.ira-ruta-bloque { margin-top: 40px; background: var(--navy); border-radius: 16px; padding: var(--sp-4) var(--sp-3); }
.ira-ruta-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.ira-ruta-contexto { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: var(--sp-3); }
.ira-ruta-pregunta { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); margin-bottom: var(--sp-2); }
.ira-ruta-cargando { font-size: 12px; color: rgba(255,255,255,0.45); }
.ira-ruta-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; transition: opacity 0.15s, transform 0.15s; }
.ira-ruta-item:hover { opacity: 0.75; transform: translateX(3px); }
.ira-ruta-flecha { color: var(--gold); flex-shrink: 0; }
.ira-ruta-texto { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.90); }

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

.bienvenida-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: max(72px, calc(env(safe-area-inset-top) + 52px)) var(--pad-x) var(--section-gap);
  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(--section-gap);
  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: 13px; font-weight: 600;
  letter-spacing: 3px; 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: max(72px, calc(env(safe-area-inset-top) + 52px)) 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: 14px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0; display: block;
}
.momento-texto {
  font-family: var(--serif); font-size: 26px;
  color: rgba(255,255,255,0.72); line-height: 1.45; margin-bottom: 12px;
}
.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-fuente {
  font-size: 12px; 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: 14px; 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;
}

/* ── 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;
  border-bottom: 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;
}
/* Invitación pendiente de "Esto nos pasa" — mismo idioma tipográfico que
   el sufijo de arriba, pero SIN el tinte de fondo: son dos significados
   distintos (recomendado vs. acción pendiente de otra persona) y no deben
   compartir el mismo lenguaje visual completo. Decisión de Luis. */
.acceso[data-invitacion-pendiente="1"] .acceso-nombre::after {
  content: ' · pendiente';
  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.6; margin-top: 2px; }
.acceso-arrow { flex-shrink: 0; color: var(--muted); opacity: 0.40; margin-left: var(--sp-2); }

/* ── MAPA DE 4 EJES (home) — reutiliza .acceso para heredar gratis el
   resaltado "Para ti hoy" (data-recomendado, js/ui.js) sin tocar ese JS.
   El tratamiento visual de acá (ícono en círculo, tamaños) es específico
   de este rediseño — scoped bajo .mapa-ejes para NO filtrarse a otros
   usos de .acceso (ej. Sala de Encuentro). Sesión 2026-07-22: ahora son
   6 categorías, no 4 ejes — se mantiene el nombre de clase para no
   romper el hook existente de "Para ti hoy". */
.mapa-ejes {
  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;
}
.eje-eyebrow {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
  margin: var(--sp-6) 0 var(--sp-2);
}
.eje-eyebrow:first-child { margin-top: 0; }
.mapa-ejes .acceso-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(115, 102, 86, 0.12);
  position: relative;
  margin-right: var(--sp-3);
}
.mapa-ejes .acceso-nombre { font-size: 14px; font-weight: 700; }
.mapa-ejes .acceso[data-recomendado="1"] { background: rgba(208,138,0,0.08); }

/* Fila "Conoce A.M.A.R." — sesión 2026-07-22 (sección 8): pierde la
   tarjeta/tinte, el logo pasa a 48x48 sin contenedor propio. */
.mapa-ejes .acceso--destacado .acceso-icon {
  width: 48px; height: 48px;
  background: none;
  border-radius: 0;
  margin-right: var(--sp-2);
}
.mapa-ejes .acceso--destacado .acceso-icon img {
  width: 48px; height: 48px;
  object-fit: contain;
  display: block;
}

/* ── Carrusel de sugerencias (sección 9) — un slide visible con
   crossfade simple, sin librería. */
.sc-carrusel { padding: 0 var(--pad-x); margin-top: var(--sp-4); margin-bottom: var(--sp-6); }
.sc-slide { display: none; cursor: pointer; }
.sc-slide.sc-slide--activa { display: block; animation: fadeUp 0.35s ease; }
.sc-pregunta {
  font-size: 15px; font-weight: 500; color: var(--brown);
  line-height: 1.4; margin-bottom: var(--sp-2);
}
.sc-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--gold);
}
.sc-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--sp-3); }
.sc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(115, 102, 86, 0.25);
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}
.sc-dot.sc-dot--activo { background: var(--gold); width: 16px; border-radius: 3px; }

/* ── Acordeón de categorías (sección 7) — solo una abierta a la vez,
   sin líneas divisorias (margin, no borde). grid-template-rows 0fr↔1fr
   anima a la altura natural sin medir scrollHeight ni romperse con resize. */
.categoria + .categoria { margin-top: var(--sp-2); }
.categoria-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; padding: var(--sp-3) 0;
  cursor: pointer; text-align: left; font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.categoria-header .eje-eyebrow { margin: 0; }
.categoria-chevron { color: var(--muted); flex-shrink: 0; transition: transform 0.3s ease; }
.categoria.categoria--abierta .categoria-chevron { transform: rotate(90deg); }
.categoria-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.categoria-body-inner { overflow: hidden; min-height: 0; }
.categoria.categoria--abierta .categoria-body { grid-template-rows: 1fr; }

/* ── #s-ira5-directo (Vía 2 IRA-5) — fondo cream: .screen no trae fondo
   propio (transparente a propósito) y .ci-topbar/.ci-body tampoco (pensados
   para anidarse dentro de .ci-screen, que sí lo trae). Esta pantalla no usa
   .ci-screen porque es una sola pantalla con contenido dinámico vía
   innerHTML, no varios pasos alternando — el fix es un override puntual,
   sin tocar .screen, .ci-screen ni #s-checkin. */
#s-ira5-directo { background: var(--cream); }

.ira5-directo-titulo {
  font-family: var(--serif); font-size: 22px;
  color: var(--brown); line-height: 1.3;
  margin-bottom: var(--sp-2);
}
.ira5-directo-titulo span { color: var(--gold); font-style: italic; }

.ira5-saber-mas-trigger {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--gold);
}

/* Pills Sí/No de esta pantalla a 12px — override puntual, no toca el
   tamaño global de .ci-calidad-opt (13px), usado también en el checkin
   real ("Muy bien/Bien/Tensa/Distante") donde no se pidió cambiar nada. */
#ira5-directo-pregunta .ci-calidad-opt { font-size: 12px; }

/* ── Cuestionario progresivo IRA-5 (ira5RenderItems) — comparten esta
   función la Vía 1 (dentro de "Esto me pasa") y la Vía 2 (acá). Clases
   nuevas .ira5-item* para no tocar .ira-item/.ira-item-texto, que siguen
   en uso real por IRA-25 (iraRenderSeccion(), 25 preguntas visibles a la
   vez, sin diseño progresivo — no se toca). .ira-opts/.ira-opt/.ira-sel
   sí se reutilizan tal cual, ya son compartidos entre IRA-25 e IRA-5. */
.ira5-progreso { display: flex; flex-direction: column; gap: 22px; margin: var(--sp-4) 0; }
.ira5-item { display: flex; align-items: flex-start; gap: 12px; }
.ira5-item-circulo {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(115, 102, 86, 0.08); color: var(--muted);
  font-size: 12px; font-weight: 700;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.ira5-item[data-estado="activo"] .ira5-item-circulo {
  width: 30px; height: 30px;
  background: var(--gold); color: #fff;
}
.ira5-item[data-estado="respondido"] .ira5-item-circulo {
  background: rgba(208, 138, 0, 0.15); color: var(--gold);
}
.ira5-item-contenido { flex: 1; min-width: 0; padding-top: 3px; }
.ira5-item[data-estado="pendiente"] .ira5-item-contenido { display: none; }
.ira5-item-texto { font-size: 15px; color: var(--brown); line-height: 1.5; margin-bottom: 14px; display: none; }
.ira5-item-texto-compacta { font-size: 12px; color: var(--muted); line-height: 1.5; display: none; }
.ira5-item[data-estado="activo"] .ira5-item-texto { display: block; }
.ira5-item[data-estado="activo"] .ira-opts { display: flex; }
.ira5-item[data-estado="respondido"] .ira5-item-texto-compacta { display: block; }
.ira5-item .ira-opts { display: none; }

/* Cita de cierre del home (ajuste sesión 2026-07-22) — solo texto, sin
   .di-cita (ese lleva borde + tinte, esta no). */
.home-cierre {
  margin-top: var(--sp-7);
  text-align: center;
}
.home-cierre-texto {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--gold);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.acceso--proximamente { cursor: default; }
.acceso--proximamente:hover, .acceso--proximamente:active { opacity: 1; transform: none; }
.acceso-proximamente-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  flex-shrink: 0; 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 calc(20px + env(safe-area-inset-bottom)); 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-esto-me-pasa { 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--separada {
  margin-top: 36px;
}
.di-cita-texto {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  display: block;
}
.di-cita-fuente {
  font-size: 12px; font-weight: 600;
  color: var(--brown); opacity: 0.50;
  margin-top: var(--sp-1); letter-spacing: 0.3px;
}

/* Home: la cita destacada mantiene el mismo ritmo de entrada, espaciado
   vertical y alineacion horizontal (32px, --pad-x) que el hero y el mapa
   de 4 ejes -- scoped a #s-home para no afectar el .di-cita base que usan
   los ejercicios. El border-left se mueve a un div interno
   (.di-cita-contenido) para que quede DENTRO del padding de 32px, no
   pegado al borde fisico de la pantalla. */
#s-home .di-cita {
  padding: 0 var(--pad-x);
  margin: var(--section-gap) 0;
  border-left: none;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.44s forwards;
}
#s-home .di-cita-contenido {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}
#s-home .di-cita-texto {
  color: var(--brown);
}

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

/* Selección inline de género (Hijo/a, Hermano/a) */
.di-opt-genero-wrap { display: flex; align-items: baseline; flex: 1; }
.di-opt-genero-a {
  font-size: 17px; font-weight: 500; color: var(--brown); line-height: 1.4;
}
.di-opt-genero-conector {
  position: relative; display: inline-block;
  width: 16px; height: 1.4em; flex-shrink: 0;
}
.di-opt-genero-slash, .di-opt-genero-dot {
  position: absolute; left: 0; top: 0;
  font-size: 17px; font-weight: 500; color: var(--brown); line-height: 1.4;
  white-space: nowrap;
  transition: opacity 0.22s ease;
}
.di-opt-genero-slash { opacity: 1; }
.di-opt-genero-dot   { opacity: 0; }
.di-opt--expandido .di-opt-genero-slash { opacity: 0; }
.di-opt--expandido .di-opt-genero-dot   { opacity: 1; }
.di-opt-genero-b {
  display: inline-block; overflow: hidden; white-space: nowrap; pointer-events: none;
  font-size: 17px; font-weight: 500; color: var(--brown); line-height: 1.4;
  max-width: 0; opacity: 0; margin-left: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, max-width 0.22s ease, transform 0.22s ease, margin-left 0.22s ease;
}
.di-opt--expandido .di-opt-genero-b {
  opacity: 1; max-width: 140px; margin-left: 4px; transform: translateX(0); pointer-events: auto;
}
.di-opt-genero-elegido { color: var(--gold); font-weight: 700; }

/* 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 { font-weight: 700; }
.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);
  -webkit-text-fill-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;
  min-height: 220px; 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: 12px; 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(--brown); font-style: italic; line-height: 1.55;
}
.di-g-practica { border-left: 2px solid var(--gold); padding-left: var(--sp-3); }

/* Reporte del IRA-5 dentro de #g-resultado ("Esto me pasa") — mismo
   tratamiento tipográfico que .di-g-text, ya que aparece como una
   sección más de la misma reflexión. */
.ira5-intro { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: var(--sp-3); }
.ira5-reporte { font-size: 15px; color: var(--brown); line-height: 1.80; }

.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 calc(18px + env(safe-area-inset-bottom)); 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(--cream); }

/* 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-back-portada--cream {
  color: var(--muted);
}
.rg-back-portada--cream:hover {
  color: var(--brown);
}
.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(--section-gap); }
.rg-portada-eyebrow {
  font-size: 14px; 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.70); line-height: 1.15;
}
.rg-portada-titulo em { color: var(--gold); font-style: italic; }
.rg-portada-sub {
  font-size: 12px; color: rgba(255,255,255,0.40);
  line-height: 1.6; margin-top: var(--sp-2);
}

.rg-emo-lista {
  display: flex; flex-direction: column;
}
.rg-emo-item {
  display: flex; align-items: center; gap: 0;
  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-sep {
  width: 2px; height: 26px; background: var(--gold);
  opacity: 0.60; flex-shrink: 0;
  margin: 0 var(--sp-2); border-radius: 2px;
}
.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); line-height: 1.6; 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); }

/* Estilo de apego — espacio extra entre cada patrón (4 seguidos en el
   mismo tratamiento de párrafo corrido se sentían apretados) */
.rg-definicion .apego-patron { margin-bottom: var(--sp-5); }
.rg-definicion .apego-patron:last-child { margin-bottom: 0; }

/* 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(--section-gap);
  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;
  margin-top: auto;
  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) calc(80px + env(safe-area-inset-bottom));
  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) calc(80px + env(safe-area-inset-bottom));
  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); }

.esto-nos-pasa-aprobacion-card {
  display: none;
  flex-shrink: 0;
  padding: var(--sp-3) var(--pad-x);
  margin: 0 var(--pad-x) var(--sp-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(208,138,0,0.20);
  border-radius: 12px;
}
.esto-nos-pasa-aprobacion-card.visible { display: block; }

.esto-nos-pasa-aprobacion-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.esto-nos-pasa-aprobacion-texto {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 var(--sp-3);
}

.esto-nos-pasa-aprobacion-acciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.esto-nos-pasa-aprobacion-btn-editar {
  height: 40px;
  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;
}
.esto-nos-pasa-aprobacion-btn-editar:hover { background: rgba(208,138,0,0.08); }

.esto-nos-pasa-aprobacion-btn-aprobar {
  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;
  transition: opacity 0.18s;
}
.esto-nos-pasa-aprobacion-btn-aprobar:hover { opacity: 0.85; }

/* ── Paddings internos en tablet/desktop ── */
@media (min-width: 600px) {
  .reg-inner,
  .screen-topbar { padding-left: 44px; padding-right: 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(--cream); }
.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(--cream); }
#ap-lista { background: var(--navy); }
#ap-capitulo .ap-back, #ap-leccion .ap-back { color: var(--muted); }
.ap-back:hover { color: rgba(255,255,255,0.60); }
.ap-back--cream { color: var(--muted); }
.ap-back--cream: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-4) var(--pad-x) var(--sp-8); min-height: 0;
}
.ap-lista-body::-webkit-scrollbar { display: none; }

.ap-lista-header {
  margin-bottom: var(--section-gap);
}
.ap-lista-eyebrow {
  font-size: 14px; 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: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: 12px; color: var(--muted);
  line-height: 1.6; 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;
  display: flex; align-items: center;
  padding: 20px 0;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.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.6; 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;
}

/* 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-diario { overflow: hidden; background: var(--cream); }

.ci-screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--cream);
  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;
  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); }

/* Banner "síntesis semanal lista" — solo modo grupo, oculto por defecto.
   Reutiliza el patrón .acceso tal cual (icon+sep+info+arrow); esta clase
   es solo el wrapper de visibilidad, mismo mecanismo que
   .esto-nos-pasa-aprobacion-card (display:none / .visible{display:block}). */
.ci-sintesis-banner { display: none; margin-bottom: var(--section-gap); }
.ci-sintesis-banner.visible { display: block; }

.ci-pregunta { font-family: var(--serif); font-size: 26px; color: var(--brown); line-height: 1.25; margin-bottom: var(--section-gap); }
.ci-pregunta em { color: var(--gold); font-style: italic; }

.ci-tono-grid { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--section-gap); }
.ci-tono-opt { display: flex; align-items: center; gap: 16px; padding: var(--sp-3); 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-opt.ci-sel .ci-tono-label { color: var(--brown); }
.ci-tono-opt.ci-sel .ci-tono-desc { color: var(--brown); }
.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.6; }

.ci-vinculo-grid { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.ci-vinculo-opt { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: var(--sp-3); 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: left; }
.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: 26px; line-height: 1; flex-shrink: 0; }
.ci-vinculo-label { font-size: 15px; font-weight: 600; color: var(--brown); }

/* Selección inline de género (Hijo/a, Hermano/a) */
.ci-vinculo-genero-wrap {
  display: flex; align-items: baseline; justify-content: flex-start; flex: 1;
}
.ci-vinculo-genero-a, .ci-vinculo-genero-b {
  display: inline-block; overflow: hidden; white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--brown); line-height: 1.4;
  transition: opacity 0.22s ease, max-width 0.22s ease, transform 0.22s ease, margin-left 0.22s ease;
}
.ci-vinculo-genero-a { max-width: 140px; opacity: 1; }
.ci-vinculo-genero-conector {
  position: relative; display: inline-block;
  width: 14px; height: 1.4em; flex-shrink: 0;
  transition: opacity 0.22s ease;
}
.ci-vinculo-genero-slash, .ci-vinculo-genero-dot {
  position: absolute; left: 0; top: 0;
  font-size: 15px; font-weight: 600; color: var(--brown);
  white-space: nowrap;
  transition: opacity 0.22s ease;
}
.ci-vinculo-genero-slash { opacity: 1; }
.ci-vinculo-genero-dot   { opacity: 0; }
.ci-vinculo-opt--expandido .ci-vinculo-genero-slash { opacity: 0; }
.ci-vinculo-opt--expandido .ci-vinculo-genero-dot   { opacity: 1; }
.ci-vinculo-genero-b {
  pointer-events: none;
  max-width: 0; opacity: 0; margin-left: 0;
  transform: translateX(-6px);
}
.ci-vinculo-opt--expandido .ci-vinculo-genero-b { opacity: 1; max-width: 140px; margin-left: 4px; transform: translateX(0); pointer-events: auto; }

/* Confirmación de género elegido: la alternativa desaparece y aparece el check dorado */
.ci-vinculo-opt--elegido .ci-vinculo-genero-conector { opacity: 0; }
.ci-vinculo-opt--elegido [data-genero-val]:not(.ci-vinculo-genero-elegido) {
  max-width: 0; opacity: 0; margin-left: 0; pointer-events: none;
}
.ci-vinculo-genero-elegido { color: var(--brown); }
.ci-vinculo-genero-elegido::after { content: ' \2713'; color: var(--gold); font-weight: 700; }

/* Confirmación inline de "Otro" — Check-in (tarjeta con borde) */
.ci-vinculo-label--otro {
  overflow: hidden; white-space: nowrap;
  transition: opacity 0.22s ease, max-width 0.22s ease;
}
.ci-vinculo-opt--otro-activo .ci-vinculo-label--otro { max-width: 0; opacity: 0; }

.ci-vinculo-otro-wrap {
  display: flex; align-items: center; gap: 8px;
  max-width: 0; opacity: 0; overflow: hidden; flex: 1;
  transition: max-width 0.28s ease, opacity 0.2s ease;
}
.ci-vinculo-opt--otro-activo .ci-vinculo-otro-wrap { max-width: 500px; opacity: 1; }

.ci-vinculo-otro-input {
  flex: 1; min-width: 0; border: none; border-bottom: 1.5px solid var(--line);
  background: transparent; padding: 0 0 4px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--brown);
  outline: none; transition: border-color 0.18s;
}
.ci-vinculo-otro-input:focus { border-bottom-color: var(--gold); }
.ci-vinculo-otro-input::placeholder { color: rgba(115,102,86,0.28); font-weight: 400; }

.ci-vinculo-otro-confirmar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.ci-vinculo-otro-confirmar:hover { color: var(--gold); background: rgba(208,138,0,0.10); }

/* Confirmación inline de "Otro" — Diario (fila plana sin borde) */
.di-opt-text--otro {
  overflow: hidden; white-space: nowrap;
  transition: opacity 0.22s ease, max-width 0.22s ease;
}
.di-opt--otro-activo .di-opt-text--otro { max-width: 0; opacity: 0; }

.di-opt-otro-wrap {
  display: flex; align-items: center; gap: 8px;
  max-width: 0; opacity: 0; overflow: hidden; flex: 1;
  transition: max-width 0.28s ease, opacity 0.2s ease;
}
.di-opt--otro-activo .di-opt-otro-wrap { max-width: 500px; opacity: 1; }

.di-opt-otro-input {
  flex: 1; min-width: 0; border: none; border-bottom: 1.5px solid var(--line);
  background: transparent; padding: 0 0 6px;
  font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--brown);
  outline: none; transition: border-color 0.18s;
}
.di-opt-otro-input:focus { border-bottom-color: var(--gold); }
.di-opt-otro-input::placeholder { color: rgba(115,102,86,0.28); font-weight: 400; }

.di-opt-otro-confirmar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: none; color: var(--gold); opacity: 0.7; cursor: pointer;
  transition: opacity 0.18s;
}
.di-opt-otro-confirmar:hover { opacity: 1; }

.di-opt--sel { background: rgba(208,138,0,0.08); border-left: 2px solid var(--gold); }

/* Modal sub-selección de vínculo */

.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(--brown); font-weight: 600; }

.ci-emo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: var(--section-gap); }
.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: rgba(208,138,0,0.08); border-color: var(--gold); }
.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(--section-gap); }
.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: 40px; background: transparent; border: 2px solid rgba(115, 102, 86, 0.50); border-radius: 0; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); cursor: pointer; transition: background 0.18s, border-color 0.18s; display: flex; align-items: center; justify-content: center; }
.ci-btn:hover { background: rgba(208,138,0,0.06); border-color: var(--gold); }
.ci-btn:disabled { opacity: 0.30; cursor: default; }

.ci-resultado-screen { background: var(--navy) !important; }
.ci-resultado-inner { flex: 1; overflow-y: auto; scrollbar-width: none; padding: var(--section-gap) 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(--section-gap); letter-spacing: 0.5px; }
.ci-res-datos { display: flex; gap: 10px; margin-bottom: var(--section-gap); 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); line-height: 1.6; }

.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-espejo { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.85; margin-bottom: var(--sp-4); opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.ci-res-espejo.show { opacity: 1; transform: translateY(0); }
.ci-res-lectura-txt { font-size: 14px; color: rgba(255,255,255,0.52); line-height: 1.75; margin-bottom: var(--section-gap); padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,0.08); opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.ci-res-lectura-txt.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-3); 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(--section-gap); }
.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: 12px; color: var(--muted); line-height: 1.6; }

/* 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.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.6; 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(--section-gap);
}
.mo-det-fe-texto { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--muted); line-height: 1.65; }

/* Pasos */
.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: 12px; color: var(--muted);
  margin: 2px 0 var(--sp-3); font-style: italic; line-height: 1.6;
}

/* ── 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(--section-gap) 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(--section-gap);
  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: 12px; color: var(--muted); margin-bottom: var(--sp-3); line-height: 1.6;
}
.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(--section-gap);
}
.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(--section-gap); }
.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(--section-gap);
}
.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: 12px; color: var(--muted); margin-bottom: var(--sp-3); line-height: 1.6;
}

/* 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(--section-gap);
}
.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;
}

/* ── Pantalla de lista de módulo — fondo navy ── */
#mo-lista {
  background: var(--navy);
}
#mo-lista .mo-back { color: rgba(255,255,255,0.45); }
#mo-lista .mo-back:hover { color: rgba(255,255,255,0.80); }
#mo-lista .mo-lista-titulo { font-size: 32px; font-weight: 300; color: rgba(255,255,255,0.70); line-height: 1.15; }
#mo-lista .mo-lista-subtitulo { color: rgba(255,255,255,0.45); }
#mo-lista .mo-card-nombre { color: rgba(255,255,255,0.75); }
#mo-lista .mo-card-desc { color: rgba(255,255,255,0.38); }
#mo-lista .mo-card-arrow { color: rgba(255,255,255,0.20); }
#mo-lista .mo-card--locked .mo-card-nombre { color: rgba(255,255,255,0.40); }

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

/* Estado de espera mientras carga */
.ret-espera {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sp-3);
}
.ret-espera-puntos {
  display: flex; gap: 8px; align-items: center;
}
.ret-espera-puntos span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); opacity: 0.3;
  animation: retPulso 1.2s ease-in-out infinite;
}
.ret-espera-puntos span:nth-child(2) { animation-delay: 0.2s; }
.ret-espera-puntos span:nth-child(3) { animation-delay: 0.4s; }
@keyframes retPulso {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}
.ret-espera-texto {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.40);
  line-height: 1.6; 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(--section-gap);
  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);
}
#s-perfil::-webkit-scrollbar { display: none; }

.perf-inner {
  display: flex; flex-direction: column;
  padding: max(72px, calc(env(safe-area-inset-top) + 52px)) var(--pad-x) var(--sp-8);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  width: 100%;
  min-width: 0;
}
.perf-inner::-webkit-scrollbar { display: none; }
.perf-inner > * { min-width: 0; max-width: 100%; }

.perf-header {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--section-gap) 0 var(--section-gap);
  text-align: center;
  margin-bottom: var(--sp-4);
  width: 100%;
}
.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-avatar--img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 2px solid var(--gold);
  margin-bottom: 14px;
}
.perf-cambiar-foto {
  background: none; border: 1px solid var(--brown);
  color: var(--gold); font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
  cursor: pointer; margin-bottom: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.perf-cambiar-foto:hover { border-color: var(--gold); color: var(--gold); }
.perf-cambiar-foto:disabled { opacity: 0.4; cursor: default; }
.perf-nombre {
  font-family: var(--serif); font-size: 24px;
  font-weight: 400; color: var(--brown); margin-bottom: 4px;
}
.perf-frase {
  font-size: 14px; font-weight: 400; font-style: italic;
  color: var(--gold); margin-top: 12px; line-height: 1.55;
}

/* Separador */
.perf-sep { height: 0; margin: var(--sp-3) 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-2); margin-top: var(--sp-4);
}

/* Racha */
.perf-racha {
  display: flex; align-items: center; gap: 14px;
  background: var(--navy);
  border-radius: var(--border-radius-md);
  padding: 20px var(--sp-3);
  margin-bottom: var(--sp-3);
  width: 100%;
}
.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: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 2px;
}
.perf-racha-sub {
  font-size: 12px; color: rgba(255,255,255,0.40); line-height: 1.6;
}

/* Grid de métricas */
.perf-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: var(--sp-3);
  width: 100%;
}
.perf-metric {
  background: rgba(115,102,86,0.07);
  border-radius: var(--border-radius-md);
  padding: 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: 12px; color: rgba(115,102,86,0.45);
  margin-top: 2px; line-height: 1.6;
}

/* Emoción frecuente */
.perf-emo-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
}
.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ínculos */
.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;
}

/* Estado vacío — bloque "Tu perfil relacional" (IRA-25 no completado) */
.perf-ira25-vacio { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.perf-ira25-btn {
  background: none; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  padding: 8px 18px; border-radius: 20px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.perf-ira25-btn:hover { background: var(--gold); color: #fff; }

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

/* ════════════════════════════
   SCREEN — SÍNTESIS SEMANAL DE CHECK-IN DE GRUPO
   Mismo lenguaje visual verificado de #s-perfil (cream, serif+gold,
   tarjetas rgba suaves) — prefijo .cksin- para no colisionar con .perf-.
   El título reutiliza .gc-titulo + .titulo-hero (mismo mecanismo bicolor
   que "Sala de Encuentro"/"Construyendo juntos") con un override de
   tamaño puntual, en vez de aproximar el bicolor con una regla nueva.
════════════════════════════ */
#s-checkin-sintesis {
  background: var(--cream);
}
#s-checkin-sintesis::-webkit-scrollbar { display: none; }

.cksin-inner {
  display: flex; flex-direction: column;
  /* padding-bottom: var(--sp-8) (64px) no alcanza a despejar el nav-pill flotante
     (56px alto + 16px de separación del borde + env(safe-area-inset-bottom) =
     espacio real necesario, el pill SÍ suma su propio safe-area). Se agrega
     env(safe-area-inset-bottom) también acá — sin él, el margen medido sin
     safe-area (~16px) se reduciría o volvería negativo en un dispositivo real
     con home indicator, mismo defecto que tenía .grupo-body (ya corregido con
     la misma fórmula, ver memoria del proyecto). */
  padding: max(72px, calc(env(safe-area-inset-top) + 16px)) var(--pad-x) calc(var(--sp-8) + env(safe-area-inset-bottom) + 24px);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  width: 100%;
  min-width: 0;
}
.cksin-inner::-webkit-scrollbar { display: none; }
.cksin-inner > * { min-width: 0; max-width: 100%; }

.cksin-header {
  text-align: center;
  margin-bottom: var(--sp-4);
  width: 100%;
}

/* Título: reutiliza .gc-titulo (color brown + margin-bottom + em gold
   italic) y .titulo-hero (font-family/weight/line-height) — el HTML debe
   llevar class="gc-titulo titulo-hero cksin-titulo". Único override: el
   tamaño, porque esta pantalla sigue la escala de #s-perfil (24px), no
   la escala hero de 36px de "Sala de Encuentro". Especificidad reforzada
   con el selector de pantalla para ganarle a .titulo-hero sin importar
   el orden de aparición en el archivo. */
#s-checkin-sintesis .cksin-titulo {
  font-size: 24px;
}

.cksin-subtitulo {
  font-size: 14px; font-weight: 400; font-style: italic;
  color: var(--gold); margin-top: 8px; line-height: 1.55;
}

/* Grid de días registrados por persona — mismo patrón que .perf-metrics/.perf-metric */
.cksin-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: var(--sp-3);
  width: 100%;
}
.cksin-metric {
  background: rgba(115,102,86,0.07);
  border-radius: var(--border-radius-md);
  padding: 16px;
}
.cksin-metric-val {
  font-family: var(--serif); font-size: 32px;
  font-weight: 400; color: var(--brown);
  line-height: 1; margin-bottom: 4px;
}
.cksin-metric-val span {
  font-size: 16px; color: var(--muted);
  font-family: var(--sans); font-weight: 400;
}
.cksin-metric-label {
  font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.4;
}

/* Eyebrows — mismo tratamiento que .perf-section-label pero en var(--gold).
   Clase independiente a propósito: .perf-section-label sigue en
   var(--muted) para la pantalla de perfil real, no se toca. */
.cksin-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--sp-2); margin-top: var(--sp-4);
}

/* Tarjetas de patrón individual */
.cksin-patron-card {
  background: rgba(115,102,86,0.07);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 10px;
}
.cksin-patron-nombre {
  font-size: 13px; font-weight: 600; color: var(--brown);
  margin-bottom: 6px;
}
.cksin-patron-texto {
  font-size: 14px; color: var(--brown); line-height: 1.6;
}

/* Punto de encuentro */
.cksin-encuentro {
  border-left: 2px solid var(--gold);
  border-radius: 0;
  padding: 4px 0 4px 16px;
  margin: var(--sp-3) 0;
  font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--brown); line-height: 1.6;
}

/* Invitación — solo se renderiza si invitacion_texto no es null */
.cksin-invitacion {
  font-style: italic; color: var(--gold);
  text-align: center; font-size: 14px; line-height: 1.6;
  margin-top: var(--sp-4);
}

/* Utilidad de espaciado estándar entre bloques/secciones — mismo criterio que .momento/.frase-wrap en el home y .gancho-wrap en Sala de Encuentro (--section-gap = 40px) */
.u-section-gap {
  margin-top: var(--section-gap);
}

/* ════════════════════════════
   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: max(72px, calc(env(safe-area-inset-top) + 52px)) 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: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-2);
}

.prem-titulo {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(255,255,255,0.70);
  line-height: 1.15;
  margin: 0 0 10px;
}
.prem-titulo em { font-style: italic; color: var(--gold); }

.prem-sub {
  font-size: 12px;
  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-bottom incluye env(safe-area-inset-bottom) + 24px de margen extra
     sobre var(--sp-8) — el nav-pill flotante (.nav-pill) suma su propio
     safe-area a su posición; sin este término acá, el margen se reduce o se
     vuelve negativo en dispositivos con home indicator. Comparte esta clase
     #s-grupo-ejercicio, #s-esto-nos-pasa-sintesis, #s-catalogo-ejercicios y
     #s-detalle-ejercicio-catalogo — un solo cambio cubre las 4. */
  padding: max(72px, calc(env(safe-area-inset-top) + 52px)) var(--pad-x) calc(var(--sp-8) + env(safe-area-inset-bottom) + 24px);
  position: relative;
  z-index: 2;
}
.grupo-body::-webkit-scrollbar { display: none; }

/* Header del grupo */
.grupo-header {
  margin-bottom: var(--section-gap);
}
.grupo-header-nombre {
  font-family: var(--serif); font-size: 22px;
  font-weight: 400; color: var(--brown); -webkit-text-fill-color: var(--brown); margin: 0 0 4px;
}
.grupo-tipo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin: 0;
}
.grupo-body .rg-emo-nombre {
  color: var(--brown);
  -webkit-text-fill-color: var(--brown);
}
.grupo-body .rg-emo-desc {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.grupo-body .rg-emo-flecha {
  color: var(--muted);
}

/* Variante estática de rg-emo-item — sin hover/cursor de clic, usada como header de s-grupo */
.rg-emo-item--estatico {
  cursor: default;
  justify-content: center;
}
.rg-emo-item--estatico:hover {
  opacity: 1;
  transform: none;
}
.rg-emo-item--estatico .rg-emo-sep {
  width: 3px;
  opacity: 1;
}
.rg-emo-item--estatico .rg-emo-info {
  flex: none;
}

/* Secciones */
.grupo-seccion { margin-bottom: var(--section-gap); }
.grupo-seccion-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.grupo-empty {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
/* Escopeado: .grupo-empty tiene otros 6 usos (catálogo de ejercicios,
   estados vacíos) que quedan fuera de esta ronda — solo la tarjeta de
   acción personalizada de #s-grupo-ejercicio baja a 12px */
.grupo-empty.grupo-ej-accion {
  font-size: 12px;
  line-height: 1.6;
}
/* Frase de contexto sobre quién invitó, justo encima del botón de aceptar */
.grupo-empty.grupo-ej-invitacion-contexto {
  margin: 4px 0 2px;
}

/* Estado esperando */
.grupo-espera {
  text-align: center;
  padding-top: var(--sp-4);
}
.grupo-espera::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto var(--sp-3);
  animation: esperaPulso 1.8s ease-in-out infinite;
}
@keyframes esperaPulso {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%       { opacity: 1;    transform: scale(1.15); }
}
.grupo-espera-titulo {
  font-size: 16px;
  font-weight: 500;
  color: var(--brown);
  -webkit-text-fill-color: var(--brown);
  margin: 0 0 var(--sp-4);
}
.grupo-espera-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: var(--sp-3) 0 0;
}
/* 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); }

/* ── Animación de puntos para estados de carga ── */
.amar-dots span { display:inline-block; width:4px; height:4px; border-radius:50%; background:currentColor; animation:amarDotPulse 1.2s ease-in-out infinite; }
.amar-dots span:nth-child(2) { animation-delay:0.2s; }
.amar-dots span:nth-child(3) { animation-delay:0.4s; }
@keyframes amarDotPulse {
  0%,100% { opacity:0.25; transform:scale(0.8); }
  50%     { opacity:1;    transform:scale(1);   }
}
.grupo-ej-card--locked {
  opacity: 0.50;
  pointer-events: none;
  filter: blur(0.5px);
}
.grupo-ej-lock-icon { font-size: 13px; margin-left: auto; }
.grupo-ej-cta--locked { color: var(--gold); font-size: 11px; margin-top: 6px; }

/* Banner premium en grupos */
.grupo-premium-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(208,138,0,0.08);
  border: 1px solid rgba(208,138,0,0.25);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.grupo-premium-banner-icon { font-size: 20px; flex-shrink: 0; }
.grupo-premium-banner-titulo {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.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: var(--sp-2) 0 0;
  font-weight: 600;
  line-height: 1.6;
}

/* Ejercicio detalle */
.grupo-ej-detalle { padding-bottom: var(--section-gap); }
/* Fila eyebrow+badge de la pantalla de detalle — NO reutiliza .grupo-ej-header
   (esa es de las tarjetas de lista, margin-bottom 6px tuneado para un
   contexto denso; acá hace falta el aire de un eyebrow normal) */
.grupo-ej-detalle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
}
.grupo-ej-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  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(--section-gap);
  line-height: 1.3;
}

/* Eyebrow de "Lo que pasó" / "El propósito" — 12px, EXCEPCIÓN
   intencional al estándar de 10px de GUIA_DE_ESTILO.md sección 1:
   Luis decidió consistencia local con .grupo-ej-eyebrow/
   .grupo-seccion-eyebrow (12px, ya usadas en esta misma pantalla) por
   encima del estándar general. Documentado también en la guía. */
.grupo-ej-bloque-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.6;
  margin: 0 0 var(--sp-2);
}
.grupo-ej-historia-texto {
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.55;
  margin-bottom: var(--sp-3);
}
.grupo-ej-bloque + .grupo-ej-bloque {
  margin-top: 60px;
}

.grupo-ej-pasos-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.grupo-ej-paso { display: flex; align-items: flex-start; gap: 10px; }
/* Checkbox circular con check blanco — adapta el patrón de .di-on
   (Diario: círculo 18px, borde 1.5px, brown→gold al marcarse) y agrega
   el check blanco que .di-on no tiene, reusando el mismo SVG polyline
   de .prem-ben-icon. El <input> real queda invisible (opacity:0) pero
   funcional — el círculo visual es un hermano CSS-only, sin JS. */
.grupo-ej-paso-checkwrap {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.grupo-ej-paso-check {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  z-index: 1;
}
.grupo-ej-paso-circulo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  pointer-events: none;
}
.grupo-ej-paso-check:checked + .grupo-ej-paso-circulo {
  background: var(--gold);
  border-color: var(--gold);
}
.grupo-ej-paso-check:focus + .grupo-ej-paso-circulo {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.grupo-ej-paso-check-icon {
  width: 11px;
  height: 11px;
  opacity: 0;
  transition: opacity 0.15s;
}
.grupo-ej-paso-check:checked + .grupo-ej-paso-circulo .grupo-ej-paso-check-icon {
  opacity: 1;
}
.grupo-ej-paso label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.grupo-ej-paso-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 15px;
  flex-shrink: 0;
  min-width: 18px;
}
.grupo-ej-paso-texto {
  font-size: 12px;
  color: var(--brown);
  line-height: 1.6;
}

.grupo-ej-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-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);
  -webkit-text-fill-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: rgba(208,138,0,0.50); }
.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: 12px;
  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; }

/* ══════════════════════════════════════════════════════
   ESTO NOS PASA — Pantalla de síntesis
══════════════════════════════════════════════════════ */
.enp-sintesis-titulo {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  text-align: center;
  color: var(--brown);
  line-height: 1.3;
  margin: 0 0 var(--sp-4);
}
.enp-sintesis-titulo .enp-titulo-dorado { color: var(--gold); }

.enp-sintesis-eyebrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 38px;
}

.enp-sintesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: var(--sp-4);
}
.enp-sintesis-card {
  background: rgba(115,102,86,0.08);
  border-radius: 12px;
  padding: var(--sp-3);
}
.enp-sintesis-nombre {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.enp-ejercicio-card {
  background: rgba(208,138,0,0.08);
  border: 1px solid rgba(208,138,0,0.35);
  border-radius: 12px;
  padding: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.enp-ejercicio-titulo {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--brown);
  margin: 0 0 4px;
}
.enp-ejercicio-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--brown);
  margin: 0 0 var(--sp-3);
}
.enp-ejercicio-contexto {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 var(--sp-2);
  line-height: 1.5;
}
.enp-ejercicio-pasos {
  list-style: none;
  margin: 0 0 var(--sp-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enp-ejercicio-paso {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.enp-ejercicio-paso-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.enp-ejercicio-paso-texto {
  font-size: 14px;
  color: var(--brown);
  line-height: 1.6;
}
.enp-btn-aceptar-ejercicio {
  width: 100%;
  height: 48px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.enp-btn-aceptar-ejercicio:hover { opacity: 0.85; }
.enp-btn-aceptar-ejercicio:disabled { opacity: 0.5; cursor: default; }

/* ══════════════════════════════════════════════════════
   GRUPO CREAR — diseño con imagen de fondo
══════════════════════════════════════════════════════ */
#s-grupo-lista,
#s-grupo-crear,
#s-mis-grupos,
#s-grupo,
#s-grupo-ejercicio,
#s-esto-nos-pasa-sintesis {
  position: relative;
  overflow: hidden;
}

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

/* Contenido — fluye después del topbar */
.gc-content {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: max(72px, calc(env(safe-area-inset-top) + 52px)) var(--pad-x) var(--sp-8);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: var(--sp-2);
}
.gc-content::-webkit-scrollbar { display: none; }

/* 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: 12px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
}
#s-grupo-crear .gc-sub {
  margin-bottom: var(--section-gap);
}

/* Campos */
.gc-campo { margin-bottom: 28px; }
#s-grupo-crear .gc-campo { margin-bottom: var(--section-gap); }

.gc-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  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 var(--line);
  padding: 8px 0 10px;
  font-size: 15px;
  color: var(--brown);
  -webkit-text-fill-color: var(--brown);
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.gc-input::placeholder { color: var(--muted); opacity: 0.6; }
.gc-input:focus, .gc-select:focus { border-bottom-color: var(--gold); }
.gc-select option { background: var(--cream); color: var(--brown); }

.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: transparent;
  color: var(--gold);
  border: 2px solid rgba(115, 102, 86, 0.50);
  border-radius: 0;
  height: 40px;
  padding: 0;
  font-size: 12px;
  margin-top: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-btn--primario:hover { background: rgba(208,138,0,0.06); border-color: var(--gold); }
.gc-btn--invitacion { gap: 8px; }

/* ════════════════════════════════════════════════════════
   PANTALLA: ENTRADA MODO PAREJA (s-grupo-intro)
════════════════════════════════════════════════════════ */

.gi-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: max(72px, calc(env(safe-area-inset-top) + 52px)) var(--pad-x) var(--sp-6);
  overflow-y: auto;
  scrollbar-width: none;
  min-height: 0;
}
.gi-inner::-webkit-scrollbar { display: none; }
.gi-logo-img {
  height: 140px;
  width: auto;
  margin: 0 auto var(--sp-1);
  display: block;
}
.titulo-hero {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
}
.gi-titulo {
  color: rgba(245,240,232,0.70);
  margin: 0 0 var(--sp-4);
}
.gi-titulo-gold {
  color: var(--gold);
  font-style: italic;
  display: block;
}
.gi-ilustracion {
  height: clamp(220px, 35.2vh, 352px);
  width: auto;
  display: block;
  margin: 0 auto var(--sp-4);
  object-fit: contain;
}
.gi-cita {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(245,240,232,0.50);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 0 calc(var(--sp-6) + var(--sp-3));
}
.gi-nombre { color: var(--gold); font-style: italic; }
.gi-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;
  gap: 8px;
}
.gi-btn:hover { opacity: 0.75; }

/* ════════════════════════════════════════════════════════
   PANTALLA: LISTA DE GRUPOS (s-grupo-lista)
════════════════════════════════════════════════════════ */

#s-grupo-lista {
  background: var(--navy);
}
#s-grupo-lista .gc-content {
  gap: var(--sp-7);
}
#s-grupo-crear,
#s-grupo-unirse,
#s-mis-grupos,
#s-grupo,
#s-grupo-ejercicio,
#s-esto-nos-pasa-sintesis {
  background: var(--cream);
}

#s-detalle-ejercicio-catalogo {
  background: var(--cream);
}

/* Velo cream detrás del topbar flotante — sin esto, el contenido con scroll
   queda visible detrás de "VOLVER"/título porque .screen-topbar es
   transparente (css/app.css:99-111). Escopeado a las pantallas con
   contenido largo bajo un topbar transparente; no se toca .screen-topbar
   base porque la usa la mayoría de pantallas internas de la app.
   #s-modelo agregado 2026-07-22 (mismo bug, pantalla de lectura larga). */
#s-modelo .screen-topbar,
#s-grupo-ejercicio .screen-topbar,
#s-esto-nos-pasa-sintesis .screen-topbar,
#s-catalogo-ejercicios .screen-topbar,
#s-detalle-ejercicio-catalogo .screen-topbar {
  padding-bottom: var(--section-gap);
  background: var(--cream);
}

.gl-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 72px var(--pad-x) var(--sp-8);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  z-index: 2;
}
.gl-body::-webkit-scrollbar { display: none; }

/* Card de cada grupo */
.gl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gl-card:active { opacity: 0.7; }

.gl-card-emoji {
  flex-shrink: 0;
  width: 32px;
  font-size: 22px;
  text-align: center;
}
.gl-card-info {
  flex: 1;
  min-width: 0;
  border-left: 1.5px solid var(--line);
  padding-left: 14px;
}
.gl-card-nombre {
  font-size: 15px;
  font-weight: 500;
  color: var(--brown);
  -webkit-text-fill-color: var(--brown);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gl-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.gl-card-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  margin-right: 4px;
}
.gl-card-badge--pendiente {
  color: var(--gold);
}
.gl-card-arrow {
  color: var(--muted);
  flex-shrink: 0;
}

/* Separador */
.gl-separador {
  font-size: 11px;
  color: rgba(255,255,255,0.20);
  text-align: center;
  margin: var(--sp-2) 0 var(--sp-1);
}

/* Botón crear/unirse */
.gl-btn-nuevo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 14px 0;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.gl-btn-nuevo:active { opacity: 0.7; }

/* ── Pantalla principal Modo Pareja (s-grupo-lista) ──────────────── */
.gp-titulo {
  color: rgba(245,240,232,0.70);
  margin: var(--sp-3) 0 0;
}
.gp-titulo em {
  color: var(--gold);
  font-style: italic;
}

.gp-lista {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.gc-eyebrow--light {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.gc-titulo {
  color: var(--brown);
  margin-bottom: var(--sp-2);
}
.gc-titulo em {
  color: var(--gold);
  font-style: italic;
}

.gc-nota-veracidad {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(115,102,86,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  margin: var(--sp-3) 0;
}
.gc-nota-veracidad svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--muted);
}
.gc-nota-veracidad p {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════
   SALA DE ENCUENTRO (s-grupo) — rediseño 2026-07-13
══════════════════════════════════════════════════════ */
.grupo-sala-titulo { text-align: center; margin: 0 0 var(--sp-3); }

#s-grupo .grupo-cita { margin-top: 24px; }

#grupo-contenido { display: flow-root; }
#grupo-contenido > .grupo-codigo-card { margin-top: 24px; }

/* Tarjeta compacta de código/estado — mismo patrón navy que .momento del home */
.grupo-codigo-card {
  background: var(--navy);
  border-radius: 14px;
  padding: var(--sp-3);
  margin-bottom: var(--section-gap);
}
.grupo-codigo-texto { margin: 0; line-height: 1.5; }
.grupo-codigo-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.grupo-codigo-valor {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.70);
  margin: 0 8px;
}
.grupo-codigo-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-right: 12px;
  color: rgba(255,255,255,0.50);
  cursor: pointer;
  vertical-align: middle;
  transition: color 0.15s;
}
.grupo-codigo-toggle:hover { color: rgba(255,255,255,0.85); }
.grupo-codigo-copiar {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: opacity 0.15s;
}
.grupo-codigo-copiar:hover { opacity: 0.75; }
.grupo-codigo-estado-label { color: rgba(255,255,255,0.70); }
.grupo-codigo-estado-valor { color: var(--gold); font-weight: 500; }

.grupo-herr-wrap { margin-top: var(--section-gap); }
.grupo-herr-titulo { text-align: center; }
.grupo-herr-titulo.accesos-label { opacity: 1; animation: none; padding: 0; }
.grupo-herr-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin: var(--sp-2) 0 0;
}
.grupo-herramientas { display: flex; flex-direction: column; margin-top: var(--section-gap); }
.grupo-herr-cierre {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gold);
  text-align: center;
  margin-top: var(--section-gap);
}

/* ════════════════════════════════════════════════════════
   ÍCONO "MANO APUNTANDO" — CTAs de aceptar invitación
   Excepción intencional al patrón stroke-only del resto de íconos
   inline (ver GUIA_DE_ESTILO.md sección 4): fa-hand-point-right de
   Font Awesome, path real reescalado de 512×512 a 24×24 vía
   <g transform>. Único caso donde se necesita una silueta
   reconocible como "mano", no un ícono decorativo simple.
════════════════════════════════════════════════════════ */
.cta-icono-mano { flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cta-icono-mano { animation: cta-mano-pulso 2.2s ease-in-out infinite; }
}
@keyframes cta-mano-pulso {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.75; }
}

/* .grupo-btn-aceptar — no tenía ninguna regla propia (heredaba estilo nativo
   del navegador: gris, borde 3D, Arial). Patrón bordeado estándar, sección 4
   de GUIA_DE_ESTILO.md (.reg-btn) — mismo fondo blanco de .grupo-ej-card, sin tocar */
.grupo-btn-aceptar {
  border: 2px solid rgba(115, 102, 86, 0.50);
  background: transparent;
  color: var(--gold);
  border-radius: 0;
  height: 40px;
  font-size: 12px;
  font-family: var(--sans);
  cursor: pointer;
  margin-top: var(--sp-2);
}
.grupo-btn-aceptar:hover {
  background: rgba(208,138,0,0.06);
  border-color: var(--gold);
}
.grupo-btn-aceptar--invitacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gp-cita {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  border-left: 2px solid rgba(255,255,255,0.12);
  padding-left: 12px;
  margin-top: var(--sp-2);
}

/* Cita como titular inspirador */
.gp-cita-titular {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
}

/* ════════════════════════════════════════════════════════
   PANTALLAS: PIN (s-crear-pin, s-pin)
════════════════════════════════════════════════════════ */

.pin-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x) var(--sp-6);
  gap: var(--sp-3);
}

.pin-saludo {
  font-size: 13px;
  color: rgba(255,255,255,0.40);
  margin: 0;
  letter-spacing: 0.5px;
}

.pin-titulo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--cream);
  margin: 0;
  text-align: center;
}

.pin-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin: 0;
  text-align: center;
  line-height: 1.6;
  max-width: 260px;
}

/* Puntos indicadores */
.pin-puntos {
  display: flex;
  gap: 16px;
  margin: var(--sp-2) 0;
}
.pin-puntos span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.pin-puntos span.activo {
  background: var(--gold);
  border-color: var(--gold);
}

/* Error */
.pin-error {
  font-size: 13px;
  color: #e05555;
  margin: 0;
  text-align: center;
}

/* Teclado numérico */
.pin-teclado {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 14px;
  margin-top: var(--sp-2);
}

.pin-key {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.07);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-key:active {
  background: rgba(255,255,255,0.14);
  transform: scale(0.93);
}
.pin-key--del {
  font-size: 18px;
  background: transparent;
  color: rgba(255,255,255,0.40);
}
.pin-key--del:active {
  background: transparent;
  color: var(--cream);
}

/* ════════════════════════════════════════════════════════
   PIN EN FORMULARIO DE REGISTRO
════════════════════════════════════════════════════════ */

/* Fila puntos + borrar */
.reg-pin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}

/* Puntos indicadores */
.pin-display {
  display: flex;
  gap: 12px;
}
.pin-display span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(115,102,86,0.30);
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.pin-display span.activo {
  background: var(--gold);
  border-color: var(--gold);
}

/* Botón borrar junto a puntos */
.reg-pin-del {
  background: transparent;
  border: none;
  color: rgba(115,102,86,0.45);
  font-size: 17px;
  cursor: pointer;
  padding: 4px 0 4px 8px;
  -webkit-tap-highlight-color: transparent;
}
.reg-pin-del:active { color: var(--gold); }

/* Teclado 2 filas × 5 dígitos, ancho completo */
.reg-pin-teclado {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}
.reg-pin-key {
  height: 44px;
  background: rgba(115,102,86,0.07);
  color: var(--brown);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  transition: background 0.12s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
}
.reg-pin-key:active {
  background: rgba(208,138,0,0.15);
  transform: scale(0.95);
}

/* ════════════════════════════════════════════
   NAV PILL — menú flotante principal
════════════════════════════════════════════ */
.nav-pill {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  height: 56px;
  background: rgba(12, 27, 53, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 32px;
  border: 0.5px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.nav-pill.visible { display: flex; }

.nav-pill-item {
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.30);
  transition: color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.nav-pill-item:active { opacity: 0.70; }
.nav-pill-item.active {
  color: var(--gold);
  background: rgba(208, 138, 0, 0.15);
}

/* Espacio inferior para que el último contenido no quede detrás del pill */
.home-scroll    { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.guia-chat-area { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
