/* Página de curso (plantilla). Portada con datos clave, una historia con scroll donde el
   panel de la derecha se transforma paso a paso, y cierre con formulario de información.
   Tokens de styles.css; campos de formulario de cursos.css. */

.page-curso h1 em, .page-curso h2 em { font-style: italic; color: var(--accent); }
.page-curso .section-head .eyebrow { font-size: var(--step--1); color: var(--accent); }

/* ---------- Portada ---------- */
.c-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 72px);
}
.c-crumbs { font-size: 0.88rem; color: var(--muted); margin: 0 0 18px; }
.c-crumbs a { color: var(--muted); }
.c-crumbs span { margin-inline: 6px; color: var(--faint); }
.c-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.6rem); margin-top: 16px; max-width: 15ch; }
.c-hero h1 em { display: block; }
.c-hero .hero-lead { margin-top: 22px; max-width: 44ch; }
.c-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.c-btn-big { padding: 14px 24px; font-size: 1rem; }
.c-hero-art { position: relative; margin: 0; }
.c-hero-frame { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); animation: c-in .9s .1s cubic-bezier(.2, .8, .2, 1) both; }
.c-hero-frame img { width: 100%; height: auto; }
.c-float {
  position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.c-float small { font-size: 0.76rem; color: var(--muted); }
.c-float strong { font-family: var(--f-display); font-size: 1.35rem; color: #1a9e5c; }
.c-float--kpi { left: -22px; bottom: 18%; animation: c-in .7s .6s cubic-bezier(.2, .8, .2, 1) both, c-bob 5s 1.4s ease-in-out infinite; }
.c-float--sync { right: -14px; top: -16px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; color: var(--accent); animation: c-in .7s .85s cubic-bezier(.2, .8, .2, 1) both; }
.c-float--sync svg { animation: c-spin 3s linear infinite; }
.c-facts { grid-column: 1 / -1; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.c-facts div { padding: 18px 22px; border-left: 1px solid var(--line); }
.c-facts div:first-child { border-left: 0; }
.c-facts dt { font-family: var(--f-data); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.c-facts dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
@keyframes c-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes c-bob { 50% { transform: translateY(-6px); } }
@keyframes c-spin { to { transform: rotate(360deg); } }

/* ---------- Historia con scroll ---------- */
.cs-story { padding-block: clamp(56px, 8vw, 104px) 0; background: linear-gradient(var(--bg), var(--sky) 30%, var(--sky) 80%, var(--bg)); }
.cs-story .section-head { margin-bottom: 0; }
.cs-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0 clamp(32px, 5vw, 72px); }
.cs-sticky { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; }
.cs-steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0 0 20vh; }
.cs-step { min-height: 78vh; display: grid; align-content: center; gap: 14px; opacity: .28; transition: opacity .5s; }
.cs-step:first-child { min-height: 70vh; }
.cs-step.on { opacity: 1; }
.cs-step-n { font-family: var(--f-data); font-size: 0.82rem; color: var(--accent); letter-spacing: .08em; }
.cs-step h3 { font-size: var(--step-2); letter-spacing: -0.02em; max-width: 18ch; }
.cs-step p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 42ch; margin: 0; }
.cs-step .btn { justify-self: start; margin-top: 8px; }

.cs-stage {
  position: relative; width: 100%; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--f-body); color: var(--ink);
}
.scene { position: absolute; inset: 0; padding: 7%; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.cs-stage[data-step="1"] .s1, .cs-stage[data-step="2"] .s2, .cs-stage[data-step="3"] .s3, .cs-stage[data-step="4"] .s4, .cs-stage[data-step="5"] .s5 {
  opacity: 1; visibility: visible; transition: opacity .6s .1s, visibility 0s;
}
/* Cada escena anima sus piezas al entrar: usan --d como retraso. */
.scene > * { transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .6s; transition-delay: var(--d, 0s); }

/* Escena 1: planillas desordenadas */
.s1 { background: repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--line) 50%, transparent) 27px 28px); }
.s1-clock { position: absolute; left: 7%; top: 7%; display: grid; line-height: 1.1; }
.s1-clock b { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); }
.s1-clock span { font-size: 0.85rem; color: var(--bad); font-weight: 600; }
.sheet {
  position: absolute; width: 44%; padding: 10px 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(16, 42, 67, .5); display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
}
.sheet header { grid-column: 1 / -1; font-family: var(--f-data); font-size: 0.68rem; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet header::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #1d7044; margin-right: 6px; }
.sheet i { height: 9px; border-radius: 3px; background: var(--line); }
.sheet i:nth-child(3n) { width: 60%; }
.sheet em { grid-column: 1 / -1; margin-top: 6px; font-style: normal; font-family: var(--f-data); font-weight: 500; font-size: 0.95rem; }
.sheet em.bad { color: var(--bad); text-decoration: underline wavy; text-underline-offset: 4px; }
.sh-a { left: 38%; top: 9%; transform: rotate(4deg); --d: .05s; }
.sh-b { left: 12%; top: 36%; transform: rotate(-6deg); --d: .15s; }
.sh-c { left: 50%; top: 44%; transform: rotate(7deg); --d: .25s; }
.sh-d { left: 22%; top: 64%; transform: rotate(-3deg); --d: .35s; }
.s1-q { position: absolute; right: 6%; bottom: 7%; padding: 8px 14px; border-radius: 999px; background: #c2462e; color: #fff; font-weight: 600; font-size: 0.88rem; --d: .5s; }
.cs-stage:not([data-step="1"]) .s1 .sheet { transform: translate(0, 30px) rotate(0); opacity: 0; }
.cs-stage:not([data-step="1"]) .s1 .s1-q { opacity: 0; transform: scale(.8); }

/* Escena 2: fuentes que se unen en una tabla */
.s2 { display: grid; grid-template-columns: auto minmax(40px, 1fr) minmax(0, 2.4fr); align-items: center; gap: 0; }
.src { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.src li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.src-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-data); font-size: 0.66rem; font-weight: 500; background: var(--sky); color: var(--accent); border: 1px solid var(--line); }
.src-ico.x { background: #1d7044; color: #fff; border-color: #1d7044; font-size: 0.95rem; font-weight: 700; font-family: var(--f-body); }
.flow { width: 100%; height: 70%; overflow: visible; }
.flow path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; animation: c-flow 1.2s linear infinite; opacity: .7; }
@keyframes c-flow { to { stroke-dashoffset: -22; } }
.clean { border-radius: 14px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; font-size: 0.8rem; --d: .2s; }
.clean header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.pbi-dot { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(90deg, #f2c811 0 30%, transparent 30% 35%, #f2c811 35% 65%, transparent 65% 70%, #e8a700 70%); }
.row { display: grid; grid-template-columns: 1fr 1fr 1.1fr 1fr; padding: 8px 12px; border-top: 1px solid var(--line); font-family: var(--f-data); font-size: 0.72rem; color: var(--muted); }
.row.h { border-top: 0; color: var(--ink); font-weight: 500; background: color-mix(in srgb, var(--accent-soft) 18%, var(--bg)); }
.row span:last-child { text-align: right; }
.cs-stage:not([data-step="2"]) .s2 .clean { transform: translateX(30px); opacity: 0; }
.cs-stage:not([data-step="2"]) .s2 .src li { opacity: 0; }
.s2 .src li { transition: opacity .5s; }
.cs-stage[data-step="2"] .s2 .src li:nth-child(2) { transition-delay: .1s; }
.cs-stage[data-step="2"] .s2 .src li:nth-child(3) { transition-delay: .2s; }
.cs-stage[data-step="2"] .s2 .src li:nth-child(4) { transition-delay: .3s; }

/* Escena 3: modelo relacional */
.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.links path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1s .3s ease; }
.cs-stage[data-step="3"] .links path { stroke-dashoffset: 0; }
.tbl {
  position: absolute; width: 30%; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 14px 30px -20px rgba(16, 42, 67, .5); font-size: 0.78rem; display: grid;
}
.tbl header { padding: 7px 10px; font-weight: 600; background: var(--sky); border-bottom: 1px solid var(--line); }
.tbl span { padding: 4px 10px; color: var(--muted); font-family: var(--f-data); font-size: 0.68rem; }
.tbl span:last-child { padding-bottom: 8px; }
.t-main { left: 35%; top: 50%; translate: 0 -50%; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow); z-index: 1; }
.t-main header { background: var(--brand); color: var(--on-accent); }
.t1 { left: 5%; top: 6%; --d: .15s; } .t2 { right: 5%; top: 6%; --d: .25s; } .t3 { left: 5%; bottom: 6%; --d: .35s; } .t4 { right: 5%; bottom: 6%; --d: .45s; }
.cs-stage:not([data-step="3"]) .s3 .tbl:not(.t-main) { opacity: 0; transform: scale(.85); }

/* Escena 4: tablero con hallazgo */
.s4 { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 1px; }
.kpi small { font-size: 0.72rem; color: var(--muted); }
.kpi b { font-family: var(--f-display); font-size: clamp(1rem, 1.8vw, 1.35rem); }
.kpi span { font-size: 0.72rem; font-weight: 600; }
.kpi .up { color: #1a9e5c; } .kpi .down { color: var(--bad); }
.kpi:nth-child(2) { --d: .1s; } .kpi:nth-child(3) { --d: .2s; border-color: #c2462e; }
.chart { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); --d: .25s; }
.chart small { font-size: 0.75rem; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; min-height: 0; }
.bars i { display: block; height: var(--h); border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--accent) 75%, var(--surface)); transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.bars i.hi { background: #c2462e; }
.cs-stage[data-step="4"] .bars i { transform: scaleY(1); }
.bars i:nth-child(2) { transition-delay: .05s; } .bars i:nth-child(3) { transition-delay: .1s; } .bars i:nth-child(4) { transition-delay: .15s; }
.bars i:nth-child(5) { transition-delay: .2s; } .bars i:nth-child(6) { transition-delay: .25s; } .bars i:nth-child(7) { transition-delay: .3s; } .bars i:nth-child(8) { transition-delay: .35s; }
.months { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; text-align: center; font-family: var(--f-data); font-size: 0.64rem; color: var(--muted); }
.callout {
  position: absolute; left: 22%; top: 22%; max-width: 62%; padding: 8px 12px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; line-height: 1.35;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow); transition: opacity .5s 1s, transform .5s 1s;
}
.cs-stage:not([data-step="4"]) .s4 .kpi, .cs-stage:not([data-step="4"]) .s4 .chart { opacity: 0; transform: translateY(16px); }
.cs-stage:not([data-step="4"]) .callout { opacity: 0; transform: translateY(8px); transition-delay: 0s; }

/* Escena 5: el reporte compartido */
.s5 { padding: 0; }
.s5 img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.cs-stage:not([data-step="5"]) .s5 img { transform: scale(1.12); }
.s5-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
}
.s5-chip.sync { left: 6%; top: 7%; color: var(--accent); --d: .4s; }
.s5-chip.sync svg { animation: c-spin 3s linear infinite; }
.s5-chip.share { right: 6%; bottom: 7%; max-width: 80%; --d: .6s; }
.av { width: 26px; height: 26px; margin-right: -14px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; color: var(--on-accent); background: var(--brand); border: 2px solid var(--surface); }
.av:nth-child(2) { background: var(--teal); } .av:nth-child(3) { background: #e8a700; margin-right: 0; }
.cs-stage:not([data-step="5"]) .s5-chip { opacity: 0; transform: translateY(14px); }

/* ---------- Lo que te llevás ---------- */
.gains { padding-block: clamp(72px, 10vw, 128px) clamp(40px, 6vw, 72px); }
.gain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .gain-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gain-list li { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; align-content: start; gap: 10px; }
.gain-list span { font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.gain-list h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.gain-list p { color: var(--muted); margin: 0; }

/* ---------- IA: marcas y piezas del panel ---------- */
.ai-spark { color: #8a5cf6; }
.ai-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; vertical-align: 1px; color: #6d3fe0; background: color-mix(in srgb, #8a5cf6 14%, var(--surface)); }
:root[data-theme="dark"] .ai-tag, :root[data-theme="dark"] .ai-spark { color: #b9a0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ai-tag, :root:not([data-theme="light"]) .ai-spark { color: #b9a0ff; } }
/* Rojo de "problema": más claro en modo oscuro para que se lea */
:root { --bad: #c2462e; }
:root[data-theme="dark"] { --bad: #ef7a62; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bad: #ef7a62; } }
.c-float--ai { left: 8%; top: -18px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.88rem; animation: c-in .7s .45s cubic-bezier(.2, .8, .2, 1) both; }
.ai-chip { padding: 7px 12px; font-size: 0.72rem; font-weight: 600; color: var(--ink); background: color-mix(in srgb, #8a5cf6 10%, var(--surface)); border-bottom: 1px solid var(--line); }
.copilot {
  position: absolute; left: 50%; bottom: 4%; translate: -50% 0; width: 70%; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: start;
  padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 0.78rem; box-shadow: var(--shadow); --d: .7s;
}
.copilot small { display: block; font-size: 0.66rem; opacity: .7; }
.copilot code { grid-column: 1 / -1; font-family: var(--f-data); font-size: 0.64rem; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 12%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copilot .ai-spark { color: #c4b0ff; }
.cs-stage:not([data-step="3"]) .s3 .copilot { opacity: 0; transform: translateY(14px); }
.s3 .t-main { top: 40%; }
.s3 .t3, .s3 .t4 { bottom: 26%; }

/* ---------- Programa ---------- */
.cs-program { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 120px); }
.program-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.program-head .section-head { margin-bottom: 0; }
.unit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.unit { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; align-content: start; gap: 10px; }
.unit--wide { grid-column: span 2; grid-row: span 2; background: color-mix(in srgb, var(--accent-soft) 10%, var(--surface)); }
.unit-n { font-family: var(--f-data); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.unit h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.unit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
.unit li { position: relative; padding-left: 16px; line-height: 1.4; }
.unit li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
@media (max-width: 1000px) { .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .unit-grid { grid-template-columns: minmax(0, 1fr); } .unit--wide { grid-column: auto; grid-row: auto; } .copilot { width: 88%; } }

/* ---------- Para quién ---------- */
.who { padding-block: clamp(56px, 8vw, 96px); background: var(--deep); color: var(--on-deep); }
.who-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.who .eyebrow { color: var(--on-deep-accent); }
.who h2 { font-size: var(--step-3); margin-top: 14px; }
.who h2 em { color: var(--on-deep-accent); }
.who-lead { margin-top: 18px; color: color-mix(in srgb, var(--on-deep) 72%, transparent); font-size: var(--step-1); line-height: 1.5; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.who-list li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--on-deep) 7%, transparent); border: 1px solid color-mix(in srgb, var(--on-deep) 14%, transparent); }
.who-list b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--on-deep-accent); color: var(--deep); font-size: 0.8rem; }

/* ---------- Cursada ---------- */
.journey { padding-block: clamp(72px, 10vw, 128px) clamp(40px, 6vw, 72px); }
.road { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 16px; padding-top: 34px; }
.road-line { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.road-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--teal)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.road-leg { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); opacity: .45; transform: translateY(10px); transition: opacity .5s, transform .5s, border-color .5s; }
.road-leg.on { opacity: 1; transform: none; }
.road-end.on { border-color: var(--accent); box-shadow: var(--shadow); }
.road-leg h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.road-leg p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.road-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 28%, var(--surface)); }
.dots { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; margin-bottom: 6px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line); transition: background-color .3s; }
.road-classes.on .dots i { background: var(--brand); }
.road-classes.on .dots i:nth-child(n+6) { transition-delay: .15s; } .road-classes.on .dots i:nth-child(n+11) { transition-delay: .3s; }
.road-note { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Opiniones ---------- */
.voices { padding-block: clamp(48px, 7vw, 88px); }
.voice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.voice { margin: 0; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 20px; align-content: space-between; }
.voice blockquote { margin: 0; font-size: 1.04rem; line-height: 1.55; color: var(--ink); }
.voice figcaption { display: flex; align-items: center; gap: 12px; }
.voice img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.voice figcaption span { display: grid; font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
.voice strong { color: var(--ink); font-size: 0.95rem; }

/* ---------- Ruta ---------- */
.cs-path { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.cs-path-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: p; }
.cs-path-list li > *, .cs-path-list .is-here { display: grid; gap: 4px; padding: 20px; border-radius: 18px; text-decoration: none; height: 100%; box-sizing: border-box; }
.cs-path-list a { border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s; }
.cs-path-list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.cs-path-list .is-here { background: var(--brand); color: var(--on-accent); }
.cs-path-list small { font-family: var(--f-data); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cs-path-list strong { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2; }
.cs-path-list span { font-size: 0.85rem; opacity: .8; }
.cs-path-list a small, .cs-path-list a span { color: var(--muted); }

/* ---------- Pedir información ---------- */
.info { padding-block: clamp(64px, 9vw, 112px); background: linear-gradient(var(--bg), var(--sky)); }
.info-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 80px); align-items: center; }
.info h2 { font-size: var(--step-3); margin-top: 14px; }
.info-text > p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; max-width: 44ch; }
.info-perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.info-perks li { position: relative; padding-left: 28px; color: var(--muted); }
.info-perks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.info-alt { font-size: 0.95rem !important; }
.info-alt a { color: var(--accent); font-weight: 600; }
.c-form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.c-form .lead-body { display: grid; gap: 16px; }
.c-form .lead-body[hidden] { display: none; }
.c-form .lead-done { padding: 12px 0; }
.c-form .lead-done .btn { justify-self: start; }

/* ---------- Barra fija ---------- */
.c-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s ease;
}
.c-bar.show { transform: none; }
.c-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Con la barra visible, el botón de WhatsApp sube para no taparla */
.help { transition: bottom .35s ease; }
body.bar-on .help { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 66px); }
.c-bar-inner > span { display: grid; line-height: 1.25; min-width: 0; }
.c-bar-meta { font-size: 0.82rem; color: var(--muted); }
.page-curso .site-footer { padding-bottom: 80px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .c-hero { grid-template-columns: minmax(0, 1fr); }
  .c-hero-art { max-width: 560px; margin-inline: 12px; }
  .c-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-facts div:nth-child(3) { border-left: 0; }
  .c-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }

  /* En celular el panel queda arriba y los textos pasan por debajo */
  .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-sticky { grid-column: 1; top: 64px; height: auto; z-index: 2; padding: 12px 0; background: var(--sky); }
  .cs-stage { aspect-ratio: 4 / 3.3; max-height: 44vh; margin-inline: auto; }
  .cs-steps { grid-row: 2; padding-bottom: 10vh; }
  .cs-step, .cs-step:first-child { min-height: 62vh; align-content: start; padding-top: 6vh; }
  .cs-step h3 { font-size: 1.5rem; }

  .gain-list, .voice-grid { grid-template-columns: minmax(0, 1fr); }
  .who-inner, .info-inner { grid-template-columns: minmax(0, 1fr); }
  .road { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 26px; }
  .road-line { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .road-line i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .cs-path-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sheet { width: 52%; }
  .sh-a { left: 40%; } .sh-c { left: 44%; }
  .src-ico { width: 32px; height: 32px; } .src li { font-size: 0; gap: 0; }
  .tbl { width: 29%; } .tbl header { font-size: 0.7rem; padding: 6px 8px; } .tbl span { font-size: 0.6rem; padding: 3px 8px; } .t-main { left: 35.5%; } .t1, .t3 { left: 3%; } .t2, .t4 { right: 3%; }
  .kpi { padding: 8px; } .kpi small, .kpi span { font-size: 0.64rem; }
  .callout { left: 12%; max-width: 80%; font-size: 0.72rem; }
  .s5-chip { font-size: 0.74rem; padding: 8px 10px; }
  .c-bar-meta { display: none; }
  .c-bar .btn { padding: 9px 14px; font-size: 0.88rem; }
  .c-float--kpi { left: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene > *, .bars i, .links path, .road-leg { transition: none !important; }
  .c-float, .c-hero-frame, .flow path, .c-float--sync svg, .s5-chip.sync svg { animation: none !important; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.c-bar .btn { white-space: nowrap; }
@media (max-width: 560px) { .c-bar-inner strong { font-size: 0.88rem; line-height: 1.25; } }

/* ---------- Certificado ---------- */
.cert-sec { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.cert-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px clamp(28px, 5vw, 64px); align-items: center; }
.cert-fig { margin: 0; display: grid; gap: 10px; }
.cert-img { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cert-img img { width: 100%; height: auto; }
.cert-fig figcaption { font-family: var(--f-data); font-size: 0.74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pin {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; color: var(--on-accent); background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 6px 14px -4px rgba(0, 0, 0, .35);
}
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cert-list li { display: flex; gap: 14px; align-items: flex-start; }
.cert-list b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; color: var(--on-accent); background: var(--brand); }
.cert-list span { display: grid; gap: 2px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.cert-list strong { color: var(--ink); font-size: 1.02rem; }
.cert-note { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.road-leg a { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: minmax(0, 1fr); } .pin { width: 22px; height: 22px; font-size: 0.7rem; } }

/* Ajustes de la revisión de diseño */
.c-form .lead-body { padding: 0; }
@media (max-width: 760px) {
  /* El botón de WhatsApp queda abajo a la derecha: que no tape el texto de la historia */
  .cs-step p { padding-right: 56px; }
}
@media (max-width: 560px) { .cs-path-list { grid-template-columns: minmax(0, 1fr); } }
