/* El Camino del Trader: estilo común de plan. (mapa, llamada y oferta). */
:root {
  --sea: #0b1e2d; --sea-2: #0f2a3d; --sea-line: rgba(160, 200, 230, .07);
  --land: #d9c9a3; --land-2: #c4b186; --land-edge: #9c8a60;
  --ink: #eef3f7; --muted: #93a8b8; --panel: #0e2536; --panel-2: #12304a; --border: rgba(160, 200, 230, .16);
  --gold: #e8b34b; --gold-soft: rgba(232, 179, 75, .18); --route: rgba(238, 243, 247, .28);
  --teal: #4fc3b0; --teal-soft: rgba(79, 195, 176, .1); --red: #ef7b6c; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sea); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
[hidden] { display: none !important; }
b { font-weight: 650; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }
header.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  flex-wrap: wrap; padding-top: 1.4rem; padding-bottom: .8rem; }
.kicker { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
h1 { margin: .2rem 0 0; font-size: 2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-weight: 600; }
.lede { margin: .4rem 0 0; color: var(--muted); max-width: 60ch; }

/* Botones */
.btn { font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; border-radius: 999px;
  padding: .6rem 1.15rem; border: 1px solid var(--border); background: var(--panel); color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); color: #1b1407; border-color: var(--gold); }
.btn.teal { background: var(--teal); color: #06221e; border-color: var(--teal); }
.btn:disabled { opacity: .4; cursor: default; }
.controls { display: flex; gap: .5rem; align-items: center; }
.step-count { font-size: .8rem; color: var(--muted); min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }

/* Pasos de la llamada */
.steps { display: flex; gap: .3rem; flex-wrap: wrap; margin: 0 0 1rem; padding: 0; list-style: none; }
.steps button { font: inherit; font-size: .82rem; color: var(--muted); background: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: .35rem .8rem .35rem .4rem; display: inline-flex; align-items: center; gap: .45rem; }
.steps button span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700;
  border: 1.5px solid var(--route); }
.steps button.done span { border-color: var(--gold); color: var(--gold); }
.steps button.on { color: var(--ink); border-color: var(--border); background: var(--panel); }
.steps button.on span { background: var(--gold); border-color: var(--gold); color: #1b1407; }
.steps button:disabled { cursor: default; opacity: .5; }

/* Mapa */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; padding-bottom: 1rem; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }
.map-wrap { background: var(--sea-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
svg.map { display: block; width: 100%; height: auto; }
.seg { fill: none; stroke: var(--route); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; transition: stroke .5s, stroke-width .5s, opacity .5s; }
.seg.alt { stroke-dasharray: 10 8; }
.seg.on { stroke: var(--gold); stroke-width: 3.5; }
.seg.on.alt { stroke: var(--teal); }
.seg.off, .seg-label.off, .loop-ring.off, .loop-word.off { opacity: .12; }
.seg-label { font-size: 16px; fill: var(--muted); font-style: italic; transition: fill .5s, opacity .5s; }
.seg-label.on { fill: var(--ink); }
.stop { cursor: pointer; outline: none; transition: opacity .4s; }
.stop .halo { fill: var(--gold-soft); opacity: 0; transition: opacity .3s; }
.stop .dot { fill: var(--sea); stroke: var(--route); stroke-width: 2.5; transition: fill .3s, stroke .3s; }
.stop .num { font-size: 13px; font-weight: 700; fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
.stop .name { font-size: 23px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--sea-2); stroke-width: 5px; stroke-linejoin: round; }
.stop .sub { font-size: 14px; fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; paint-order: stroke; stroke: var(--sea-2); stroke-width: 4px; stroke-linejoin: round; }
.stop.land .name, .stop.land .sub { stroke: var(--land); }
.stop.land .name { fill: #2a2112; } .stop.land .sub { fill: #5e4f30; }
.stop.visited .dot { stroke: var(--gold); }
.stop.visited .num { fill: var(--gold); }
.stop.current .dot { fill: var(--gold); stroke: var(--gold); }
.stop.current .num { fill: #1b1407; }
.stop.current .halo { opacity: 1; animation: pulse 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.stop:hover .dot, .stop:focus-visible .dot { stroke: var(--gold); }
.stop.dim, .stop.off { opacity: .22; }
.stop.lit .dot { stroke: var(--teal); stroke-width: 4; }
.note-pin { opacity: 0; transition: opacity .3s; pointer-events: none; }
.note-pin circle { fill: var(--teal); }
.note-pin path { fill: none; stroke: #06221e; stroke-width: 2; stroke-linejoin: round; }
.stop.has-note .note-pin { opacity: 1; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.loop-ring { fill: none; stroke: var(--route); stroke-width: 2; stroke-dasharray: 3 6; transition: stroke .5s, opacity .5s; }
.loop-ring.on { stroke: var(--gold); }
.loop-word { font-size: 14px; fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; transition: fill .5s, opacity .5s; }
.loop-word.on { fill: var(--gold); }
.ship { transition: transform .9s cubic-bezier(.45, .05, .25, 1); }
@media (prefers-reduced-motion: reduce) { .stop.current .halo { animation: none; } .ship { transition: none; } }

/* Barra sobre el mapa: ruta elegida */
.map-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: rgba(14, 37, 54, .6); }
.map-bar .lab { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seg-ctl { display: inline-flex; background: var(--sea); border: 1px solid var(--border); border-radius: 999px; padding: .2rem; }
.seg-ctl button { font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: .35rem .8rem; border-radius: 999px; }
.seg-ctl button.on { background: var(--teal); color: #06221e; }

/* Panel lateral */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.4rem; align-self: start; }
@media (min-width: 981px) { .panel.sticky { position: sticky; top: 1rem; } }
.phase { margin: 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.panel h2 { margin: .25rem 0 .1rem; font-size: 1.6rem; line-height: 1.15; }
.panel .what { margin: 0 0 .9rem; color: var(--muted); font-size: .9rem; }
.panel p.body { margin: 0 0 1rem; }
ul.checks { list-style: none; margin: 0 0 1.2rem; padding: 0; }
ul.checks li { padding: .35rem 0 .35rem 1.5rem; position: relative; border-top: 1px solid var(--border); font-size: .92rem; }
ul.checks li::before { content: ""; position: absolute; left: .15rem; top: .8rem; width: .55rem; height: .55rem; border: 2px solid var(--gold); border-radius: 50%; }
.h3 { margin: 0 0 .55rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.svc-list { display: grid; gap: .45rem; }
.svc { display: grid; grid-template-columns: 30px 1fr; gap: .65rem; align-items: center; padding: .5rem .6rem; border-radius: 10px; border: 1px solid var(--border); }
.svc.new { border-color: var(--teal); background: var(--teal-soft); }
.svc .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(238, 243, 247, .06); }
.svc.new .ic { background: var(--teal); color: #06221e; }
.svc .ic svg { width: 16px; height: 16px; }
.svc b { display: block; font-size: .88rem; }
.svc span { display: block; font-size: .78rem; color: var(--muted); }
.svc .tag { font-style: normal; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-left: .35rem; font-weight: 700; }
.intro-list { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.intro-list li { margin-bottom: .35rem; }

/* Cuaderno de bitácora (notas por parada) */
.log { margin: 0 0 1.2rem; padding: .85rem .9rem; border-radius: 10px; background: var(--teal-soft); border: 1px solid rgba(79, 195, 176, .35); }
.log .h3 { color: var(--teal); display: flex; align-items: center; gap: .4rem; }
.log .h3 svg { width: 14px; height: 14px; }
.log textarea { width: 100%; min-height: 84px; resize: vertical; font: inherit; font-size: .95rem; color: var(--ink);
  background: rgba(11, 30, 45, .55); border: 1px solid var(--border); border-radius: 8px; padding: .55rem .65rem; }
.log textarea:focus { outline: none; border-color: var(--teal); }
.log p { margin: 0; white-space: pre-wrap; }

/* Tripulación */
.crew-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.crew-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.crew-top small { color: var(--muted); font-size: .78rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: .85rem; cursor: pointer;
  padding: .4rem .8rem .4rem .45rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); transition: all .35s; }
.chip .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(238, 243, 247, .06); }
.chip .ic svg { width: 13px; height: 13px; }
.chip.on { color: var(--ink); border-color: rgba(79, 195, 176, .5); }
.chip.on .ic { background: var(--teal); color: #06221e; }
.chip.focus { border-color: var(--teal); background: var(--teal-soft); }

/* Tarjetas de pantalla (datos, diagnóstico, coste, plan) */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-bottom: 1rem; }
.card h2 { margin: 0 0 .25rem; font-size: 1.55rem; }
.card .sub { margin: 0 0 1.3rem; color: var(--muted); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: block; }
.field > span { display: block; font-size: .8rem; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=url], .field textarea {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--sea); border: 1px solid var(--border);
  border-radius: 10px; padding: .7rem .85rem; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.big input { font-size: 1.35rem; font-family: "Iowan Old Style", Palatino, Georgia, serif; }
.actions { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.msg { font-size: .85rem; color: var(--red); margin: .8rem 0 0; }

/* Mandos */
.slider { display: block; margin-bottom: 1.25rem; }
.grid2 > .slider:last-child:nth-child(odd) { grid-column: 1 / -1; }
.slider .lab { display: flex; justify-content: space-between; align-items: baseline; gap: .9rem; margin-bottom: .45rem; }
.slider .lab .t { font-size: .95rem; }
.slider .lab .v { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); white-space: nowrap; }
.slider input { width: 100%; accent-color: var(--gold); cursor: pointer; }
.slider .hint { display: block; font-size: .76rem; color: var(--muted); margin-top: .3rem; }
.gauge { background: var(--sea); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.15rem; }
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.gauge-name { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gauge-score { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(238, 243, 247, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--teal); transition: width .3s; }
.bar i[data-level=medio] { background: var(--gold); } .bar i[data-level=alto] { background: var(--red); }
.gauge-score[data-level=medio] { color: var(--gold); } .gauge-score[data-level=alto] { color: var(--red); }
.gauge-read { margin: .7rem 0 0; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-top: 1rem; }
.stat { background: var(--sea); border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; }
.stat .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .n { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.stat .n.bad { color: var(--red); } .stat .n.ok { color: var(--teal); }
.stat .foot { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.note { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 3px solid var(--gold); background: rgba(232, 179, 75, .07); border-radius: 0 10px 10px 0; }

/* Conclusión del coste: titular */
.verdict { margin: 1.4rem 0 0; padding: 1.4rem 1.5rem; border-radius: 12px; background: rgba(232, 179, 75, .08);
  border: 1px solid rgba(232, 179, 75, .45); }
.verdict-t { margin: 0; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.2; font-weight: 600; color: var(--ink); }
.verdict-d { margin: .55rem 0 0; font-size: 1.02rem; color: var(--gold); }

/* Calculadora jugable en la página del plan */
.calc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.calc-fields { margin-bottom: .4rem; }
.calc-sub { font-size: 1.25rem; margin: 1.8rem 0 1rem; font-weight: 600; }

/* Tu plan: fases 1 → 2 → 3 */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; position: relative; }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } }
.ph { position: relative; background: linear-gradient(180deg, rgba(232, 179, 75, .08), var(--sea) 5.5rem); border: 1px solid var(--border);
  border-top: 3px solid var(--gold); border-radius: 14px; padding: 1.15rem 1.2rem 1.1rem; display: flex; flex-direction: column; }
.ph-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .35rem; }
.ph-head .n { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #1b1407; font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; flex: none; box-shadow: 0 0 0 6px var(--panel); position: relative; }
.ph-head .k { margin: 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ph-head h3 { margin: .1rem 0 0; font-size: 1.35rem; line-height: 1.15; font-weight: 600; }
.ph .stops { font-size: .78rem; color: var(--muted); margin: 0 0 .8rem calc(44px + .8rem); }
.ph ul { list-style: none; margin: 0; padding: .8rem 0 0; border-top: 1px solid var(--border); font-size: .9rem; flex: 1; }
.ph li { position: relative; padding-left: 1.2rem; margin-bottom: .55rem; }
.ph li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); }
.ph-svc { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.ph-svc .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.ph-svc .ic svg { width: 14px; height: 14px; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem;
  padding: 1.2rem 1.3rem; border-radius: 12px; border: 1px solid var(--gold); background: rgba(232, 179, 75, .06); }
.price .amt { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price .det { color: var(--muted); font-size: .9rem; }
.result { margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: 12px; border: 1px solid var(--teal); background: var(--teal-soft); }
.result .link { display: flex; gap: .5rem; margin: .6rem 0; }
.result .link input { flex: 1; font: inherit; color: var(--ink); background: var(--sea); border: 1px solid var(--border); border-radius: 10px; padding: .55rem .7rem; }

/* Panel del equipo (engranaje): solo en modo llamada */
.gear { position: fixed; left: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--panel); color: var(--muted); cursor: pointer; display: grid; place-items: center; opacity: .55; z-index: 20; }
.gear:hover { opacity: 1; }
.gear svg { width: 18px; height: 18px; }
.gear.warn::after { content: ""; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.drawer { position: fixed; left: 14px; bottom: 60px; width: min(360px, calc(100vw - 28px)); z-index: 21;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.drawer .field { margin-bottom: .7rem; }
.drawer .field input { font-size: .9rem; padding: .5rem .65rem; }
.drawer .who { font-size: .82rem; color: var(--muted); margin: 0 0 .8rem; }
.drawer .who a { color: var(--gold); }
.drawer .row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }

.contact { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.drawer .check { display: flex; align-items: center; gap: .5rem; font-size: .88rem; margin: .2rem 0 .6rem; cursor: pointer; }
.drawer .check input { accent-color: var(--teal); width: 16px; height: 16px; }
.drawer .check.disabled { opacity: .45; cursor: default; }
.pay { display: grid; gap: .8rem; margin-top: 1rem; }
.pay-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.pay-box { padding: 1rem 1.1rem; border-radius: 12px; background: var(--sea); border: 1px solid var(--border); font-size: .92rem; }
.pay-box dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: .6rem 0 0; }
.pay-box dt { color: var(--muted); } .pay-box dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-all; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* Bloques de dudas (camino-bloques.js) */
.bloque { scroll-margin-top: 1rem; }
.bloque h2 { font-size: 1.7rem; margin: .2rem 0 .3rem; }
.sub-h { font-size: 1.2rem; margin: 1.8rem 0 .9rem; font-weight: 600; }
/* Cómo avanzas: escalones con su llave */
.escalera { display: flex; align-items: stretch; gap: .5rem; margin-top: 1rem; }
.esc-paso { flex: 1.2; display: grid; gap: .25rem; align-content: start; text-align: center; padding: 1rem .8rem; border-radius: 14px;
  background: var(--sea); border: 1px solid var(--border); border-top: 3px solid var(--gold); }
.esc-paso .esc-i { font-size: 1.8rem; }
.esc-paso b { font-size: 1.05rem; } .esc-paso span:last-child { font-size: .8rem; color: var(--muted); }
.esc-llave { flex: 1; display: grid; gap: .3rem; align-content: center; justify-items: center; text-align: center; font-size: .82rem;
  color: var(--ink); padding: .4rem .3rem; position: relative; }
.esc-llave::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(232,179,75,.5); z-index: 0; }
.esc-llave > * { position: relative; z-index: 1; background: var(--panel); padding: .1rem .35rem; border-radius: 8px; }
.esc-lock { font-size: 1.2rem; }
@media (max-width: 980px) { .escalera { flex-direction: column; } .esc-llave::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed rgba(232,179,75,.5); } }
/* Por qué es distinto */
.versus { margin-top: 1rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.vs-row { display: grid; grid-template-columns: 1fr repeat(3, 118px); align-items: center; border-top: 1px solid var(--border); }
.versus-4 .vs-row { grid-template-columns: 1fr repeat(4, 112px); }
.vs-top { background: rgba(79,195,176,.07); } .vs-top > span:first-child { font-weight: 700; }
.vs-row:first-child { border-top: 0; }
.vs-row > span { padding: .7rem .9rem; }
.vs-row > span:not(:first-child) { text-align: center; font-weight: 800; font-size: 1.05rem; }
.vs-head > span { font-size: .78rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700 !important; }
.vs-us { background: rgba(232,179,75,.08); }
.vs-head .vs-us { color: var(--gold) !important; }
.si { color: var(--teal); } .no { color: var(--red); opacity: .8; }
@media (max-width: 700px) { .vs-row, .versus-4 .vs-row { grid-template-columns: 1fr repeat(var(--vs-n, 3), 50px); font-size: .82rem; } .versus-4 { --vs-n: 4; } .vs-row > span { padding: .6rem .4rem; } .vs-head > span { font-size: .56rem !important; letter-spacing: .02em; } }
/* Tu semana */
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; margin-top: 1rem; }
.dia { background: var(--sea); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .4rem; min-height: 150px; display: flex; flex-direction: column; gap: .3rem; align-items: stretch; }
.dia b { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .1em; }
.ev { font-style: normal; font-size: .72rem; font-weight: 700; padding: .3rem .35rem; border-radius: 8px; text-align: center; line-height: 1.2; }
.ev-diario { background: var(--teal-soft); color: var(--teal); }
.ev-rev { background: rgba(232,179,75,.16); color: var(--gold); }
.ev-live { background: rgba(239,123,108,.16); color: var(--red); }
.ev-op { background: rgba(120,160,255,.16); color: #9db8ff; }
.ev-mente { background: rgba(190,140,255,.16); color: #c9a6ff; }
.ev small { font-weight: 600; opacity: .8; }
.leyenda { display: grid; gap: .35rem; margin: .9rem 0 0; font-size: .86rem; color: var(--muted); }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .5rem; }
.leyenda i.ev-diario { background: var(--teal); } .leyenda i.ev-rev { background: var(--gold); } .leyenda i.ev-live { background: var(--red); }
.leyenda i.ev-op { background: #9db8ff; } .leyenda i.ev-mente { background: #c9a6ff; }
.capturas { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.2rem; }
.capturas figure { margin: 0; }
.capturas img { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--border); cursor: zoom-in; }
.capturas figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; text-align: center; }
@media (max-width: 700px) { .capturas { grid-template-columns: 1fr; } .semana { grid-template-columns: repeat(7, minmax(40px, 1fr)); } .ev { font-size: .6rem; } }
.escalon-aviso { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
@media (max-width: 700px) { .escalon-aviso { grid-template-columns: 1fr 1fr; } }
.escalon-aviso > div { background: var(--sea); border: 1px solid var(--border); border-radius: 12px; padding: .8rem; text-align: center; display: grid; gap: .15rem; }
.escalon-aviso b { font-size: 1.3rem; } .escalon-aviso span { font-size: .78rem; color: var(--muted); }
.escalon-aviso em { font-style: normal; font-weight: 700; color: var(--gold); margin-top: .3rem; font-size: .9rem; }
/* Garantía */
.garantia { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; border: 1px solid rgba(79,195,176,.45); background: linear-gradient(135deg, rgba(79,195,176,.1), var(--panel) 60%); }
.escudo { font-size: 3.4rem; line-height: 1; }
.garantia h2 { font-size: 1.9rem; }
.garantia-tu { font-size: .86rem; color: var(--muted); } .garantia-tu span { color: var(--ink); font-weight: 700; }
.garantia-reglas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.garantia-reglas > div { background: var(--sea); border: 1px solid var(--border); border-radius: 12px; padding: .75rem .8rem; display: grid; gap: .2rem; align-content: start; }
.garantia-reglas > div > span { font-size: 1.3rem; } .garantia-reglas b { font-size: .95rem; }
.garantia-reglas p { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.garantia-letra { margin: .6rem 0 0; font-size: .76rem; color: var(--muted); opacity: .85; }
@media (max-width: 700px) { .garantia { grid-template-columns: 1fr; } .escudo { font-size: 2.6rem; } }
/* Vuestras preguntas */
.preguntas { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; }
.preguntas li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .9rem; border-radius: 12px; background: var(--sea); border: 1px solid var(--border); }
.pq { font-size: 1rem; } .pq::before { content: "“"; color: var(--gold); margin-right: .15rem; } .pq::after { content: "”"; color: var(--gold); }
.pa { flex: none; font-size: .82rem; font-weight: 700; color: var(--teal); text-decoration: none; }
/* Editor de preguntas en la llamada */
.q-editor { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.q-add { display: grid; grid-template-columns: 1fr 200px auto; gap: .5rem; margin-top: .6rem; }
.q-add input, .q-add select { font: inherit; color: var(--ink); background: var(--sea); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .7rem; }
@media (max-width: 700px) { .q-add { grid-template-columns: 1fr; } }
.q-list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .35rem; }
.q-list li { display: flex; gap: .6rem; align-items: center; justify-content: space-between; background: var(--sea); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .7rem; font-size: .92rem; }
.q-list small { color: var(--teal); font-weight: 700; }
.q-list button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
/* Ampliar captura */
.zoom-shot { position: fixed; inset: 0; z-index: 40; background: rgba(5,12,20,.88); display: grid; place-items: center; padding: 2rem; cursor: zoom-out; }
.zoom-shot img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* Matrícula (matricula.js): pantalla propia a pantalla completa */
.enr-shell { position: fixed; inset: 0; z-index: 30; overflow: auto; background: var(--sea); }
.enr-shell .wrap { max-width: 900px; padding-bottom: 3rem; }
.enr-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 .4rem; }
.enr-top .kicker { margin: 0; }
body.enr-open { overflow: hidden; }
.enr-shell .enr { border-top: 0; margin-top: .6rem; padding-top: 0; }
.enr-shell .enr h2 { font-size: 2rem; }
.enr-shell .pay-opts { margin-top: 1.2rem; }
.enr-shell .pay-opt { padding: 1.2rem 1.2rem; }
.enr-shell .pay-opt b { font-size: 1.15rem; }
.enr-inline-done { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--teal); background: var(--teal-soft); }
.enr-inline-done .what { display: block; margin: .15rem 0 0; }
.enr-check.sm { width: 36px; height: 36px; font-size: 1.1rem; margin: 0; flex: none; }

.btn.big { font-size: 1.05rem; padding: .85rem 1.6rem; }
.enr-cta { margin-top: 1.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.enr-cta .what { margin: 0; }
.enr { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); scroll-margin-top: 1rem; }
.enr h2 { margin: 0 0 .3rem; font-size: 1.55rem; }
.enr-steps { margin-bottom: .9rem; }
.paper { background: #fbf8f1; color: #1d232a; border-radius: 12px; padding: 1.6rem 1.8rem; max-height: 58vh; overflow: auto;
  font: 14.5px/1.6 "Iowan Old Style", Palatino, Georgia, serif; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.paper h1 { font-size: 1.3rem; text-align: center; color: #1f3b63; margin: 0; }
.paper .c-sub { text-align: center; font-style: italic; color: #555; margin-top: .2rem; }
.paper h2 { font-size: 1.02rem; color: #1f3b63; border-bottom: 1px solid #1f3b63; padding-bottom: .2rem; margin: 1.4rem 0 .6rem; }
.paper h3 { font-size: .98rem; color: #1f3b63; margin: 1.1rem 0 .3rem; }
.paper p, .paper li { margin: .35rem 0; }
.check-line { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 0; font-size: .95rem; cursor: pointer; }
.check-line input { accent-color: var(--gold); width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.sign { margin-top: 1.2rem; }
.sign-name { max-width: 560px; margin-bottom: 1rem; }
.sign-name input { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 1.25rem; font-style: italic; }
.sign-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.sign canvas { display: block; width: 100%; max-width: 560px; height: 180px; background: #fbf8f1; border-radius: 12px; touch-action: none; cursor: crosshair;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.sign .hint { font-size: .78rem; color: var(--muted); margin: .35rem 0 0; }
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin: .4rem 0 1rem; }
.pay-opt { text-align: left; font: inherit; color: var(--ink); background: var(--sea); border: 1px solid var(--border); border-radius: 12px;
  padding: .9rem 1rem; cursor: pointer; display: grid; gap: .2rem; transition: border-color .15s, background .15s; }
.pay-opt b { font-size: 1rem; } .pay-opt span { color: var(--muted); font-size: .84rem; }
.pay-opt:hover { border-color: var(--gold); }
.pay-opt.on { border-color: var(--gold); background: rgba(232, 179, 75, .08); }
.enr-done { text-align: center; padding-bottom: 1rem; }
.enr-check { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; background: var(--teal); color: #06221e; font-size: 2rem;
  font-weight: 800; display: grid; place-items: center; }
.enr-done .lede { font-size: 1.2rem; color: var(--ink); max-width: none; }
footer.legal { color: var(--muted); font-size: .75rem; padding-bottom: 2rem; }

.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem;
  background: rgba(7, 16, 28, .94); backdrop-filter: blur(4px); }
.gate[hidden] { display: none; }
.gate .card { max-width: 440px; }

/* Tu camino (fases 0-6) y roadmap del alumno (camino-fases.js) */
.fases { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .2rem; position: relative; }
.fase { display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--border); }
.fase:first-child { border-top: 0; }
.fase-n { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  border: 1.5px solid var(--gold); color: var(--gold); background: var(--gold-soft); }
.fase-c p { margin: .25rem 0 0; color: var(--muted); }
.fase-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.fase-h b { font-size: 1.05rem; color: var(--ink); }
.fase-t { font-size: .8rem; color: var(--muted); }
.fase-hito span { color: var(--gold); font-weight: 650; }
.fase-e { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rm-fases .fase.hecha .fase-n { border-color: var(--teal); color: #06221e; background: var(--teal); }
.rm-fases .fase.hecha .fase-e { color: var(--teal); }
.rm-fases .fase.actual { background: var(--gold-soft); border-radius: 10px; padding: .8rem .7rem; margin: .2rem -.7rem; }
.rm-fases .fase.actual .fase-n { background: var(--gold); color: #1b1407; }
.rm-fases .fase.actual .fase-e { color: var(--gold); }
.rm-fases .fase.pendiente { opacity: .62; }
.rm-fases .fase.pendiente .fase-n { border-color: var(--route); color: var(--muted); background: none; }
.rm-meta { margin: .1rem 0 .8rem; color: var(--muted); }
.rm-ritmo { color: var(--teal); font-weight: 650; }
.rm-ritmo.tarde { color: var(--red); }
.rm-entrar { margin: .3rem 0 1.2rem; }
.fase-ciclos { display: flex; flex-wrap: wrap; gap: .35rem; }
.ciclo { font-size: .78rem; border: 1px solid var(--border); border-radius: 999px; padding: .1rem .6rem; color: var(--muted); }
.ciclo.positivo { border-color: var(--teal); color: var(--teal); }
.ciclo.negativo { border-color: var(--red); color: var(--red); }
.ciclo.en_curso { border-color: var(--gold); color: var(--gold); }
@media (max-width: 560px) { .rm-entrar { display: flex; justify-content: center; } }
