/* ARIADNA · Sigue el hilo
   Fondos claros, letra grande, botones grandes. */
:root {
  --navy: #1F2A44;
  --navy-2: #2E3B5C;
  --terra: #C75D3A;
  --terra-d: #A94B2C;
  --gold: #B89860;
  --gold-l: #E4D6B8;
  --cream: #F1EBDC;
  --bg: #F7F3EA;
  --card: #FFFFFF;
  --line: #E6DECB;
  --muted: #6B7183;
  --ok: #2E8B57;
  --yellow: #D9A400;
  --red: #C0392B;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 4px 16px rgba(31, 42, 68, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--navy);
  font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 120px; }
.wrap.wide { max-width: 1200px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.ok { color: var(--ok); }
.lead { font-size: 1.15rem; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.brand b { letter-spacing: .22em; font-size: .95rem; }
.brand-thread { width: 40px; height: 24px; color: var(--gold); }
.tagline { color: var(--gold); font-style: italic; margin: 4px 0 0; }
.eyebrow { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* Tarjetas y cajas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; box-shadow: var(--shadow); }
.card.narrow { max-width: 460px; margin: 32px auto; }
.narrow-l { max-width: 520px; }
.box { background: var(--cream); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; }
.box.warn { background: #FBE9DF; }
.box p:last-child { margin: 0; }
.box ul { margin: 6px 0 0; padding-left: 20px; }
.objective p { font-size: 1.05rem; margin: 4px 0 0; }
.sec { margin: 26px 4px 12px; font-size: 1.15rem; }

/* Hero del asesor */
.hero { padding: 8px 4px 4px; position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero h1 { font-size: 2rem; margin: 0; }
.hero-sub { font-size: 1.15rem; color: var(--navy-2); margin: 4px 0 0; font-weight: 600; }
.thread { width: 100%; height: 26px; display: block; margin: 8px 0 12px; }

/* Barras */
.progress { padding: 16px 20px; }
.prog-row { display: flex; justify-content: space-between; font-size: .92rem; margin: 6px 0 6px; }
.bar { height: 10px; background: var(--cream); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .4s; }
.bar.gold > span { background: var(--gold); }
.progress .bar + .prog-row { margin-top: 14px; }

/* Actividades */
.acts { list-style: none; margin: 0; padding: 0; }
.act { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; box-shadow: var(--shadow); overflow: hidden; }
.act-main { display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 10px; cursor: pointer; }
.act-main input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { flex: 0 0 34px; height: 34px; border-radius: 10px; border: 2px solid var(--gold); background: #fff; display: grid; place-items: center; margin-top: 2px; transition: .15s; }
.act-main input:focus-visible + .tick { outline: 3px solid var(--gold-l); outline-offset: 2px; }
.act-main input:checked + .tick { background: var(--navy); border-color: var(--navy); }
.act-main input:checked + .tick::after { content: ""; width: 10px; height: 18px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); }
.act-text { flex: 1; }
.act-title { display: block; font-weight: 600; font-size: 1.05rem; }
.act.is-done .act-title { color: var(--muted); }
.chip { display: inline-block; font-size: .78rem; background: var(--cream); color: var(--navy-2); border-radius: 99px; padding: 2px 10px; margin-top: 6px; font-weight: 600; }
.act-more { border-top: 1px dashed var(--line); padding: 0 16px; }
.act-more summary { cursor: pointer; padding: 10px 0; color: var(--navy-2); font-size: .9rem; font-weight: 600; list-style: none; }
.act-more summary::before { content: "＋ "; color: var(--gold); }
.act-more[open] summary::before { content: "－ "; }
.act-more summary::-webkit-details-marker { display: none; }
.act-more[open] { padding-bottom: 14px; }
.guide { background: var(--cream); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.agenda { list-style: none; padding: 0; margin: 0 0 12px; font-size: .92rem; }
.agenda li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.agenda .eyebrow { display: inline; margin-right: 4px; }
.mini { border: 1px solid var(--gold-l); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: .95rem; }
.mini ul { list-style: none; padding: 0; margin: 6px 0 0; }

/* Formularios */
.form label, .lbl { display: block; font-size: .92rem; font-weight: 600; margin: 0 0 14px; color: var(--navy-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 152, 96, .2); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; margin: 0 0 12px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 22px; accent-color: var(--navy); }
.check.big { font-size: 1rem; }
.file input { padding: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-form { display: inline; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem;
  border-radius: 14px; padding: 12px 20px; min-height: 50px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--cream); }
.btn-main { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn-main:hover { background: var(--terra-d); border-color: var(--terra-d); }
.btn-block { width: 100%; }
.btn-xl { min-height: 62px; font-size: 1.15rem; border-radius: 18px; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: .88rem; border-radius: 10px; }
.btn-wa { border-color: #1F8F4E; color: #1F7A44; }
.btn-ghost { border-color: var(--line); }
.btn-danger { border-color: var(--red); color: var(--red); }
.savebar { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(247, 243, 234, 0), var(--bg) 30%); margin-top: 8px; }

/* Resultados numéricos */
.nums { padding: 8px 16px; }
.num { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.num:last-child { border-bottom: 0; }
.num-label { display: block; font-weight: 700; }
.num-hint { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.stepper { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.stepper input { width: 64px; text-align: center; font-size: 1.25rem; font-weight: 700; padding: 8px 4px; margin: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-btn { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--gold); background: #fff; color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.st-btn:active { background: var(--cream); }

details.card > summary { cursor: pointer; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "＋"; float: right; color: var(--gold); }
details.card[open] > summary::after { content: "－"; }
.logros-in { margin-top: 14px; }
.rest h2 { font-size: 1.4rem; }
.remember .eyebrow { margin-bottom: 4px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.kpi { background: var(--bg); border-radius: 12px; padding: 12px; }
.kpi-v { display: block; font-size: 1.6rem; font-weight: 800; }
.kpi-v small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.kpi-l { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }

/* Mensajes */
.flash { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.flash-ok { background: #E3F1E8; color: #1E5E3A; }
.flash-err { background: #FBE3DD; color: #8E2B17; }
.hint { margin-top: 24px; }

/* Panel */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.topbar nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; font-weight: 600; color: var(--navy-2); }
.topbar nav a.on, .topbar nav a:hover { background: var(--cream); color: var(--navy); }
.logo { text-decoration: none; }
.subbar { background: var(--navy); color: #fff; }
.subbar .topbar-in { padding: 8px 16px; font-weight: 600; }
.subbar .muted { color: #C9CEDA; font-weight: 400; font-size: .9rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.page-head h1 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.summary .kpi { background: #fff; border: 1px solid var(--line); }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #FCFAF5; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .grp td { background: var(--cream); font-weight: 700; font-size: .85rem; }
.tbl .total td { font-size: 1.05rem; background: #FCFAF5; }
.tbl.eval td:nth-child(n+2) { white-space: nowrap; }
.action-hint { display: block; color: var(--terra-d); font-weight: 600; font-size: .85rem; margin-top: 4px; }

.sem { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.sem i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.sem-verde i { background: var(--ok); }
.sem-amarillo i { background: var(--yellow); }
.sem-rojo i { background: var(--red); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.tabs a { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.days-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.days-pick label { display: inline-flex !important; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; font-weight: 600; }
.days-pick input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.photo-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.prose p { font-size: 1rem; }
.plan-act { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 10px; background: #FCFAF5; }
.plan-act .grid-act { display: grid; grid-template-columns: 1fr 110px 120px 80px; gap: 10px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cols > * { min-width: 0; }
.copyarea { width: 100%; min-height: 220px; font-size: .9rem; }

@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; }
  .plan-act .grid-act { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.5rem; }
  .tbl.responsive thead { display: none; }
  .tbl.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 12px; text-align: right; }
  .tbl.responsive td::before { content: attr(data-l); font-weight: 600; color: var(--muted); text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
  .tbl.responsive td.first { display: block; text-align: left; font-size: 1.05rem; }
  .tbl.responsive td.first::before { display: none; }
}
@media (max-width: 380px) {
  body { font-size: 17px; }
  .st-btn { width: 40px; height: 40px; }
  .stepper input { width: 54px; }
}

/* ---- Versión 2: Ariadna Team Leader del Fast Track Residencial ---- */
.brand-txt { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-txt small { font-size: .62rem; color: var(--muted); letter-spacing: .01em; font-weight: 500; }
.adv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 4px 14px; }
.adv-head-r { text-align: right; line-height: 1.25; }
.adv-head-r b { display: block; font-size: .8rem; letter-spacing: .06em; color: #7A6235; }
.adv-head-r span { display: block; font-size: .78rem; color: var(--muted); }
.adv-head-r .tagline { margin: 0; font-style: italic; color: #7A6235; }
.r2cp { padding: 8px 4px 8px 14px; margin-left: 6px; border-left: 1px solid var(--line); font-weight: 800; letter-spacing: .06em; color: #7A6235; font-size: .9rem; }
.subbar .muted { color: #D5D9E3; }

.bubble { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--gold-l); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
.bubble p { margin: 0; font-size: 1rem; }
.bubble-av { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.card.ayer { border: 2px solid var(--gold); display: flex; flex-direction: column; gap: 10px; }
.card.ayer .bubble { border: 0; padding: 0; margin: 0; }

.act-office { border: 2px solid var(--navy); }
.act-band { background: var(--navy); color: #fff; font-size: .72rem; letter-spacing: .12em; font-weight: 700; padding: 6px 16px; }
.act-meta { display: block; font-size: .92rem; color: var(--navy-2); margin-top: 4px; }
.act-pend { margin: 0 16px 12px; background: #FBE9DF; border-radius: 12px; padding: 10px 12px; font-size: .95rem; }
.act-video { padding: 0 16px 12px; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: var(--navy); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { background: var(--cream); border-radius: 12px; padding: 14px; text-align: center; color: var(--navy-2); font-weight: 600; }
.help-links { border: 1px solid var(--gold-l); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.help-links a { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; text-decoration: none; }
.help-links .play { flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--cream); color: var(--terra); display: flex; align-items: center; justify-content: center; font-size: .75rem; }
.num-goal { display: block; font-size: .78rem; color: #7A6235; font-weight: 700; margin-top: 2px; }
.goals .goal-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.goals .goal-row.is-low input { border-color: var(--terra); color: var(--terra-d); }
.goal-warn { background: #FBE9DF; border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: .95rem; }
.goal-warn .check { margin: 10px 0 0; }
.analisis { display: none; }
.analisis.show { display: block; }
.analisis textarea { margin-top: 8px; }
.push-card { border: 1.5px dashed var(--gold); }

.welcome h1 { font-size: 1.6rem; margin-top: 6px; }
.myth { border: 1.5px solid var(--gold-l); border-radius: 14px; padding: 16px; margin: 0 0 16px; }
.myth-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.myth-h h2 { margin: 0; font-size: 1.1rem; }
.myth p { font-size: 1rem; }
.myth-end { font-weight: 700; color: var(--terra-d); margin: 0; }

.preview-bar { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; }
.preview-bar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.preview-bar label { color: #D5D9E3; font-size: .8rem; font-weight: 600; }
.preview-bar select { min-height: 42px; padding: 6px 10px; margin-top: 4px; }
.preview-bar .btn { min-height: 42px; background: #fff; }
.preview-bar .pv-nav { display: flex; gap: 8px; margin-top: 10px; }
.preview-bar .pv-nav a { color: #fff; font-weight: 700; }
.wa-box { white-space: pre-line; }

/* Ariadna con rostro */
img.bubble-av { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-l); background: var(--cream); }
.welcome-img { display: block; width: 100%; height: auto; border-radius: 14px; margin: 4px 0 14px; background: var(--cream); }

.card.celebrate { text-align: center; border: 2px solid var(--gold); }
.card.celebrate img { width: 70%; max-width: 280px; height: auto; border-radius: 50%; display: block; margin: 0 auto 10px; }
.card.celebrate p { font-size: 1.1rem; font-weight: 600; margin: 0; }
