/* Diseño v7: portada de marca (violeta oscuro + captura real) y preguntas en formato chat; el plan se recorre de a un paso con navegación fija abajo. */
:root {
  /* Paleta de marca "Eléctrica": violeta principal, lima de acento. El lima nunca va como texto sobre claro; el lavanda (--es-border) solo en bordes. */
  --es-heading: #1E0B4B; --es-subheading: #5B21B6; --es-highlight: #6D28D9; --es-text: #1A1033; --es-text-muted: #5B5670;
  --es-link: #6D28D9; --es-link-hover: #4C1D95; --es-link-visited: #5B21B6;
  --es-accent: #C6F432; --es-accent-hover: #A3D10F; --es-accent-text: #1E0B4B;
  --es-soft: #EDE9FE; --es-surface: #F5F3FF; --es-border: #C4B5FD; --es-dark: #1E0B4B; --es-on-dark: #EDE9FE;
  --es-tip-bg: #F5F3FF; --es-warning-bg: #F7FDE3; --es-error: #B3261E;
  --fb: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fd: 'Poppins', 'Open Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box }
/* iPhone: Safari agranda la página al enfocar un campo con letra menor a 16px, y con el doble toque. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation }
input, select, textarea { font-size: max(16px, 1em) !important }
body { margin: 0; background: #fff; color: var(--es-text); font: 16px/1.55 var(--fb) }
body.flow { background: var(--es-surface) }
svg { flex: none }
h1, h2, h3 { font-family: var(--fd); font-weight: 600; text-wrap: balance; margin: 0 }
::selection { background: var(--es-accent); color: var(--es-accent-text) }
h1, h2, h4, h5, h6, b, strong { color: var(--es-heading) } h3 { color: var(--es-subheading) }
a { color: var(--es-link); text-decoration: underline } a:visited { color: var(--es-link-visited) } a:hover, a:focus { color: var(--es-link-hover) }
li::marker { color: var(--es-highlight) }
:focus-visible { outline: 3px solid var(--es-highlight); outline-offset: 2px }
/* Sobre fondo oscuro: títulos y destacados en lima, textos en lavanda claro, foco en lima. */
.bar :focus-visible, .hero :focus-visible, .ch :focus-visible, .end :focus-visible, .lb :focus-visible { outline-color: var(--es-accent) }
.bar b, .hero b, .ch b, .m.me b, .end b, .goal.top b, .btn b, .lb b { color: inherit }
.hero h1, .end h2, .ch b, .goal.top b { color: var(--es-accent) }
.hero a, .end a, .bar a { color: var(--es-on-dark) } .hero a:hover, .end a:hover, .bar a:hover { color: #fff }
.wrap { max-width: 1208px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)) }
.wrap.narrow { max-width: 868px }

/* Cabecera */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--es-dark); color: #fff }
.bar-in { max-width: 1208px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; min-height: 64px }
.brand { font: 600 1.35rem/1 var(--fd); letter-spacing: -.01em; color: #fff; background: none; border: 0; padding: 0; cursor: pointer }
.brand span { color: var(--es-accent) }
.brand small { font: 400 .82rem var(--fb); color: var(--es-on-dark); margin-left: 10px; letter-spacing: 0 }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px }
.prog i { display: block; height: 100%; width: 0; background: var(--es-accent); transition: width .3s }
.home { margin-left: auto; font: 700 .9rem var(--fb); color: var(--es-dark); background: var(--es-accent); border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer }
body:not(.flow) .home { display: none }
main { padding-bottom: 120px }
body:not(.flow) main { padding-bottom: 60px }

/* Portada */
.hero { background: var(--es-dark); color: #fff; position: relative; overflow: hidden }
.hero::before { content: ""; position: absolute; right: -180px; top: -240px; width: 760px; height: 760px; border-radius: 50%; background: #4C1D95; opacity: .55 }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; padding-top: 50px }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--es-on-dark); font-weight: 600; font-size: .9rem; margin-bottom: 16px }
.hero h1 { font-size: 3.3rem; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 18px }
.hero h1 u { text-decoration: none; box-shadow: inset 0 -.26em 0 var(--es-highlight) }
.hero p { color: var(--es-on-dark); font-size: 1.12rem; max-width: 30em; margin: 0 0 26px }
.search { position: relative; max-width: 540px }
.sb { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 6px; color: var(--es-highlight) }
.sb > svg { margin-left: 14px }
.sb input { flex: 1; min-width: 0; font: inherit; color: var(--es-text); background: none; border: 0; padding: 10px 12px; outline: none }
.sb:focus-within { box-shadow: 0 0 0 3px var(--es-accent) }
.sb button { font: 700 1rem var(--fb); color: var(--es-accent-text); background: var(--es-accent); border: 0; border-radius: 999px; padding: 12px 24px; cursor: pointer }
.sb button:hover { background: var(--es-accent-hover) }
#sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 4; margin: 8px 0 0; padding: 6px; list-style: none; background: #fff; color: var(--es-text); border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28) }
#sug button { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; width: 100%; text-align: left; font: inherit; color: var(--es-text); background: none; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer }
#sug li[aria-selected="true"] button, #sug button:hover { background: var(--es-soft) }
#sug b { font-weight: 600 } #sug span { color: var(--es-text-muted); font-size: .82rem } #sug .none { padding: 12px; color: var(--es-text-muted); font-size: .92rem }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 58px }
.chips button { font: inherit; font-size: .85rem; color: var(--es-on-dark); background: none; border: 1px solid var(--es-subheading); border-radius: 999px; padding: 5px 13px; cursor: pointer }
.chips button:hover { border-color: var(--es-accent); color: #fff }
.heroshot { position: relative; align-self: end; margin-bottom: -34px }
.win { background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; transform: rotate(-2deg); transform-origin: bottom left }
.win-bar { height: 30px; background: var(--es-soft); display: flex; gap: 6px; align-items: center; padding: 0 12px }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--es-border) }
.win img { display: block; width: 100% }
.badge { position: absolute; left: -36px; bottom: 96px; width: 230px; background: #fff; color: var(--es-text); border-radius: 14px; padding: 14px 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); font-size: .88rem }
.badge b { color: var(--es-heading); display: block; font-family: var(--fd); font-size: .95rem; margin-bottom: 8px }
.badge div { display: flex; justify-content: space-between; padding: 3px 0 }
.badge .y { color: var(--es-highlight); font-weight: 700 } .badge .n { color: var(--es-error); font-weight: 700 }
.sec { padding-top: 60px }
.sec h2 { font-size: 1.9rem; letter-spacing: -.02em; margin-bottom: 6px }
.sec > p { color: var(--es-text-muted); margin: 0 0 26px }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.goal { display: flex; flex-direction: column; gap: 8px; text-align: left; font: inherit; color: var(--es-text); background: #fff; border: 1px solid var(--es-border); border-radius: 18px; padding: 24px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s }
.goal:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 11, 75, .14); border-color: var(--es-highlight) }
.goal .gi { width: 50px; height: 50px; border-radius: 14px; background: var(--es-soft); color: var(--es-highlight); display: grid; place-items: center; margin-bottom: 8px }
.goal b { font: 600 1.18rem/1.25 var(--fd); letter-spacing: -.01em }
.goal > span:not(.gi):not(.gm) { color: var(--es-text-muted); font-size: .95rem; flex: 1 }
.goal .gm { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--es-highlight); border-top: 1px solid var(--es-soft); padding-top: 12px; margin-top: 10px }
.goal .resume { color: var(--es-highlight) }
.goal.top { background: var(--es-dark); color: #fff; border-color: var(--es-dark) }
.goal.top .gi { background: var(--es-accent); color: var(--es-dark) } .goal.top > span:not(.gi):not(.gm) { color: var(--es-on-dark) }
.goal.top .gm { color: var(--es-on-dark); border-color: var(--es-link-hover) } .goal.top .resume { color: var(--es-accent) }
.goals.more .goal { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px }
.goals.more .gi { width: 42px; height: 42px; border-radius: 12px; margin: 0 }
.goals.more .gt { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.goals.more b { font-size: 1rem } .goals.more .gt span { color: var(--es-text-muted); font-size: .88rem }
.goals.more .resume { font-size: .8rem; font-weight: 700 }
.foot { color: var(--es-text-muted); font-size: .88rem; margin: 30px 0 0 }

/* Recorrido: chat */
.crumb { margin: 22px 0 14px }
.link { font: inherit; font-weight: 600; color: var(--es-highlight); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px }
.link:hover, .link:focus-visible { color: var(--es-link-hover) }
.link.soft { font-weight: 400; color: var(--es-text-muted); font-size: .9rem }
.chat { background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(30, 11, 75, .1); overflow: hidden }
.ch { background: var(--es-dark); color: #fff; padding: 16px 22px; display: flex; gap: 14px; align-items: center }
.av { width: 44px; height: 44px; border-radius: 50%; background: var(--es-accent); color: var(--es-dark); display: grid; place-items: center; font: 700 1.2rem var(--fd); flex: none }
.ch b { display: block; font: 600 1.08rem/1.25 var(--fd) }
.ch small { color: var(--es-on-dark); font-size: .82rem }
.ch small::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--es-accent); margin-right: 6px }
.msgs { padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 10px }
.m { display: flex; gap: 10px; align-items: flex-end; max-width: 86% }
.m .a { width: 30px; height: 30px; border-radius: 50%; background: var(--es-soft); color: var(--es-highlight); display: grid; place-items: center; font: 700 .8rem var(--fd); flex: none }
.m .b { background: var(--es-surface); border-radius: 18px 18px 18px 5px; padding: 12px 16px }
.m .b small { display: block; color: var(--es-text-muted); font-size: .88rem; margin-top: 4px }
.m.me { align-self: flex-end; flex-direction: column; align-items: flex-end; gap: 3px; margin: 4px 0 }
.m.me .b { background: var(--es-dark); color: var(--es-on-dark); border-radius: 18px 18px 5px 18px; font-weight: 600 }
.edit { font: inherit; font-size: .8rem; color: var(--es-text-muted); background: none; border: 0; padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px }
.edit:hover { color: var(--es-link-hover) }
.replies { margin: 4px 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.replies.one { grid-template-columns: 1fr }
.opt { font: inherit; font-weight: 600; font-size: .96rem; text-align: left; color: var(--es-highlight); background: #fff; border: 1.5px solid var(--es-highlight); border-radius: 14px; padding: 12px 15px; cursor: pointer; transition: background .12s, border-color .12s }
.opt:hover { background: var(--es-soft); color: var(--es-link-hover) }
.inp { margin: 4px 0 0 40px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--es-border); border-radius: 999px; padding: 6px 6px 6px 18px; background: #fff }
.inp:focus-within { border-color: var(--es-highlight); box-shadow: 0 0 0 3px var(--es-soft) }
.inp input { flex: 1; min-width: 0; font: inherit; color: var(--es-text); background: none; border: 0; outline: none; padding: 8px 0 }
.inp button { width: 44px; height: 44px; border-radius: 50%; background: var(--es-accent); color: var(--es-accent-text); border: 0; display: grid; place-items: center; cursor: pointer; flex: none }
.err { color: var(--es-error); font-size: .9rem; margin: 6px 0 0 44px }
.back { margin: 8px 0 0 40px }
.typing { color: var(--es-text-muted); font-style: italic }
details.chat > summary { list-style: none; cursor: pointer; padding: 14px 20px; display: flex; gap: 12px; align-items: center; font-weight: 600 }
details.chat > summary::-webkit-details-marker { display: none }
details.chat > summary .av { width: 34px; height: 34px; font-size: 1rem }
details.chat > summary span { margin-left: auto; font-weight: 600; font-size: .9rem; color: var(--es-highlight); text-decoration: underline; text-underline-offset: 3px }
details.chat[open] > summary { border-bottom: 1px solid var(--es-soft) }
details.chat { border-radius: 16px; box-shadow: none; border: 1px solid var(--es-soft) }
.title { margin: 6px 0 18px }
.title h1 { font-size: 2.1rem; letter-spacing: -.025em; line-height: 1.1; color: var(--es-dark) }
.title p { margin: 6px 0 0; color: var(--es-text-muted); font-size: 1.05rem }

/* Plan */
.diag { background: #fff; border: 1px solid var(--es-soft); border-left: 0; border-radius: 16px; padding: 16px 18px; margin: 16px 0 0; display: flex; gap: 12px }
.diag .a { width: 30px; height: 30px; border-radius: 50%; background: var(--es-soft); color: var(--es-highlight); display: grid; place-items: center; font: 700 .8rem var(--fd); flex: none }
.diag ul { margin: 6px 0; padding-left: 18px } .diag li { margin-bottom: 3px }
.planhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin: 30px 0 8px }
.planhead h2 { font-size: 1.45rem; letter-spacing: -.015em; color: var(--es-dark) }
.tools { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 12px }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none }
.dots button { font: 600 .85rem var(--fb); min-width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--es-border); background: #fff; color: var(--es-text-muted); cursor: pointer; font-variant-numeric: tabular-nums }
.dots button.ok { background: var(--es-soft); border-color: var(--es-soft); color: var(--es-link-hover) }
.dots button[aria-current="step"] { background: var(--es-dark); border-color: var(--es-dark); color: var(--es-on-dark) }
.step { background: #fff; border: 1px solid var(--es-soft); border-radius: 20px; padding: 24px 26px; margin-bottom: 14px }
.stephead { display: flex; gap: 14px; align-items: center; margin-bottom: 6px }
.num { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--es-accent); color: var(--es-dark); display: grid; place-items: center; font: 600 1.2rem var(--fd); font-variant-numeric: tabular-nums }
.step.ok .num { background: var(--es-soft); color: var(--es-highlight) }
.where { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--es-highlight) }
.step h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.25; color: var(--es-subheading) }
.step p { margin: 10px 0; overflow-wrap: anywhere } .step ol { margin: 10px 0; padding-left: 22px } .step li { margin-bottom: 5px }
.pill { display: inline-block; font: 700 .76rem var(--fb); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle }
.pill.ok { color: var(--es-link-hover); background: var(--es-soft) } .pill.falta { color: var(--es-heading); background: var(--es-warning-bg); box-shadow: inset 0 0 0 1px var(--es-accent-hover) }
.rec { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: center; background: var(--es-surface); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: .9rem }
.rec label { color: var(--es-text-muted); font-size: .78rem; font-weight: 600 } .rec code, .step code, .diag code { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; background: var(--es-soft); color: var(--es-link-hover); border-radius: 5px; padding: 1px 5px }
.copy { font: 600 .8rem var(--fb); background: #fff; color: var(--es-highlight); border: 1px solid var(--es-highlight); border-radius: 999px; padding: 6px 12px; cursor: pointer }
.copy:hover { background: var(--es-soft) }
.note { background: var(--es-warning-bg); color: var(--es-heading); border-left: 4px solid var(--es-accent-hover); border-radius: 4px 12px 12px 4px; padding: 11px 14px; font-size: .94rem; margin: 12px 0 }
.shots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px }
.shots .shot { flex: 1 1 300px; max-width: calc(50% - 5px); min-width: 0; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit }
.shots .shot:only-child { max-width: 100% }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--es-border); border-radius: 12px }
.cap { color: var(--es-text-muted); font-size: .84rem; margin: 6px 0 0 }
.chk { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 600; cursor: pointer }
.chk input { width: 20px; height: 20px; accent-color: var(--es-highlight) }
details.help, details.acc { margin-top: 14px; border-top: 1px solid var(--es-soft); padding-top: 12px; font-size: .94rem }
details.help summary, details.acc summary { cursor: pointer; font-weight: 600; color: var(--es-highlight) }
details.acc summary { color: var(--es-subheading) }
details p { margin: 8px 0 }
.row { display: flex; flex-wrap: wrap; gap: 10px }
.btn { font: 700 1rem var(--fb); color: var(--es-dark); background: var(--es-accent); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer }
.btn:hover { background: var(--es-accent-hover) }
.btn.ghost { background: transparent; border: 1.5px solid var(--es-highlight); color: var(--es-highlight); padding: 10.5px 20px }
.btn.ghost:hover { background: var(--es-soft) }
.btn:disabled { opacity: .4; cursor: default }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; border-top: 1px solid var(--es-soft); padding-bottom: env(safe-area-inset-bottom, 0px) }
.nav-in { max-width: 868px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 10px; align-items: center; justify-content: space-between }
.nav .mid { color: var(--es-text-muted); font-size: .88rem; font-variant-numeric: tabular-nums }
.end { background: var(--es-dark); color: #fff; border-radius: 20px; padding: 26px; margin-top: 16px }
.end h2 { font-size: 1.5rem } .end p { color: var(--es-on-dark); margin: 6px 0 0 } .end .row { margin-top: 16px }
.end .btn.ghost { background: none; color: var(--es-on-dark); border-color: var(--es-subheading) } .end .btn.ghost:hover { background: none; color: #fff; border-color: var(--es-on-dark) }

/* Visor de capturas */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(30, 11, 75, .9); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out }
.lb[hidden] { display: none }
.lb img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5) }
.lb button { position: absolute; top: 12px; right: 12px; font: 600 14px/1 var(--fb); color: var(--es-dark); background: #fff; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 0; padding-top: 36px } .heroshot { display: none } .chips { margin-bottom: 40px }
  .hero h1 { font-size: 2.6rem }
  .goals { grid-template-columns: 1fr 1fr }
}
@media (max-width: 640px) {
  .wrap, .bar-in, .nav-in { padding-left: 16px; padding-right: 16px }
  .hero h1 { font-size: 2.1rem } .hero p { font-size: 1.02rem }
  .sb button { padding: 11px 16px }
  .sb input, .inp input { font-size: 17px !important }
  .sec { padding-top: 40px } .sec h2 { font-size: 1.5rem }
  .goals { grid-template-columns: 1fr; gap: 12px } .goal { padding: 20px }
  .brand small { display: none }
  .msgs { padding: 18px 14px } .m { max-width: 94% }
  .replies { grid-template-columns: 1fr; margin-left: 0 } .inp, .back { margin-left: 0 } .err { margin-left: 4px }
  .title h1 { font-size: 1.7rem }
  .step { padding: 18px 16px; border-radius: 16px } .step h3 { font-size: 1.15rem } .num { width: 40px; height: 40px; border-radius: 12px }
  .rec { grid-template-columns: 54px 1fr } .rec .copy { grid-column: 2; justify-self: start }
  .nav .mid { display: none } .btn { padding: 12px 18px }
  .shots .shot { max-width: 100% }
  .lb { display: block; overflow: auto; -webkit-overflow-scrolling: touch; padding: 64px 12px 56px; cursor: default }
  .lb img { max-width: none; max-height: none; width: 260vw; display: block }
  .lb button { position: fixed }
  .lb::after { content: "Deslizá para recorrer la captura"; position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; font: 600 13px/1 var(--fb); color: #fff; background: rgba(30, 11, 75, .88); border-radius: 999px; padding: 9px 14px; pointer-events: none }
}
@media (prefers-reduced-motion: reduce) { .prog i, .goal, .opt { transition: none } .goal:hover { transform: none } }

/* Estilos del sitio multipágina: tipografías propias, encabezado de página, guía completa, enlaces y pie. Se suma a app.css al armar. */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(/assets/opensans.woff2?v=d8e4fe04) format('woff2') }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/poppins-600.woff2?v=f4e80d9d) format('woff2') }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/poppins-700.woff2?v=9338e65f) format('woff2') }

main { padding-bottom: 48px }
body:not(.flow) main { padding-bottom: 48px }
a.brand, a.brand:visited, a.brand:hover { color: #fff; text-decoration: none }
.tl { margin-left: auto; font: 600 .9rem var(--fb); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap }
.bar a.tl, .bar a.tl:visited { color: var(--es-on-dark) } .bar a.tl:hover { color: #fff }
a.home, a.home:visited, a.home:hover { margin-left: 0; color: var(--es-accent-text); text-decoration: none }
a.home:hover { background: var(--es-accent-hover) }
a.goal, a.goal:visited, a.goal:hover, a.goal:focus { color: var(--es-text); text-decoration: none }
a.goal.top, a.goal.top:visited, a.goal.top:hover, a.goal.top:focus { color: #fff }

/* Encabezado de cada guía */
.pagehead { padding-top: 22px }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .9rem; color: var(--es-text-muted) }
.crumbs li + li::before { content: "›"; margin-right: 6px }
.pagehead h1 { font-size: 2.1rem; letter-spacing: -.025em; line-height: 1.12 }
.pagehead p { margin: 8px 0 18px; color: var(--es-text-muted); font-size: 1.05rem; max-width: 44em }

/* Guía completa (texto fijo de la página) */
.guia { margin-top: 44px }
.guia[hidden] { display: none }
.guia > h2, .rel h2 { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 6px }
.guia > p { color: var(--es-text-muted); margin: 0 0 20px }
.guia .gsec { font: 600 1.25rem/1.3 var(--fd); color: var(--es-heading); margin: 32px 0 14px; padding-top: 22px; border-top: 1px solid var(--es-border) }
.cond { display: inline-block; font-size: .84rem; color: var(--es-link-hover); background: var(--es-soft); border-radius: 8px; padding: 3px 10px; margin: 6px 0 0 }

/* Enlaces a otras guías y a EnvíaloSimple */
.rel { margin-top: 48px }
.rel ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px }
.rel li { padding: 0 }
.cta { margin-top: 36px; background: var(--es-dark); color: var(--es-on-dark); border-radius: 20px; padding: 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between }
.cta b { display: block; font: 600 1.25rem/1.3 var(--fd); color: var(--es-accent) }
.cta p { margin: 4px 0 0 }
.cta a.btn, .cta a.btn:visited { color: var(--es-accent-text); text-decoration: none; white-space: nowrap }
.cta :focus-visible { outline-color: var(--es-accent) }
.about { padding-top: 48px; max-width: 868px }
.about h2 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 8px }

/* Pie */
.ft { background: var(--es-dark); color: var(--es-on-dark); margin-top: 24px; padding: 44px 0 30px; font-size: .94rem }
body.flow .ft { padding-bottom: 104px }
.ft-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px }
.ft .brand { display: inline-block; margin-bottom: 10px }
.ft p { margin: 0; max-width: 26em }
.ft b { display: block; color: var(--es-accent); font: 600 1rem var(--fd); margin-bottom: 10px }
.ft ul { list-style: none; margin: 0; padding: 0 } .ft li { margin-bottom: 7px }
.ft a, .ft a:visited { color: var(--es-on-dark) } .ft a:hover { color: #fff }
.ft :focus-visible { outline-color: var(--es-accent) }
.ft small { display: block; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--es-link-hover); color: var(--es-on-dark) }

@media (max-width: 980px) { .ft-in { grid-template-columns: 1fr 1fr } }
@media (max-width: 640px) {
  .pagehead h1 { font-size: 1.7rem }
  body.flow .tl { display: none } body.flow a.home { margin-left: auto }
  .rel ul { grid-template-columns: 1fr }
  .ft-in { grid-template-columns: 1fr }
}
.win img { height: auto }
.cta p a, .cta p a:visited { color: var(--es-on-dark) } .cta p a:hover { color: #fff }
/* Variantes de un paso en la guía completa */
.vint { color: var(--es-text-muted); margin: 10px 0 }
.var { border-left: 4px solid var(--es-border); padding: 2px 0 2px 16px; margin: 14px 0 }
.var .where { display: block; margin: 4px 0 }
/* Partes del plan cuando se configuran los dos servicios */
.part { display: block; font: 700 .74rem var(--fb); letter-spacing: .04em; text-transform: uppercase; color: var(--es-heading); background: var(--es-accent); border-radius: 6px; padding: 2px 8px; margin-bottom: 4px; width: fit-content }
.partsec { font: 600 1.1rem var(--fd); color: var(--es-heading); background: var(--es-soft); border-radius: 12px; padding: 10px 16px; margin: 26px 0 12px }
/* Valor de un registro que solo se ve en el panel */
.recv { font-size: .9em; color: var(--es-text-muted) }


/* ============ Tema «Recorrido» ============
   Se suma a app.css + site.css solo cuando el sitio se arma con TEMA=recorrido. Misma paleta y tipografías; todo sobre violeta oscuro.
   Sobre oscuro el acento (lima) sí va como texto; el violeta #6D28D9 no, porque no se lee. */
:root {
  --es-heading: #fff; --es-subheading: #fff; --es-highlight: #C6F432; --es-text: #EDE9FE; --es-text-muted: #B9AEE0;
  --es-link: #C6F432; --es-link-hover: #fff; --es-link-visited: #DDD6FE;
  --es-soft: rgba(196, 181, 253, .16); --es-surface: rgba(109, 40, 217, .18); --es-border: rgba(196, 181, 253, .4);
  --es-tip-bg: rgba(109, 40, 217, .18); --es-warning-bg: rgba(198, 244, 50, .1); --es-error: #FFB4AB;
  --rc-deep: #150737; --rc-card: rgba(44, 20, 106, .72); --rc-violet: #6D28D9; --rc-pad: clamp(20px, 6vw, 120px);
  color-scheme: dark;
}
html { scroll-behavior: smooth; background: var(--rc-deep) }
body, body.flow { background:
    radial-gradient(1200px 700px at 85% 0, rgba(109, 40, 217, .42), transparent 70%),
    radial-gradient(900px 700px at 0 900px, rgba(76, 29, 149, .5), transparent 70%),
    linear-gradient(#1E0B4B, #150737 1400px); background-color: var(--rc-deep); -webkit-font-smoothing: antialiased; overflow-x: hidden }
main { position: relative; overflow: hidden; padding-bottom: 60px }
main > :not(.trail):not(.comet):not(.rbg):not(.nlabs) { position: relative; z-index: 2 }
.nlabs { position: absolute; inset: 0; z-index: 4; pointer-events: none }
.nlabs span { position: absolute; translate: -50% -50%; font: 700 1.15rem var(--fd); color: var(--es-dark); opacity: 0; transition: opacity .3s } .nlabs span.on { opacity: 1 }
/* Fondos generados (Higgsfield): portada con video en computadora, imagen vertical en celular, y cierre */
.rbg { position: absolute; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none; overflow: hidden; background: url(/assets/t/portada.webp) center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 26%, #000 82%, transparent) }
.rbg.fin { background: url(/assets/t/cierre.webp) center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(transparent 8%, #000 45%, #000 84%, transparent); mask-image: linear-gradient(transparent 8%, #000 45%, #000 84%, transparent) }
.hn span { text-shadow: 0 0 6px #150737, 0 1px 14px #150737, 0 0 2px #150737 }
.rbg[hidden] { display: none }
.rbg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom }
/* La portada aparece de a poco con un velo que se va, y no con su propia opacidad: así el navegador la cuenta como pintada desde el inicio */
.rec-js .rbg:not(.fin)::after { content: ""; position: absolute; inset: 0; background: #1A0942; opacity: 0; animation: rc-veil 1.5s .1s backwards } @keyframes rc-veil { from { opacity: 1 } }
/* Ilustraciones de cada parada, flotando sobre la captura */
.rfig { position: relative; width: min(520px, 100%) } .rfig .rwin, .rfig .rchart { width: 100% }
.ilu { position: absolute; z-index: 2; right: -11%; top: -24%; width: clamp(130px, 15vw, 210px); height: auto; pointer-events: none; filter: drop-shadow(0 22px 34px rgba(8, 2, 30, .6)); animation: rc-float 6.5s ease-in-out infinite }
.stop:nth-of-type(odd) .ilu { right: auto; left: -11%; animation-delay: -3s }
@keyframes rc-float { 50% { translate: 0 -14px; rotate: 3deg } }
.rec-js .ilu.rv { transform: translateY(40px) scale(.6); transition-delay: .25s } .rec-js .ilu.rv.in { transform: none }
h1, h2 { font-weight: 700 }

/* Cabecera */
.bar { position: fixed; left: 0; right: 0; top: 0; z-index: 20; background: transparent; transition: background .3s, backdrop-filter .3s }
.bar.solid { background: rgba(21, 7, 55, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 rgba(196, 181, 253, .16) }
.bar-in { max-width: none; padding: 12px var(--rc-pad) }
.brand { font-weight: 700; letter-spacing: -.035em; font-size: 1.5rem }
.where-now { margin-left: auto; font-size: .88rem; color: var(--es-on-dark); white-space: nowrap }
.where-now:empty { display: none } .where-now b { color: var(--es-accent); font-weight: 600 }
.where-now:not(:empty) + .tl { margin-left: 8px }
.bar a.tl, .bar a.tl:visited { color: #fff }

/* Trazo */
svg.trail { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1 }
.trail path { fill: none; stroke-linecap: round; stroke-linejoin: round }
.trail .track { stroke: rgba(196, 181, 253, .16); stroke-width: 2; stroke-dasharray: 2 10 }
.trail .g1 { stroke: rgba(198, 244, 50, .07); stroke-width: 44 } .trail .g2 { stroke: rgba(198, 244, 50, .13); stroke-width: 20 }
.trail .g3 { stroke: rgba(198, 244, 50, .55); stroke-width: 7 } .trail .g4 { stroke: #F4FFC9; stroke-width: 2.2 }
.comet { position: absolute; left: 0; top: 0; z-index: 1; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, #fff 0 4%, rgba(198, 244, 50, .95) 9%, rgba(198, 244, 50, .32) 26%, rgba(198, 244, 50, 0) 62%) }
canvas.sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4 }
body.flow svg.trail { z-index: 3 } body.flow .comet { z-index: 3; width: 70px; height: 70px; margin: -35px 0 0 -35px }
body.flow .trail .g1 { stroke-width: 26 } body.flow .trail .g2 { stroke-width: 12 } body.flow .trail .g3 { stroke-width: 4.5 } body.flow .trail .g4 { stroke-width: 1.6 }

/* Portada */
.rhero { position: relative; min-height: 100vh; min-height: 100svh; padding: max(250px, 31vh) var(--rc-pad) 96px; display: flex; flex-direction: column; align-items: flex-start }
.rhero .eyebrow { color: #fff; margin-bottom: 14px } .rhero .eyebrow svg { color: var(--es-accent) }
.rhero h1 { font-size: clamp(2.5rem, 5.6vw, 5.75rem); line-height: .98; letter-spacing: -.045em; color: var(--es-accent); max-width: 11em }
.rhero h1 span { display: block; width: fit-content; background: linear-gradient(var(--rc-violet), var(--rc-violet)) no-repeat 0 100% / 100% .1em; padding-bottom: .04em }
.rec-js .rhero h1 span { animation: rc-under .9s .5s cubic-bezier(.2, .8, .2, 1) backwards }
@keyframes rc-under { from { background-size: 0 .1em } }
.lede { margin: 22px 0 28px; font-size: clamp(1.06rem, 1.45vw, 1.38rem); color: #fff; max-width: 30em }
.rhero .search { width: min(640px, 100%); max-width: none }
.sb { padding: 7px 7px 7px 8px; box-shadow: 0 18px 50px rgba(8, 2, 30, .45); color: var(--rc-violet); transition: box-shadow .25s, transform .25s }
.sb:focus-within { box-shadow: 0 0 0 4px rgba(198, 244, 50, .55), 0 18px 50px rgba(8, 2, 30, .45); transform: translateY(-1px) }
.sb input { color: #1A1033 }
.sb button { font: 600 1rem var(--fd); padding: 13px 26px; transition: background .2s, transform .2s } .sb button:hover { transform: scale(1.04) }
#sug { background: #24105A; color: var(--es-text); box-shadow: 0 0 0 1px var(--es-border), 0 24px 60px rgba(8, 2, 30, .6) }
#sug button { color: #fff }
.rhero .chips { margin: 16px 0 0 } .chips button { color: #fff; border-color: rgba(196, 181, 253, .5); padding: 7px 14px; transition: .2s }
.chips button:hover { border-color: var(--es-accent); color: var(--es-accent); transform: translateY(-2px) }
.hn { position: absolute; z-index: 3; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; text-decoration: none }
.hn b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font: 700 1.5rem var(--fd); color: var(--es-text-muted); background: #24105A; border: 2px solid rgba(196, 181, 253, .4); transition: .45s cubic-bezier(.2, .9, .3, 1.3) }
.hn span { position: absolute; bottom: calc(100% + 26px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 1rem var(--fd); color: #fff; opacity: .55; transition: .4s }
.hn span::after { content: ""; position: absolute; left: 50%; top: calc(100% + 4px); width: 1.5px; height: 18px; background: rgba(237, 233, 254, .7) }
.hn.on b, .node.on, .finish.on { background: radial-gradient(circle at 35% 30%, #F7FFD6, var(--es-accent) 60%); border-color: #F4FFC9 }
.hn.on b { color: var(--es-dark); box-shadow: 0 0 0 8px rgba(198, 244, 50, .16), 0 0 44px rgba(198, 244, 50, .8) }
.hn.on span { opacity: 1 } .hn:hover b { transform: scale(1.16) }
.hn1 { left: 37%; top: 17% } .hn2 { left: 53%; top: 23% } .hn3 { left: 67%; top: 36% } .hn4 { left: 80%; top: 46% } .hn5 { left: 92%; top: 58% }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; margin-top: clamp(36px, 7vh, 84px) }
a.glass, a.glass:visited, a.glass:hover, a.glass:focus { color: #fff; text-decoration: none }
.glass { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 22px; background: linear-gradient(135deg, rgba(109, 40, 217, .34), rgba(76, 29, 149, .2)); border: 1px solid rgba(196, 181, 253, .42);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s, opacity .8s }
.glass::before, main .step::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 244, 50, .16), transparent 65%); opacity: 0; transition: opacity .3s }
.glass:hover::before, main .step:hover::before { opacity: 1 }
.glass:hover { transform: translateY(-5px); border-color: var(--es-accent); box-shadow: 0 22px 50px rgba(8, 2, 30, .5) }
.glass .gx { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.glass b { font: 600 1.18rem/1.25 var(--fd); letter-spacing: -.01em; color: #fff }
.glass .gx > span { font-size: .92rem; line-height: 1.45; color: var(--es-on-dark) } .glass .gx > .resume { color: var(--es-accent); font-weight: 600 }
.glass .go { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(237, 233, 254, .14); transition: .3s }
.glass:hover .go { background: var(--es-accent); color: var(--es-dark); transform: translateX(4px) }
a.hint, a.hint:visited { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: .95rem; color: #fff; text-decoration: none }
.rec-js .hint svg { animation: rc-bob 1.6s infinite } @keyframes rc-bob { 50% { transform: translateY(5px) } }

/* Paradas */
.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; padding: clamp(60px, 10vh, 120px) var(--rc-pad); scroll-margin-top: 30px }
.stop .side { display: flex; flex-direction: column; align-items: center; gap: 46px }
.stop:nth-of-type(odd) .side { order: 2 }
.node, .finish { display: grid; place-items: center; flex: none; border-radius: 50%; background: #24105A; border: 2px solid rgba(196, 181, 253, .4); transition: .6s cubic-bezier(.2, .9, .3, 1.3) }
.node { width: 96px; height: 96px } .nn { font: 700 2.5rem var(--fd); color: var(--es-text-muted); transition: .4s }
.node.on { box-shadow: 0 0 0 14px rgba(198, 244, 50, .13), 0 0 90px rgba(198, 244, 50, .75); transform: scale(1.06) } .node.on .nn { color: var(--es-dark) }
.rwin { width: min(520px, 100%); border-radius: 16px; overflow: hidden; background: #EDE9FE; box-shadow: 0 34px 80px rgba(8, 2, 30, .6), 0 0 0 1px rgba(196, 181, 253, .5); transform: perspective(1200px) rotateY(7deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .8s }
.stop:nth-of-type(odd) .rwin { transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) }
.stop .rwin:hover { transform: perspective(1200px) scale(1.02) }
.rwin .win-bar { background: #EDE9FE } .rwin .win-bar i { background: #C4B5FD } .rwin img { display: block; width: 100%; height: auto }
.rchart { width: min(520px, 100%); padding: 22px; border-radius: 22px; background: linear-gradient(135deg, rgba(109, 40, 217, .34), rgba(76, 29, 149, .2)); border: 1px solid rgba(196, 181, 253, .42) }
.rchart svg { display: block; width: 100%; height: auto } .rchart path { fill: none }
.rchart .gr { stroke: rgba(196, 181, 253, .25); stroke-dasharray: 3 6 } .rchart .ar { fill: rgba(198, 244, 50, .14) }
.rchart .ln { stroke: var(--es-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700 }
.rec-js .rchart .ln { stroke-dashoffset: 700; transition: stroke-dashoffset 1.8s .2s cubic-bezier(.3, .7, .2, 1) } .rec-js .rchart.in .ln { stroke-dashoffset: 0 }
.rec-js .rchart .ar { opacity: 0; transition: opacity 1s 1.1s } .rec-js .rchart.in .ar { opacity: 1 }
.sbody .pre { font: 600 .88rem var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--es-accent); margin: 0 0 10px }
.sbody h2 { font-size: clamp(2.1rem, 4.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.04em; color: #fff }
.sbody .tx { margin: 18px 0 30px; font-size: clamp(1.06rem, 1.3vw, 1.25rem); color: var(--es-on-dark); max-width: 30em }
.links { display: grid; gap: 12px; max-width: 560px }
.rec-js .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s }
.rec-js .rv.in { opacity: 1; transform: none }
.rec-js .links .rv:nth-child(2), .rec-js .rmore .rv:nth-child(2) { transition-delay: 90ms } .rec-js .links .rv:nth-child(3), .rec-js .rmore .rv:nth-child(3) { transition-delay: 180ms } .rec-js .links .rv:nth-child(4) { transition-delay: 270ms }
.rec-js .rwin.rv { transform: perspective(1200px) rotateY(18deg) translateY(40px) } .rec-js .rwin.rv.in { transform: perspective(1200px) rotateY(7deg) rotateX(3deg) }
.rec-js .stop:nth-of-type(odd) .rwin.rv.in { transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) }
.rec-js .glass.rv.in:hover { transform: translateY(-5px) }
.rend { padding: clamp(60px, 10vh, 120px) var(--rc-pad) 30px; text-align: center }
.finish { width: 132px; height: 132px; margin: 0 auto 34px; color: var(--es-text-muted) }
.finish.on { color: var(--es-dark); box-shadow: 0 0 0 18px rgba(198, 244, 50, .13), 0 0 70px rgba(198, 244, 50, .65); transform: scale(1.08) }   /* el resplandor amplio lo da el fondo; un desenfoque mayor se recortaba en celular */
.rend h2 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.05; letter-spacing: -.04em }
.rend > p { margin: 14px auto 34px; color: var(--es-on-dark); max-width: 34em }
.rmore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; max-width: 1100px; margin: 0 auto }
.rend > .foot { margin-top: 34px }
.about { text-align: center; margin: 0 auto; padding-top: 30px } .about h2 { color: #fff }

/* Guías: encabezado */
.pagehead { padding-top: 112px }
.pagehead h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -.04em; color: #fff }
.pagehead p { font-size: 1.12rem; color: var(--es-on-dark) }
.crumbs li[aria-current] { color: var(--es-accent) }
main > .sec:first-child { padding-top: 120px }

/* Guías: chat */
.chat, details.chat { background: var(--rc-card); border: 1px solid var(--es-border); box-shadow: 0 30px 70px rgba(8, 2, 30, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px) }
.ch { background: linear-gradient(120deg, rgba(109, 40, 217, .55), rgba(76, 29, 149, .25)); box-shadow: inset 0 -1px 0 var(--es-border) }
.av { box-shadow: 0 0 0 6px rgba(198, 244, 50, .14), 0 0 34px rgba(198, 244, 50, .55) }
.m .a, .diag .a { background: rgba(198, 244, 50, .16); color: var(--es-accent) }
.m .b { background: rgba(196, 181, 253, .14); color: #fff }
@keyframes rc-pop { from { opacity: 0; transform: translateY(12px) scale(.96) } }
@keyframes rc-right { from { opacity: 0; transform: translateX(40px) scale(.9) } }
@keyframes rc-dot { 0%, 60%, 100% { transform: none; opacity: .4 } 30% { transform: translateY(-5px); opacity: 1 } }
@keyframes rc-ping { 0% { box-shadow: 0 0 0 0 rgba(198, 244, 50, .7) } 70%, 100% { box-shadow: 0 0 0 10px rgba(198, 244, 50, 0) } }
@keyframes rc-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 244, 50, 0) } 50% { box-shadow: 0 0 0 4px rgba(198, 244, 50, .2) } }
.qn { margin-left: auto; flex: none; font: 600 .8rem var(--fb); color: var(--es-on-dark); border: 1px solid var(--es-border); border-radius: 999px; padding: 4px 12px }
.tdots .b { display: flex; gap: 5px; padding: 16px 16px 14px } .tdots .b i { width: 8px; height: 8px; border-radius: 50%; background: var(--es-accent); animation: rc-dot 1s infinite }
.tdots .b i:nth-child(2) { animation-delay: .15s } .tdots .b i:nth-child(3) { animation-delay: .3s }
.tdots .a { animation: rc-ping 1.2s infinite } .m.tdots { display: none } .rec-js .m.tdots { display: flex }
.rec-js .hold > .pend, .rec-js .hold > .turn, .rec-js .hold > .replies, .rec-js .hold > .inp, .rec-js .hold > .back, .rec-js .hold > .err, .rec-js .hold > .afterq { display: none }
.rec-js .go .pend .m { animation: rc-pop .45s cubic-bezier(.2, .8, .2, 1) backwards }
.rec-js .m.me.new { animation: rc-right .45s cubic-bezier(.2, .9, .3, 1.2) backwards }
.turn { display: flex; gap: 10px; align-items: center; margin: 16px 0 2px 40px; font-size: .92rem; color: var(--es-on-dark) }
.turn b { color: var(--es-accent) } .turn i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--es-accent); animation: rc-ping 1.6s infinite }
.rec-js .go .turn { animation: rc-pop .4s .25s backwards }
.afterq { margin: 14px 0 0 40px; font-size: .85rem; color: var(--es-text-muted) }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.opt::after { content: "→"; flex: none; opacity: .55; transition: transform .2s, opacity .2s } .opt:hover::after { opacity: 1; transform: translateX(4px) }
.rec-js .go .opt { animation: rc-pop .45s cubic-bezier(.2, .9, .3, 1.2) backwards, rc-glow 2.6s 1.4s infinite }
.rec-js .go .opt:nth-child(1) { animation-delay: .35s, 1.4s } .rec-js .go .opt:nth-child(2) { animation-delay: .45s, 1.7s } .rec-js .go .opt:nth-child(3) { animation-delay: .55s, 2s } .rec-js .go .opt:nth-child(4) { animation-delay: .65s, 2.3s }
.rec-js .go .inp { animation: rc-pop .45s .35s backwards, rc-glow 2.6s 1.4s infinite }
@media (max-width: 640px) { .turn, .afterq { margin-left: 0 } .qn { display: none } }
.m.me .b { background: var(--rc-violet); color: #fff }
.opt { background: rgba(198, 244, 50, .04); color: #fff; border-color: rgba(198, 244, 50, .6); transition: .2s }
.opt:hover { background: var(--es-accent); color: var(--es-dark); border-color: var(--es-accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(198, 244, 50, .22) }
.inp { background: rgba(21, 7, 55, .55) } .inp:focus-within { box-shadow: 0 0 0 3px rgba(198, 244, 50, .3) }
.inp input { color: #fff } .inp input::placeholder { color: var(--es-text-muted) }
details.chat > summary { color: #fff }

/* Guías: plan y pasos */
.diag { background: var(--rc-card); border: 1px solid var(--es-border) }
.planhead h2, .title h1 { color: #fff }
.dots button { background: rgba(196, 181, 253, .1); color: var(--es-on-dark); transition: .2s } .dots button:hover { border-color: var(--es-accent); color: #fff }
.dots button.ok { color: var(--es-accent) }
.dots button[aria-current="step"] { background: var(--es-accent); border-color: var(--es-accent); color: var(--es-dark); box-shadow: 0 0 24px rgba(198, 244, 50, .5) }
main .step { position: relative; background: var(--rc-card); border: 1px solid rgba(196, 181, 253, .3); border-radius: 22px; padding: 26px 28px 26px 98px; margin-bottom: 18px; overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1) }
main .step:hover { border-color: rgba(198, 244, 50, .55) }
.rec-js .guia .step { opacity: 0; transform: translateY(28px) } .rec-js .guia .step.in { opacity: 1; transform: none }
main .step .stephead { min-height: 50px; margin-bottom: 8px }
main .step .num { position: absolute; left: 24px; top: 26px; z-index: 4; width: 50px; height: 50px; border-radius: 50%; background: #24105A; color: var(--es-text-muted); border: 2px solid rgba(196, 181, 253, .4); transition: .5s cubic-bezier(.2, .9, .3, 1.3) }
main .step .num.on { background: radial-gradient(circle at 35% 30%, #F7FFD6, var(--es-accent) 60%); border-color: #F4FFC9; color: var(--es-dark); box-shadow: 0 0 0 7px rgba(198, 244, 50, .14), 0 0 40px rgba(198, 244, 50, .7) }
.step h3 { color: #fff; font-size: 1.4rem }
.rec code, .step code, .diag code { color: #F4FFC9 }
.rec { background: rgba(21, 7, 55, .5); box-shadow: inset 0 0 0 1px rgba(196, 181, 253, .18) }
.copy { background: transparent } .copy:hover { background: var(--es-accent); color: var(--es-dark) }
.note { border-left-color: var(--es-accent) }
.part { color: var(--es-dark) }
.shots img { border-color: var(--es-border); background: #fff; transition: transform .3s, box-shadow .3s } .shots .shot:hover img { transform: scale(1.015); box-shadow: 0 16px 40px rgba(8, 2, 30, .5) }
.btn { font-family: var(--fd); font-weight: 600; transition: background .2s, transform .2s } .btn:not(:disabled):hover { transform: translateY(-2px) }
.btn.ghost { color: #fff; border-color: rgba(196, 181, 253, .6) } .btn.ghost:hover { background: rgba(196, 181, 253, .14) }
.nav { background: rgba(21, 7, 55, .82); border-top-color: var(--es-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px) }
.end, .cta { background: linear-gradient(135deg, rgba(109, 40, 217, .5), rgba(76, 29, 149, .28)); border: 1px solid var(--es-border) }
.guia > h2, .rel h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.035em }
.guia .gsec { color: var(--es-accent) }
.rel ul a { text-decoration-color: rgba(198, 244, 50, .4) }
.ft { background: rgba(21, 7, 55, .7); box-shadow: inset 0 1px 0 rgba(196, 181, 253, .16); position: relative; z-index: 2 }
.ft small { border-top-color: rgba(196, 181, 253, .2) }
.lb { background: rgba(21, 7, 55, .92) }

@media (max-width: 860px) {
  .hn, .where-now { display: none } .brand { font-size: 1.3rem }
  .rhero { padding-top: 96px; padding-bottom: 40px }
  .quick, .rmore { grid-template-columns: 1fr; gap: 12px } .glass { padding: 16px 18px } .quick .glass, .glass .gx > span:not(.resume) { font-size: .9rem }
  a.hint { position: static; margin: 26px auto 0 }
  .stop { grid-template-columns: 1fr; padding: 64px 20px 64px 84px; gap: 26px }
  .stop .side { order: 2 !important; align-items: flex-start }
  .node { position: absolute; left: 14px; top: 58px; width: 56px; height: 56px } .nn { font-size: 1.5rem }
  .rwin, .rec-js .rwin.rv.in, .rec-js .stop:nth-of-type(odd) .rwin.rv.in { transform: none } .rend { padding-inline: 20px } .finish { width: 96px; height: 96px }
  .pagehead { padding-top: 92px }
  main .step, .chat, details.chat { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(40, 18, 98, .94) }   /* el desenfoque de fondo es caro en celulares y acá casi no se nota */
  /* en celular el paisaje ocupa la mitad de abajo de la portada, para que el resplandor no quede detrás del texto */
  .rbg:not(.fin) { background-size: auto 50%; background-position: 84% bottom; -webkit-mask-image: linear-gradient(transparent 50%, #000 70%, #000 90%, transparent); mask-image: linear-gradient(transparent 50%, #000 70%, #000 90%, transparent) }
  .rbg video { top: auto; bottom: 0; height: 50%; object-position: 84% bottom } .rbg.fin { background-image: url(/assets/t/cierre-m.webp) }
  .quick .glass { background: rgba(36, 16, 90, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px) }
  .rfig { margin-top: 34px } .ilu, .stop:nth-of-type(odd) .ilu { left: auto; right: -4px; top: -58px; width: 112px }
}
@media (max-width: 640px) {
  .bar-in { padding-left: 16px; padding-right: 16px } .tl { font-size: .84rem }
  main .step { padding: 20px 16px 20px 62px; border-radius: 18px } main .step .num { left: 12px; top: 20px; width: 38px; height: 38px; font-size: 1rem } main .step .stephead { min-height: 38px }
  .step h3 { font-size: 1.15rem }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto }
  .rec-js .rv, .rec-js .guia .step { opacity: 1; transform: none; transition: none } .rec-js .rhero h1 span, .rec-js .hint svg, .rec-js .m, .rec-js .go .opt, .rec-js .go .inp, .rec-js .go .turn, .turn i, .ilu, .rec-js .rbg:not(.fin)::after { animation: none } .rec-js .rchart .ln { stroke-dashoffset: 0 } .rec-js .rchart .ar { opacity: 1 } }
