@font-face { font-family: 'Inter V'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Montserrat V'; src: url('/fonts/montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Viajero Consciente · paleta: noche azul profunda, blanco roto y un azul sereno usado con medida */
:root {
  --bg: #F4F2EE; --surface: #FFFFFF; --surface2: #FAF8F5; --ink: #141A2A; --muted: #5E6678; --line: #E3DFD7;
  --accent: #3552B5; --accent-ink: #FFFFFF; --accent-soft: #E7EBF8; --terra: #B86E4B; --gold: #A98317;
  --ok: #3F7D58; --ok-soft: #E2F0E6; --warn: #9C6B12; --warn-soft: #F5EAD3; --bad: #A44A3F; --bad-soft: #F5E1DD;
  --glow: rgba(53,82,181,.18);
  --radius: 18px; --shadow: 0 1px 1px rgba(20,26,42,.04), 0 8px 24px rgba(20,26,42,.06);
  --display: 'Montserrat V', 'Montserrat', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Inter V', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--sans);
  --tabs-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme=dark], :root:not([data-theme]) {
  --bg: #0B0D12; --surface: #141927; --surface2: #10141F; --ink: #EDEDED; --muted: #8C94A7; --line: rgba(237,237,237,.09);
  --accent: #8AA2F2; --accent-ink: #0B0D12; --accent-soft: rgba(138,162,242,.13); --terra: #E39A7A; --gold: #D9B44A;
  --ok: #82C9A0; --ok-soft: rgba(130,201,160,.13); --warn: #E3B562; --warn-soft: rgba(227,181,98,.13); --bad: #E68C82; --bad-soft: rgba(230,140,130,.13);
  --glow: rgba(138,162,242,.22);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
body { min-height: 100dvh; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
textarea, input { font: inherit; color: var(--ink); }
[hidden] { display: none !important; }
#app { max-width: 760px; margin: 0 auto; min-height: 100dvh; }
#view { padding: 0 16px calc(var(--tabs-h) + var(--safe-b) + 20px); }

/* ---------- encabezados ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 10px;
  display: flex; align-items: center; gap: 10px; }
.top h1 { font: 600 26px/1.15 var(--serif); margin: 0; flex: 1; letter-spacing: -.01em; }
.top .sub { color: var(--muted); font-size: 13px; }
.back { border: 0; background: var(--surface); width: 38px; height: 38px; border-radius: 50%; box-shadow: var(--shadow); display: grid; place-items: center; }
.back svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
h2 { font: 600 19px/1.25 var(--serif); margin: 26px 0 10px; }
h3 { font: 600 16px/1.3 var(--sans); margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- pestañas ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  display: flex; justify-content: center; }
.tabs a { flex: 1; max-width: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tabs a.on { color: var(--accent); }
.tabs a.on svg { stroke-width: 2.1; }

/* ---------- tarjetas y botones ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 0 0 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.btn { border: 0; border-radius: 999px; padding: 11px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn.sec { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); padding: 8px 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.btnchip { cursor: pointer; }
.star { color: var(--gold); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .8s linear infinite; display: inline-block; }
@keyframes gira { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; transition: .25s; z-index: 50; max-width: 90vw; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ---------- login ---------- */
.login { min-height: 92dvh; display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 360px; margin: 0 auto; }
.login .logo { width: 64px; height: 64px; }
.login h1 { font: 600 30px/1.15 var(--serif); margin: 0; }
.field { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px 14px; outline: none; }
.field:focus { border-color: var(--accent); }
textarea.field { resize: vertical; min-height: 80px; }

/* ---------- sesión (chat) ---------- */
.chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 190px; }
.sep { text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0 6px; display: flex; align-items: center; gap: 10px; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.guia { align-self: flex-start; background: var(--surface); box-shadow: var(--shadow); border-bottom-left-radius: 6px; font-family: var(--serif); font-size: 16.5px; }
.msg.usuario { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.usuario.reflexion { background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.msg .hora { display: block; font: 11px var(--sans); opacity: .6; margin-top: 4px; }
.msg img { max-width: 100%; border-radius: 12px; display: block; margin-bottom: 6px; }
.msg audio { width: 240px; max-width: 100%; height: 36px; display: block; margin-bottom: 4px; }
.msg .tono { font-size: 12px; opacity: .75; margin-top: 4px; font-style: italic; }
.sug { align-self: flex-start; display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border-radius: 16px; padding: 10px 14px; max-width: 86%; color: var(--ink); }
.sug .play { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.sug .play svg { width: 16px; height: 16px; fill: currentColor; }
.escribiendo { align-self: flex-start; background: var(--surface); box-shadow: var(--shadow); border-radius: 18px; padding: 12px 16px; display: flex; gap: 5px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: punto 1.2s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.composer { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + var(--safe-b)); z-index: 15; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 14px 12px 10px; }
.composer .inner { max-width: 760px; margin: 0 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.bar { display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: 6px; border: 1px solid var(--line); }
.bar textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; max-height: 140px; padding: 9px 6px; line-height: 1.4; }
.ibtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); flex: none; }
.ibtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ibtn.main { background: var(--accent); color: var(--accent-ink); }
.ibtn.rec { background: var(--bad); color: #fff; animation: late 1.4s infinite; }
@keyframes late { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--bad) 20%, transparent); } }
.grabando { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--bad); font-weight: 600; font-variant-numeric: tabular-nums; }
.grabando .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: late 1.4s infinite; }
.adjunto { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 10px 8px; color: var(--muted); }

/* ---------- prácticas ---------- */
.seg { display: flex; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); margin: 4px 0 16px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px; font-weight: 600; color: var(--muted); font-size: 14px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.mod { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.mod > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.mod > summary::-webkit-details-marker { display: none; }
.mnum { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--mod, var(--accent)) 16%, var(--surface)); color: var(--mod, var(--accent)); display: grid; place-items: center; font: 700 14px var(--sans); flex: none; }
.mod .prog { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.mod .prog i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.item .pbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); color: var(--accent); flex: none; }
.item .pbtn svg { width: 14px; height: 14px; fill: currentColor; }
.item.hecho .pbtn { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.item .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.item .m { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- reproductor ---------- */
.player { text-align: center; padding: 26px 18px 20px; }
.player .modlab { color: var(--mod, var(--accent)); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.player h1 { font: 600 27px/1.2 var(--serif); margin: 8px 0 6px; }
.disco { width: 168px; height: 168px; margin: 22px auto 18px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 70%); }
.disco svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); pointer-events: none; }
.disco .bigplay { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.disco .bigplay svg { width: 34px; height: 34px; fill: currentColor; }
.disco.sonando { animation: respira 8s ease-in-out infinite; }
@keyframes respira { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.045); } }
.seek { width: 100%; accent-color: var(--accent); margin: 6px 0 2px; }
.tiempos { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctrls { display: flex; justify-content: center; gap: 22px; margin-top: 10px; }
.ctrls button { border: 0; background: var(--surface2); width: 48px; height: 48px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--muted); }
.escala { display: flex; gap: 4px; justify-content: space-between; margin: 8px 0 2px; }
.escala button { flex: 1; aspect-ratio: 1; max-width: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; padding: 0; }
.escala button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.escala-lab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.guion { white-space: pre-wrap; font: 15.5px/1.65 var(--serif); color: var(--ink); max-height: 55vh; overflow: auto; padding-right: 6px; }
details.plain > summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; padding: 4px 0; }
details.plain > summary::-webkit-details-marker { display: none; }
.cierre { font: italic 16px/1.55 var(--serif); color: var(--muted); border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; margin: 6px 0 14px; }
.q { margin-bottom: 14px; }
.q label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.q textarea { min-height: 64px; }
.respuesta-guia { font: 16.5px/1.6 var(--serif); white-space: pre-wrap; }
.voz { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 14px; margin-bottom: 14px; }

/* ---------- mapa ---------- */
.medidor { display: flex; align-items: center; gap: 16px; }
.anillo { width: 74px; height: 74px; flex: none; position: relative; }
.anillo svg { transform: rotate(-90deg); }
.anillo b { position: absolute; inset: 0; display: grid; place-items: center; font: 650 18px var(--display); }
.sec-mapa h3 { font: 600 17px var(--serif); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.campo { padding: 9px 0; border-top: 1px solid var(--line); }
.campo:first-of-type { border-top: 0; }
.campo .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.campo .val { margin-top: 2px; white-space: pre-wrap; cursor: pointer; border-radius: 8px; }
.campo .val.vacio { color: var(--muted); font-style: italic; }
.campo .val:hover { background: var(--surface2); }
.editor { margin-top: 6px; }
.editor .row { margin-top: 8px; justify-content: flex-end; }
.lista { list-style: none; margin: 6px 0 0; padding: 0; }
.lista li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--line); }
.lista li:first-child { border-top: 0; }
.lista .txt { flex: 1; }
.lista .x { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px; }
.add { display: flex; gap: 8px; margin-top: 8px; }
.add input { flex: 1; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline li.manual::before { background: var(--terra); }

/* ---------- caso ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; text-align: center; }
.stat b { display: block; font: 700 24px var(--serif); }
.stat span { font-size: 12px; color: var(--muted); }
.alta { display: flex; gap: 18px; align-items: center; }
.alta .anillo { width: 96px; height: 96px; }
.alta .anillo b { font-size: 24px; }
.ind { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.ind .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line); }
.ind .dot.cumplido { background: var(--ok); } .ind .dot.en_proceso { background: var(--warn); } .ind .dot.pendiente { background: var(--bad); }
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.modt { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; }
.modt .n { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.modt .nm { font-size: 13.5px; font-weight: 600; line-height: 1.25; margin: 2px 0 6px; min-height: 34px; }
.modt .prog { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.modt .prog i { display: block; height: 100%; background: var(--accent); }
.modt .mm { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.grafico svg { width: 100%; height: auto; display: block; }
.leyenda { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.texto-largo { white-space: pre-wrap; font: 15.5px/1.6 var(--serif); }
.refl summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.refl summary::-webkit-details-marker { display: none; }
.refl .cuerpo { padding: 0 0 12px; font-size: 14.5px; }
.refl .cuerpo dt { font-weight: 600; margin-top: 6px; }
.refl .cuerpo dd { margin: 0 0 0 0; white-space: pre-wrap; }
@media (min-width: 700px) { .msg { max-width: 75%; } }

/* ---------- cuaderno ---------- */
.tabs a span { font-size: 11px; }
.prog-doc { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 6px 0 2px; }
.prog-doc i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.doc-campo { padding: 12px 0; border-top: 1px solid var(--line); }
.doc-campo:first-child { border-top: 0; }
.doc-campo > label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.doc-campo .ayuda { font-size: 12.5px; color: var(--muted); margin: -2px 0 8px; }
.doc-campo .field { font-family: var(--serif); font-size: 15.5px; }
.fila-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface2); }
.fila-card > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.fila-card > summary::-webkit-details-marker { display: none; }
.fila-card .grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
@media (min-width: 560px) { .fila-card .grid { grid-template-columns: 1fr 1fr; } }
.fila-card .grid label { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 3px; }
.fila-card .field { padding: 9px 11px; font-size: 14.5px; }
.fotos { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.foto { position: relative; width: 120px; }
.foto img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.foto .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; }
.foto .d { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.3; max-height: 44px; overflow: hidden; }
.escala-item { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.escala-item select { width: 64px; }
.soltando { animation: soltar 1.4s ease-in forwards; }
@keyframes soltar { 40% { filter: blur(1px); opacity: .7; transform: translateY(-4px) rotate(-1deg); } 100% { filter: blur(6px); opacity: 0; transform: translateY(-30px) scale(.9); } }
.ej-intro ol { margin: 6px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.ej-intro ol li { margin-bottom: 4px; }
.modo-ico { font-size: 12px; }
.hoja { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hoja .caja { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; white-space: pre-wrap; font-family: var(--serif); }
.hoja .caja.ancha { grid-column: 1 / -1; }
.hoja .caja h4 { margin: 0 0 6px; font: 700 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hoja .caja .lab { font: 600 11.5px var(--sans); color: var(--muted); }
@media (max-width: 520px) { .hoja { grid-template-columns: 1fr; } }

/* pausas de la guía y material de apoyo */
.pausas-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.pausas-bar #lpausas { flex-basis: 100%; text-align: center; }
.pausa { margin-top: 16px; text-align: left; background: var(--accent-soft); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.pausa-tit { font-weight: 700; color: var(--accent); }
.apoyo { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.apoyo audio { width: 100%; }
.video { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.apoyo-cfg { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.apoyo-cfg:first-of-type { border-top: 0; padding-top: 0; }
.apoyo-cfg .fila { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }


/* =================== v8 =================== */
.iconbtn { border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow); display: grid; place-items: center; flex: none; }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a { max-width: 150px; }
.segproceso { margin: 0 0 14px; }
.segproceso a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.segproceso a.on { background: var(--accent); color: var(--accent-ink); }

/* Hoy */
.hoy-top { align-items: flex-end; padding-bottom: 16px; }
.fecha-hoy { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.hoy-top h1 { font-size: 30px; }
.checkin h3 { font: 600 19px/1.25 var(--serif); margin-bottom: 12px; }
.animo { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.animo button { aspect-ratio: 1; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--ink); font-weight: 700; font-size: 13px; transition: transform .15s, background .15s; }
.animo button.on { background: var(--c); color: #fff; transform: scale(1.12); box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 45%, transparent); }
.emos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.emos .chip.on, .btnchip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.bola { width: 46px; height: 46px; border-radius: 50%; color: #fff; display: grid; place-items: center; font: 700 18px var(--sans); flex: none; }
.hoy-prac { display: flex; gap: 14px; align-items: center; color: var(--ink); position: relative; overflow: hidden; border-left: 5px solid var(--mod); }
.hoy-prac.grande { display: block; padding: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--mod) 14%, var(--surface)), var(--surface) 70%); }
.hoy-prac b { display: block; font: 600 19px/1.25 var(--serif); margin: 2px 0; }
.hp-lab { display: block; color: var(--mod, var(--accent)); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.hoy-paso .hp-lab { color: var(--accent); } .hoy-paso.vencido .hp-lab { color: var(--warn); }
.hp-mod { display: block; color: var(--muted); font-size: 13px; }
.hp-play { width: 50px; height: 50px; border-radius: 50%; background: var(--mod); display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px color-mix(in srgb, var(--mod) 40%, transparent); }
.hp-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.accion { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; color: var(--ink); display: grid; gap: 2px; }
.accion span { font-size: 22px; } .accion b { font-size: 15px; } .accion small { color: var(--muted); font-size: 12.5px; }
.accion.calma { background: linear-gradient(135deg, color-mix(in srgb, var(--terra) 20%, var(--surface)), var(--surface)); }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.dia i { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 12px; font-style: normal; font-weight: 700; font-size: 13px; color: #fff; }
.dia .puntos { display: block; height: 12px; line-height: 12px; color: var(--accent); letter-spacing: 1px; }
.dia small { color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 600; }
.dia.hoy small { color: var(--accent); }
.evo { width: 100%; height: auto; margin: 6px 0; }

/* hoja de ajustes */
.hoja-fondo { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0); transition: background .25s; display: flex; align-items: flex-end; justify-content: center; }
.hoja-fondo.on { background: rgba(0,0,0,.35); }
.hoja-panel { width: 100%; max-width: 760px; background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px 18px calc(24px + var(--safe-b)); transform: translateY(100%); transition: transform .25s ease; }
.hoja-fondo.on .hoja-panel { transform: none; }
.asa { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 6px; }

/* Estoy mal ahora */
.calma-full { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 40%, #1f3a3a, #0b1214 70%); color: #EDE9E1; display: grid; place-items: center; padding: 24px; text-align: center; }
.calma-full h1 { font: 600 28px/1.25 var(--serif); margin: 0 0 12px; }
.calma-full p { color: rgba(237,233,225,.8); max-width: 420px; margin: 0 auto 22px; }
.calma-full .cerrar { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 16px; background: rgba(255,255,255,.08); color: #EDE9E1; box-shadow: none; }
.calma-intro, .calma-fin { max-width: 440px; }
.calma-fin .animo button { background: rgba(255,255,255,.08); color: #EDE9E1; }
.calma-fin .animo button.on { background: var(--c); }
.calma-fin .escala-lab { color: rgba(237,233,225,.6); }
.respira { position: relative; width: min(78vw, 340px); aspect-ratio: 1; display: grid; place-items: center; }
.circulo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(150,220,210,.85), rgba(70,140,135,.55) 60%, rgba(40,90,90,.15)); box-shadow: 0 0 80px rgba(120,200,190,.35); transform: scale(.55); will-change: transform; }
.anillo-resp { position: absolute; inset: 0; width: 100%; height: 100%; }
.resp-txt { position: relative; font: 600 24px var(--serif); letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.resp-sub { position: absolute; bottom: -54px; left: 0; right: 0; color: rgba(237,233,225,.7); font-size: 15px; }

/* modo meditación */
.medcapa { position: fixed; inset: 0; z-index: 70; background: #04070a; color: #cfd6d4; display: grid; place-items: center; cursor: pointer; }
.medluz { width: 46vmin; height: 46vmin; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--mod) 70%, #fff) 0%, color-mix(in srgb, var(--mod) 55%, transparent) 35%, transparent 70%);
  opacity: .55; animation: respirar 10s ease-in-out infinite; filter: blur(2px); }
@keyframes respirar { 0%, 100% { transform: scale(.7); opacity: .35; } 40% { transform: scale(1.08); opacity: .7; } }
.medinfo, .medctl, .medsalir, .medhint { position: absolute; transition: opacity .5s; opacity: 0; }
.medcapa.ver .medinfo, .medcapa.ver .medctl, .medcapa.ver .medsalir { opacity: 1; }
.medinfo { top: calc(env(safe-area-inset-top, 0px) + 28px); left: 64px; right: 64px; text-align: center; }
.medtit { font: 600 18px var(--serif); } .medt { font-size: 13px; opacity: .7; margin-top: 4px; }
.medctl { bottom: calc(var(--safe-b) + 48px); display: flex; gap: 22px; align-items: center; }
.medctl button { border: 0; background: rgba(255,255,255,.08); color: #cfd6d4; width: 56px; height: 56px; border-radius: 50%; font-weight: 600; }
.medctl .pp { width: 72px; height: 72px; } .medctl svg { width: 26px; height: 26px; fill: currentColor; }
.medsalir { top: calc(env(safe-area-inset-top, 0px) + 18px); right: 18px; border: 0; background: rgba(255,255,255,.08); color: #cfd6d4; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.medsalir svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.medhint { bottom: calc(var(--safe-b) + 18px); font-size: 12px; opacity: .35; animation: desvanecer 4s forwards; }
@keyframes desvanecer { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .medluz { animation: none; } }

/* lienzo */
.lienzo-capa { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px calc(var(--safe-b) + 10px); }
.lz-top { display: flex; align-items: center; gap: 10px; }
.lz-guia { color: var(--muted); padding: 8px 2px; }
.lz-area { flex: 1; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #FFFDF8; touch-action: none; }
.lz-area canvas { display: block; touch-action: none; }
.lz-barra { display: flex; align-items: center; gap: 8px; padding-top: 10px; flex-wrap: wrap; }
.lz-col { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 1px var(--line); }
.lz-col.on { border-color: var(--surface); box-shadow: 0 0 0 2px var(--ink); }
.lz-btn { border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow); font-size: 18px; }
.lz-btn.on { background: var(--accent); color: var(--accent-ink); }

/* ritual */
.ritual-capa { position: fixed; inset: 0; z-index: 80; background: radial-gradient(circle at 50% 70%, #2a1810, #0a0605 70%); color: #f2e6d8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; overflow: hidden; transition: opacity 1.4s; }
.ritual-capa.fin { opacity: 0; }
.ritual-capa .cerrar { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 16px; background: rgba(255,255,255,.08); color: #f2e6d8; box-shadow: none; }
.ritual-txt { font: 600 19px/1.4 var(--serif); max-width: 420px; min-height: 54px; }
.papel { position: relative; width: min(84vw, 360px); max-height: 46vh; overflow: hidden; background: #f4ecdc; color: #3a2e22; border-radius: 4px; padding: 18px 20px; text-align: left; box-shadow: 0 10px 40px rgba(0,0,0,.5); transform: rotate(-1.5deg); }
.papel-tit { font: 600 15px var(--serif); margin-bottom: 8px; }
.papel ul { margin: 0; padding-left: 18px; font-size: 14px; }
.papel .llama { position: absolute; left: 0; right: 0; bottom: -100%; height: 100%; background: linear-gradient(to top, #ffb347, #ff6a00 30%, rgba(120,20,0,.9) 55%, transparent); filter: blur(6px); }
.papel.ardiendo { animation: arder 3.6s ease-in forwards; }
.papel.ardiendo .llama { animation: subir 3s ease-in forwards; }
@keyframes subir { to { bottom: 0; } }
@keyframes arder { 0% { filter: none; } 50% { filter: sepia(1) brightness(.7); } 100% { transform: rotate(-1.5deg) translateY(-30px) scale(.85); opacity: 0; filter: sepia(1) brightness(.2) blur(2px); } }
.brasa { position: absolute; bottom: 30%; width: 4px; height: 4px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 8px #ff7a00; opacity: 0; animation: brasa 2.4s ease-out forwards; }
@keyframes brasa { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--dx), -55vh); } }
.quemar { background: #c2561d; color: #fff; }

.paso-it { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.paso-it:first-of-type { border-top: 0; }
.paso-it .grow { display: grid; gap: 2px; }
.paso-it.vencido .muted { color: var(--warn); }
button.accion { border: 0; text-align: left; font: inherit; }
.sug .luego { margin-left: auto; flex: none; }

.inf-pasos { display: grid; gap: 4px; margin: 12px 0 8px; font-size: 14px; }
.inf-pasos div { display: flex; gap: 8px; color: var(--muted); } .inf-pasos div.ok { color: var(--ink); }
.inf-pasos span { width: 18px; text-align: center; font-weight: 700; } .inf-pasos .ok span { color: var(--ok); }
table.indic { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.indic th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 4px 6px; }
.indic td { padding: 7px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.indic td:nth-child(2), .indic td:nth-child(3), .indic th:nth-child(2), .indic th:nth-child(3) { white-space: nowrap; text-align: right; }
.flecha { font-size: 11px; } .flecha.bien { color: var(--ok); } .flecha.mal { color: var(--bad); }

/* =================== v10 · Viajero Consciente =================== */
body { background: var(--bg); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--tinte, var(--accent)) 16%, transparent), transparent 60%); transition: background .6s; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
/* tipografía: títulos en Montserrat, lectura en Inter */
.top h1, .login h1, .player h1, .hoy-top h1 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; }
.top h1 { font-size: 23px; }
h2 { font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
h3, .checkin h3, .sec-mapa h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; }
.stat b, .hoy-prac b, .calma-full h1, .resp-txt, .medtit, .ritual-txt, .papel-tit { font-family: var(--display); }
.fecha-hoy, .hp-lab, .player .modlab, .eyebrow { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.msg.guia { font-family: var(--sans); font-size: 15.5px; line-height: 1.6; }
.muted { color: var(--muted); }
/* superficies: hairline + luz superior, sin sombras pesadas */
.card { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 20px; }
:root[data-theme=dark] .card, :root[data-theme=dark] .accion, :root[data-theme=dark] .stat {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 40%), var(--surface); }
.card.flat { box-shadow: none; background: transparent; }
.btn { font-family: var(--display); font-weight: 600; letter-spacing: .01em; transition: transform .12s, filter .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn:not(.sec):not(.ghost) { box-shadow: 0 6px 18px var(--glow); }
.chip { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.tabs { background: color-mix(in srgb, var(--bg) 82%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.tabs a { font-family: var(--display); font-weight: 600; font-size: 10.5px; letter-spacing: .03em; transition: color .2s; }
.tabs a.on svg { filter: drop-shadow(0 0 8px var(--glow)); }
.accion { border: 1px solid var(--line); transition: transform .15s, border-color .2s; }
.accion:active { transform: scale(.98); }
.accion span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; margin-bottom: 6px; }
.accion.calma span { background: color-mix(in srgb, var(--terra) 16%, transparent); color: var(--terra); }
.accion b { font-family: var(--display); font-weight: 600; font-size: 14.5px; }
.field { border-radius: 14px; }
/* entrada suave de cada pantalla */
#view.entrar > * { animation: entrar .34s cubic-bezier(.2,.7,.2,1) both; }
#view.entrar > *:nth-child(2) { animation-delay: .03s; } #view.entrar > *:nth-child(3) { animation-delay: .06s; } #view.entrar > *:nth-child(4) { animation-delay: .09s; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#hoy > * { animation: entrar .4s cubic-bezier(.2,.7,.2,1) both; }
#hoy > *:nth-child(2) { animation-delay: .05s; } #hoy > *:nth-child(3) { animation-delay: .1s; } #hoy > *:nth-child(4) { animation-delay: .15s; } #hoy > *:nth-child(n+5) { animation-delay: .2s; }

/* la luz de Hoy: la firma visual (solo transform y opacity: no gasta batería) */
.hoy-top { position: relative; overflow: visible; padding-top: calc(env(safe-area-inset-top, 0px) + 22px); padding-bottom: 22px; }
.orbe { position: absolute; right: -10px; top: calc(env(safe-area-inset-top, 0px) - 6px); width: 150px; height: 150px; pointer-events: none; z-index: -1; }
.orbe i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--orbe, var(--accent)) 85%, #fff) 0%, color-mix(in srgb, var(--orbe, var(--accent)) 45%, transparent) 30%, transparent 68%);
  animation: latir 9s ease-in-out infinite; }
.orbe i:nth-child(2) { inset: 34%; background: radial-gradient(circle, #fff, color-mix(in srgb, var(--orbe, var(--accent)) 60%, transparent) 55%, transparent 72%); animation-duration: 9s; animation-delay: -1.5s; opacity: .9; }
@keyframes latir { 0%, 100% { transform: scale(.82); opacity: .55; } 45% { transform: scale(1.05); opacity: .95; } }
.hoy-top h1 { font-size: 27px; max-width: 78%; }
.hoy-top .iconbtn { position: relative; z-index: 1; }

/* festejo al completar */
.festejo { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center; }
.festejo i { position: absolute; width: 40vmin; height: 40vmin; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: anillo 1.2s ease-out forwards; }
.festejo i:nth-child(2) { animation-delay: .15s; } .festejo i:nth-child(3) { animation-delay: .3s; }
.festejo b { position: absolute; width: 30vmin; height: 30vmin; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, #fff), transparent 70%); opacity: 0; animation: brillo 1.3s ease-out forwards; }
.festejo span { position: relative; font-family: var(--display); font-weight: 650; font-size: 20px; color: var(--ink); opacity: 0; animation: texto 1.8s ease-out forwards; text-shadow: 0 2px 20px var(--bg); }
@keyframes anillo { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes brillo { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes texto { 0%, 15% { opacity: 0; transform: translateY(6px); } 35%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* sin efectos: todo quieto y directo */
.sin-efectos *, .sin-efectos *::before, .sin-efectos *::after { animation: none !important; transition: none !important; }
.sin-efectos .festejo, .sin-efectos .orbe { display: none; }
.sin-efectos body::before, :root.sin-efectos body::before { background: none; }
.ajuste { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ajuste:first-of-type { border-top: 0; }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(18px); }
/* Tu viaje */
.segproceso a { font-family: var(--display); font-size: 13px; }
.viaje-intro p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.viaje { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.viaje::before { content: ''; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--line), var(--line)); }
.estacion { position: relative; margin: 0 0 8px; }
.est-cab { width: 100%; border: 0; background: transparent; display: flex; gap: 14px; align-items: center; padding: 8px 4px 8px 6px; text-align: left; border-radius: 16px; }
.estacion.actual > .est-cab { background: color-mix(in srgb, var(--mod) 12%, transparent); }
.nodo { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--bg); border-radius: 50%; }
.nodo svg { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.nodo .aro { fill: var(--surface); stroke: var(--line); stroke-width: 2.5; }
.nodo .aro-p { fill: none; stroke: var(--mod); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dasharray .6s; }
.nodo b { position: relative; font-family: var(--display); font-weight: 650; font-size: 13px; color: var(--muted); }
.estacion.empezada .nodo b, .estacion.hecha .nodo b, .estacion.actual .nodo b { color: var(--mod); }
.estacion.actual .nodo { box-shadow: 0 0 0 5px color-mix(in srgb, var(--mod) 20%, transparent), 0 0 22px color-mix(in srgb, var(--mod) 45%, transparent); }
.est-nom { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; }
.est-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.aqui { color: var(--mod); font-weight: 600; }
.chev { color: var(--muted); transition: transform .2s; } .est-cab[aria-expanded=true] .chev { transform: rotate(180deg); }
.est-cuerpo { margin: 4px 0 14px 52px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.est-bloque { margin-bottom: 14px; } .est-bloque p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.est-bloque .eyebrow { color: var(--mod); }
.est-bloque.meta { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--mod) 10%, transparent); }
.pasos-tec { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; } .pasos-tec li { margin-bottom: 4px; }
.est-item { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); }
.est-item b { display: block; font-weight: 600; font-size: 14px; } .est-item .small { display: block; }
.est-check { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); color: var(--muted); flex: none; }
.est-item.ok .est-check { background: color-mix(in srgb, var(--mod) 16%, transparent); color: var(--mod); }
.lecturas { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.est-guia { margin-top: 6px; }
/* v11: ruta plegable en Tu viaje */
.viaje-ruta { margin-top: 10px; }
.viaje-ruta summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; }
.viaje-ruta summary::-webkit-details-marker { display: none; }
.viaje-ruta summary::after { content: ' ▾'; }
.viaje-ruta[open] summary::after { content: ' ▴'; }
.viaje-ruta p { margin: 8px 0 0; line-height: 1.55; }
/* v11: en celular la ficha de la estación usa todo el ancho y el texto respira */
@media (max-width: 520px) {
  .est-cuerpo { margin-left: 0; padding: 14px; }
  .est-item { align-items: flex-start; }
  .est-item .grow { flex: 1; min-width: 0; }
  .est-item .chip { font-size: 11px; padding: 3px 8px; margin-top: 2px; white-space: nowrap; }
}

/* ================= v12 · portada (entrar / crear cuenta) =================
   Un mapa topográfico con un sendero que sube a la cumbre: la idea de la app (el Mapa Emocional como ruta).
   Es lo único llamativo; todo lo demás es sobrio. */
:root.en-portada, :root.en-portada body { background: #101726; }
:root.en-portada #app { max-width: none; }
:root.en-portada #view { padding: 0; }
.portada { --p-ink: #101726; --p-panel: #141C2E; --p-txt: #ECEFF6; --p-mut: #9AA4BA; --p-oro: #E3B565; --p-linea: rgba(159,178,238,.22);
  position: relative; min-height: 100dvh; color: var(--p-txt); background: var(--p-ink); display: flex; flex-direction: column; overflow: hidden; }
.portada-arte { position: relative; height: 38dvh; min-height: 220px; }
.portada-arte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 42%; }
.portada-arte::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, rgba(16,23,38,0), var(--p-ink)); }
.portada-panel { position: relative; flex: 1; padding: 0 24px calc(28px + var(--safe-b)); max-width: 440px; width: 100%; margin: 0 auto; }
.portada-marca { display: flex; align-items: center; gap: 12px; margin: -30px 0 26px; font: 600 17px/1 var(--display); letter-spacing: -.01em; }
.portada-marca img { width: 44px; height: 44px; }
.portada h1 { font: 600 28px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 8px; color: var(--p-txt); }
.portada-lema { color: var(--p-mut); margin: 0 0 22px; line-height: 1.5; max-width: 34ch; }
.portada-form { display: flex; flex-direction: column; }
.portada .lbl { font-size: 13.5px; font-weight: 550; color: var(--p-txt); margin: 0 0 6px; }
.portada .field { background: rgba(255,255,255,.04); border: 1px solid var(--p-linea); color: var(--p-txt); border-radius: 12px; padding: 13px 14px; margin: 0 0 16px; font-size: 16px; width: 100%; }
.portada .field::placeholder { color: #6E788F; }
.portada .field:focus { outline: none; border-color: var(--p-oro); box-shadow: 0 0 0 3px rgba(227,181,101,.18); }
.portada textarea.field { resize: vertical; min-height: 84px; line-height: 1.45; }
.portada input[type=date].field { color-scheme: dark; }
.campo-clave { position: relative; }
.campo-clave .field { padding-right: 48px; }
.ver-clave { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; background: none; color: var(--p-mut); border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.ver-clave svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ver-clave.on { color: var(--p-oro); }
.btn.portada-btn { background: var(--p-oro); color: #1A1406; border: 0; font-weight: 650; padding: 14px 18px; border-radius: 12px; margin-top: 6px; font-size: 16px; }
.btn.portada-btn:hover { filter: brightness(1.05); }
.btn.portada-btn:focus-visible, .portada .enlace:focus-visible, .ver-clave:focus-visible { outline: 2px solid var(--p-txt); outline-offset: 2px; }
.btn.portada-btn:disabled { opacity: .7; }
.portada-error { color: #F2A38F; min-height: 1.3em; margin: 10px 0 2px; font-size: 14px; }
.portada .enlace { background: none; border: 0; color: var(--p-mut); text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; align-self: flex-start; cursor: pointer; font: inherit; font-size: 14.5px; }
.portada .enlace:hover { color: var(--p-txt); }
.pasos-reg { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; }
.pasos-reg span { width: 26px; height: 3px; border-radius: 2px; background: var(--p-linea); }
.pasos-reg span.on { background: var(--p-oro); }
.pasos-reg small { margin-left: 8px; color: var(--p-mut); font-size: 12.5px; }
@media (min-width: 900px) {
  .portada { flex-direction: row; align-items: stretch; }
  .portada-arte { position: absolute; inset: 0; height: auto; }
  .portada-arte img { object-position: 60% 45%; }
  .portada-arte::after { inset: 0 auto 0 0; width: 58%; height: auto; background: linear-gradient(to right, var(--p-ink) 55%, rgba(16,23,38,0)); }
  .portada-panel { flex: 0 0 auto; width: 480px; max-width: none; margin: 0; padding: 108px 64px 44px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
  .portada-marca { position: absolute; top: 38px; left: 64px; margin: 0; z-index: 10; }
}
@media (prefers-reduced-motion: no-preference) {
  .portada-arte img { animation: portada-in 1.4s ease-out both; }
  @keyframes portada-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
}

/* ================= v12 · sesiones como chats aparte ================= */
.ses-top { gap: 6px; }
.ses-top .ses-hist { padding-left: 8px; padding-right: 10px; gap: 6px; display: inline-flex; align-items: center; }
.ses-top .ses-hist svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ses-titulo { min-width: 0; }
.ses-titulo h1 { font-size: 20px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ses-titulo .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .ses-top .ses-hist span { display: none; } .ses-top .btn { padding-left: 9px; padding-right: 9px; } }
.msg-sistema { align-self: center; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--surface-2, rgba(127,127,127,.08)); border-radius: 999px; padding: 5px 12px; margin: 6px auto; max-width: 85%; }
.ses-fin { text-align: center; margin: 22px auto 8px; padding: 18px; border: 1px dashed var(--line); border-radius: 16px; max-width: 420px; }
.ses-fin p { margin: 0 0 12px; color: var(--muted); }
.ses-fin b { color: var(--text); }
.palabra-in { font: 600 22px var(--display); text-align: center; letter-spacing: -.01em; margin: 6px 0 14px; }
.buscar { margin: 4px 0 14px; }
.ses-mes { display: flex; align-items: center; gap: 10px; margin: 18px 2px 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ses-mes::after { content: ''; flex: 1; height: 1px; background: var(--line); order: 3; }
.ses-mes .muted { order: 2; font-weight: 400; }
.ses-grupo { display: flex; flex-direction: column; }
.ses-item { display: block; padding: 14px 12px; border-radius: 14px; color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.ses-item:hover { background: var(--surface); }
.ses-item.actual { border-left-color: var(--accent); background: var(--surface); }
.ses-fila { display: flex; gap: 12px; align-items: baseline; }
.ses-fila b { color: var(--accent); font-weight: 600; font-size: 15.5px; }
.ses-ext { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ses-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.chip.palabra { background: rgba(227,181,101,.14); color: #B8862E; border-color: transparent; font-weight: 600; }
:root[data-theme=dark] .chip.palabra { color: #E3B565; }
/* v12 · ajustes de celular */
.portada .btn.portada-btn { box-shadow: none; }
.portada-arte picture { position: absolute; inset: 0; }
.portada-arte picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.ses-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }
.ses-fila1 { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 220px; }
.ses-hist { flex: 0 0 auto; color: var(--text); }
.ses-acciones { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 520px) { .ses-acciones { width: 100%; justify-content: flex-end; } }
