/* ==========================================================
   ADN Geofase · Plataforma de inducción
   Paleta corporativa: azul marino + menta. Sin degradados.
   ========================================================== */
:root {
  --navy: #000028;
  --navy-2: #12124a;
  --navy-line: #21245a;
  --accent: #00ffb9;
  --accent-d: #00d9a0;
  --accent-ink: #007a5c;
  --gray-bar: #e9e9ec;
  --soft: #f4f4f6;
  --line: #dcdde3;
  --line-2: #c4c6d0;
  --text: #000028;
  --body: #3b3f55;
  --muted: #6b6f80;
  --ok: #007a5c;
  --ok-bg: #dcf7ee;
  --warn: #8a5a00;
  --warn-bg: #fff1d1;
  --no: #b42318;
  --no-bg: #fde7e4;
  --info: #23308f;
  --info-bg: #e6e8fb;
  --pad: clamp(16px, 4vw, 56px);
  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--body); background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--text); margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(28px, 3.2vw, 40px); }
h2 { font-size: clamp(22px, 2.2vw, 28px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
code { font-family: Consolas, 'Courier New', monospace; background: var(--soft); padding: 2px 6px; color: var(--text); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent-d); outline-offset: 2px; }

.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.ico-fill { fill: currentColor; stroke: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--navy); padding: 8px 14px; z-index: 10000; font-weight: 700; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.eyebrow.on-dark { color: var(--accent); }
.lead { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 860px; }
.c-ok { color: var(--ok); margin-right: 6px; }
.c-muted { color: var(--line-2); margin-right: 6px; }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border: 2px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: .2px; transition: background .15s, color .15s, border-color .15s;
}
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-d); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); border-bottom: 2px solid transparent; }
.text-link:hover { border-color: var(--accent-d); }
.text-link .ico { width: 1em; height: 1em; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--text); background: none; border: 1px solid transparent; cursor: pointer; }
.icon-link:hover { border-color: var(--line-2); background: var(--soft); }
form.inline { display: inline; }

/* ---------------- Encabezado corporativo ---------------- */
.hd-top, .hd-nav { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); }
.hd-top { height: 76px; border-bottom: 1px solid var(--navy-line); }
.hd-nav { height: 60px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 18px; color: #fff; }
.brand img { height: 46px; width: auto; }
.brand-div { width: 2px; height: 34px; background: #00a7a0; }
.brand-prod { font-size: 18px; font-weight: 700; letter-spacing: 3px; line-height: 1; }
.brand-prod small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 2.4px; color: var(--accent); margin-top: 6px; text-transform: uppercase; }
.hd-util { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.hd-util .item { display: flex; align-items: center; gap: 8px; color: #fff; background: none; border: 0; font-size: 15px; cursor: pointer; padding: 0; }
.hd-util a.item:hover, .hd-util button.item:hover { color: var(--accent); }
.hd-util .ico { width: 22px; height: 22px; }
.hd-util .chev { width: 14px; height: 14px; }
.hd-divider { width: 2px; height: 30px; background: #00a7a0; }
.avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--navy); font-weight: 700; font-size: 14px; letter-spacing: .5px; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; background: var(--navy); color: var(--accent); }
.user-menu { position: relative; }
.user-drop {
  position: absolute; right: 0; top: calc(100% + 18px); width: 260px; background: #fff; color: var(--text);
  border-top: 3px solid var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 40, .25); z-index: 500; display: none;
}
.user-menu.open .user-drop { display: block; }
.ud-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ud-head strong { display: block; font-size: 15px; }
.ud-head span { font-size: 13px; color: var(--muted); word-break: break-all; }
.user-drop a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--soft); }
.user-drop a:hover { background: var(--soft); }

.hd-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.hd-nav li a { display: inline-block; font-size: 16px; color: #fff; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; white-space: nowrap; }
.hd-nav li a:hover, .hd-nav li a.active { color: var(--accent); border-color: var(--accent); }
.hd-nav li a.hl { color: var(--accent); }
.hd-progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #c9cbe0; white-space: nowrap; }
.hd-progress strong { color: #fff; font-size: 15px; }
.hp-bar { width: 150px; height: 6px; background: var(--navy-line); display: block; }
.hp-bar span { display: block; height: 100%; background: var(--accent); }

.hd-sub { background: var(--gray-bar); min-height: 60px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hd-sub .prod { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-sub nav { display: flex; align-items: center; gap: 32px; }
.hd-sub nav a { font-size: 14px; font-weight: 600; color: var(--text); padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.hd-sub nav a:hover { border-color: var(--text); }
.btn-try { background: var(--accent); color: var(--navy) !important; font-weight: 700 !important; padding: 11px 16px !important; border: 0 !important; transition: background .15s; }
.btn-try:hover { background: var(--accent-d); }

.breadcrumb { padding: 0 var(--pad); height: 52px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4a4e63; border-bottom: 1px solid var(--line); }
.breadcrumb .ico { width: 20px; height: 20px; color: var(--text); }
.breadcrumb .sep { width: 12px; height: 12px; stroke-width: 2.5; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb .cur { color: var(--muted); }
.site-main { flex: 1; }

/* ---------------- Toasts ---------------- */
#toasts { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { --tc: var(--info); background: #fff; color: var(--text); pointer-events: auto; border-left: 4px solid var(--tc); box-shadow: 0 10px 30px rgba(0, 0, 40, .22); position: relative; overflow: hidden; animation: toast-in .35s cubic-bezier(.2, 1.1, .4, 1) both; }
.toast.out { animation: toast-out .3s ease-in both; }
.toast.ok { --tc: var(--accent-d); }
.toast.warn { --tc: #e0a100; }
.toast.error { --tc: var(--no); }
.t-head { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 8px 6px 12px; display: flex; justify-content: space-between; align-items: center; }
.t-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 0; display: flex; }
.t-close .ico { width: 16px; height: 16px; }
.t-body { display: flex; gap: 12px; padding: 12px 14px 14px; align-items: flex-start; }
.t-body p { margin: 0; font-size: 14px; line-height: 1.45; }
.t-ico { color: var(--tc); width: 22px; height: 22px; }
.toast.ok .t-ico { color: var(--accent-ink); }
.t-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--tc); animation: toast-bar 6s linear forwards; }
@keyframes toast-in { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateX(110%); opacity: 0; } }
@keyframes toast-bar { from { width: 100%; } to { width: 0; } }

/* ---------------- Secciones de página ---------------- */
.page-intro { padding: 36px var(--pad) 32px; border-bottom: 1px solid var(--line); }
.page-intro h1 { margin-bottom: 12px; }
.page-intro .lead { margin-bottom: 0; }
.page-intro .btn { margin-top: 20px; }
.page-intro.with-media { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.intro-img { width: 100%; height: 200px; object-fit: contain; }
.inline-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.inline-stats > span { padding: 14px 28px 0 0; margin-right: 28px; font-size: 15px; color: var(--muted); border-right: 1px solid var(--line); }
.inline-stats > span:last-child { border-right: 0; }
.inline-stats strong { color: var(--text); font-size: 18px; }

.band { padding: 48px var(--pad); border-bottom: 1px solid var(--line); }
.band-alt { background: var(--soft); }
.band-flush { padding: 0; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.band-head h2 { margin-bottom: 6px; }
.band-head p { margin: 0; max-width: 760px; }
.band-head.padded { padding: 36px var(--pad) 0; margin-bottom: 20px; }

/* ---------------- Hero ---------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 440px; border-bottom: 1px solid var(--line); }
.hero-text { padding: 48px var(--pad); display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 { margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-media { margin: 0; position: relative; border-left: 4px solid var(--accent); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Indicadores ---------------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: #fff; }
.stat { padding: 28px var(--pad); border-right: 1px solid var(--navy-line); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 40px; font-weight: 700; line-height: 1; color: #fff; }
.stat-num small { font-size: 18px; font-weight: 400; color: #9a9dbd; margin-left: 4px; }
.stat-lbl { font-size: 14px; color: #c9cbe0; display: inline-flex; align-items: center; gap: 6px; }
.stat .bar { margin-top: 8px; background: var(--navy-line); }
.stat .bar span { background: var(--accent); }
.stat-link { display: flex; flex-direction: column; gap: 6px; }
.stat-link:hover .stat-lbl { color: var(--accent); }

.bar { display: block; width: 100%; height: 6px; background: var(--gray-bar); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent-d); transition: width .4s ease; }

/* ---------------- Píldoras de estado ---------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; background: var(--gray-bar); color: var(--text); }
.pill .ico { width: 14px; height: 14px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.no { background: var(--no-bg); color: var(--no); }
.pill.progress { background: var(--info-bg); color: var(--info); }
.pill.open { background: var(--navy); color: var(--accent); }
.pill.locked { background: var(--soft); color: var(--muted); }

/* ---------------- Filtro segmentado ---------------- */
.seg-filter { display: flex; flex-wrap: wrap; border: 1px solid var(--navy); }
.seg-filter button, .seg-filter a { background: #fff; border: 0; border-right: 1px solid var(--navy); padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.seg-filter > :last-child { border-right: 0; }
.seg-filter .active { background: var(--navy); color: var(--accent); }
.seg-filter.as-links { display: inline-flex; margin-top: 22px; }

/* ---------------- Ruta de aprendizaje ---------------- */
.route { border-top: 2px solid var(--navy); }
.route-week-head { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); background: #fff; }
.route-week-head span { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-ink); min-width: 92px; }
.route-week-head strong { color: var(--text); font-size: 15px; }
.route-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 200px 170px 130px 48px; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .15s;
}
.route-row:hover { background: var(--soft); }
.rr-num { font-size: 34px; font-weight: 300; color: var(--text); letter-spacing: -1px; line-height: 1; }
.st-ok .rr-num { color: var(--accent-ink); }
.rr-main h3 { font-size: 18px; margin-bottom: 4px; }
.rr-main h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent-d); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rr-main p { margin: 0; font-size: 14px; color: var(--muted); }
.rr-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.rr-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rr-progress { display: flex; align-items: center; gap: 10px; }
.rr-pct { font-size: 13px; font-weight: 700; color: var(--text); min-width: 40px; text-align: right; }
.rr-go { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--navy); color: var(--navy); transition: background .15s, color .15s; }
a.rr-go:hover { background: var(--accent); border-color: var(--accent); }
.route-row.is-locked { opacity: .6; }
.route-row.is-locked .rr-go { border-color: var(--line-2); color: var(--muted); }
.route-week[hidden] { display: none; }

/* ---------------- Bandas divididas ---------------- */
.split-band { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.split-col { padding: 48px var(--pad); }
.split-col.alt { background: var(--soft); border-left: 1px solid var(--line); }
.split-col h2 { margin-bottom: 22px; }

.def-list { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; margin: 0 0 1.2em; border-top: 1px solid var(--line); }
.def-list dt, .def-list dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.def-list dt { font-weight: 700; color: var(--text); padding-right: 20px; }

.structure-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.structure-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--text); font-weight: 600; }
.structure-list .sl-num { font-size: 13px; color: var(--accent-ink); font-weight: 700; width: 26px; }
.structure-list .ico { color: var(--muted); }

.weeks { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.week-col { padding: 0 24px 8px; border-right: 1px solid var(--line); border-top: 4px solid var(--accent); padding-top: 22px; display: flex; flex-direction: column; }
.week-num { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-ink); }
.week-col h3 { font-size: 17px; margin: 8px 0 8px; }
.week-col p { font-size: 14px; color: var(--muted); }
.week-col ul { list-style: none; margin: 0 0 16px; padding: 0; }
.week-col li { display: flex; gap: 8px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.week-col li .ico { color: var(--line-2); margin-top: 2px; }
.week-col li.done .ico { color: var(--accent-ink); }
.week-state { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--text); }

/* ---------------- Portada del módulo ---------------- */
.mod-cover { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 380px; border-bottom: 1px solid var(--line); }
.mc-text { padding: 44px var(--pad); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.mc-text h1 { margin-bottom: 14px; }
.mc-objective { font-size: 18px; max-width: 760px; }
.mc-objective strong { color: var(--text); }
.mc-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.mc-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.mc-progress { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 520px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.mc-progress .bar { flex: 1; height: 8px; }
.mc-progress strong { color: var(--text); }
.mc-media { margin: 0; position: relative; border-left: 4px solid var(--accent); background: var(--soft); overflow: hidden; }
.mc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-logo { display: flex; align-items: center; justify-content: center; background: #fff; }
.mc-logo img { position: static; width: 70%; max-width: 420px; height: auto; object-fit: contain; }
.mc-number { background: var(--navy); display: flex; align-items: center; justify-content: center; }
.mc-number span { font-size: clamp(120px, 16vw, 220px); font-weight: 200; color: #fff; letter-spacing: -8px; line-height: 1; position: relative; z-index: 1; }
.mc-number i { position: absolute; background: var(--accent); border-radius: 50%; }
.mc-number i:nth-of-type(1) { width: 18px; height: 18px; right: 18%; top: 20%; }
.mc-number i:nth-of-type(2) { width: 12px; height: 12px; right: 26%; top: 14%; opacity: .7; }
.mc-number i:nth-of-type(3) { width: 9px; height: 9px; right: 32%; top: 10%; opacity: .5; }
.mc-number i:nth-of-type(4) { width: 14px; height: 14px; left: 16%; bottom: 18%; opacity: .85; }
.mc-number i:nth-of-type(5) { width: 8px; height: 8px; left: 23%; bottom: 24%; opacity: .55; }

/* ---------------- Estructura del módulo ---------------- */
.mod-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.mod-aside { border-right: 1px solid var(--line); background: var(--soft); }
.ma-inner { position: sticky; top: 0; padding: 28px 24px; max-height: 100vh; overflow-y: auto; }
.ma-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ma-list { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line-2); }
.ma-list li { border-bottom: 1px solid var(--line-2); }
.ma-list a { display: flex; align-items: center; gap: 10px; padding: 11px 6px 11px 0; font-size: 14px; color: var(--text); border-left: 3px solid transparent; padding-left: 8px; transition: background .15s; }
.ma-list a:hover { background: #fff; }
.ma-list li.current a { border-left-color: var(--accent-d); background: #fff; font-weight: 700; }
.ma-state { display: inline-flex; color: var(--line-2); }
.ma-list li.done .ma-state { color: var(--accent-ink); }
.ma-state .s-on, .ma-list li.done .ma-state .s-off { display: none; }
.ma-list li.done .ma-state .s-on { display: inline; }
.ma-n { font-size: 12px; color: var(--muted); font-weight: 700; width: 20px; }
.ma-progress { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.ma-nav { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.ma-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.ma-nav a:hover { color: var(--accent-ink); }

.mod-content { min-width: 0; }
.mod-sec { padding: 44px var(--pad) 36px; border-bottom: 1px solid var(--line); }
.mod-sec:last-child { border-bottom: 0; }
.sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; margin-bottom: 22px; }
.sec-num { grid-row: span 2; font-size: 15px; font-weight: 700; color: var(--navy); background: var(--accent); width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; align-self: start; }
.sec-head .eyebrow { margin-bottom: 4px; }
.sec-head h2 { grid-column: 2; }
.sec-foot { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; justify-content: flex-end; }
.big-question { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; color: var(--text); font-weight: 600; max-width: 980px; border-left: 4px solid var(--accent); padding-left: 24px; margin: 8px 0 22px; }
.sec-hint { display: flex; gap: 10px; color: var(--muted); font-size: 15px; max-width: 900px; margin: 0; }
.sec-hint .ico { margin-top: 3px; color: var(--accent-ink); }

.btn-done { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 1px solid var(--navy); background: #fff; color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.btn-done span { display: inline-flex; align-items: center; gap: 8px; }
.btn-done .when-on { display: none; }
.btn-done:hover { background: var(--navy); color: #fff; }
.btn-done.is-done { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.btn-done.is-done .when-on { display: inline-flex; }
.btn-done.is-done .when-off { display: none; }
.btn-done.busy { opacity: .6; pointer-events: none; }

/* ---------------- Contenido enriquecido ---------------- */
.rich { max-width: 1100px; }
.rich h3 { font-size: 21px; margin: 36px 0 14px; display: flex; align-items: baseline; gap: 12px; }
.rich > h3:first-child { margin-top: 0; }
.rich h3 .num { font-size: 14px; font-weight: 700; color: var(--accent-ink); letter-spacing: 1px; }
.rich h4 { margin: 26px 0 10px; font-size: 16px; }
.rich p { max-width: 900px; }
.rich a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rich ul, .rich ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; max-width: 980px; }
.rich li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--soft); }
.rich ul > li::before { content: ""; position: absolute; left: 6px; top: 18px; width: 8px; height: 8px; background: var(--accent-d); }
.rich ol { counter-reset: n; }
.rich ol > li { counter-increment: n; padding-left: 44px; }
.rich ol > li::before { content: counter(n); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; background: var(--navy); color: var(--accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rich ul.check-list > li::before { width: 6px; height: 12px; background: none; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); left: 8px; top: 12px; }
.rich ul.x-list > li::before { content: "\00d7"; background: none; width: auto; height: auto; color: var(--no); font-size: 22px; font-weight: 700; left: 4px; top: 2px; }
.rich .cols-2 { columns: 2; column-gap: 48px; max-width: none; }
.rich .cols-2 li { break-inside: avoid; }
.statement { font-size: 20px; line-height: 1.5; color: var(--text); font-weight: 600; border-left: 4px solid var(--accent); padding: 4px 0 4px 22px; margin: 18px 0 22px; max-width: 980px; }
.note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--line-2); padding-left: 14px; margin-top: 12px; }
blockquote { margin: 0; }
.quote { font-size: 18px; line-height: 1.6; color: var(--text); padding: 20px 0 20px 26px; border-left: 4px solid var(--navy); margin: 18px 0 22px; font-style: italic; max-width: 980px; }
.formula { font-family: Consolas, 'Courier New', monospace; font-size: 18px; color: var(--text); background: var(--soft); padding: 16px 20px; border-left: 4px solid var(--accent); display: inline-block; }

.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 700; padding: 12px 14px; font-size: 14px; letter-spacing: .2px; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.data-table td:first-child { color: var(--text); font-weight: 600; }
.data-table tbody tr:nth-child(even) td { background: #fafafb; }
.data-table.narrow { max-width: 560px; }
.data-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr.total td { font-weight: 700; color: var(--text); border-top: 2px solid var(--navy); }

.ods-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; max-width: none !important; border-top: 2px solid var(--navy); }
.rich .ods-list li { padding: 16px 16px 16px 0; border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.rich .ods-list li + li { padding-left: 16px; }
.rich .ods-list li:last-child { border-right: 0; }
.rich .ods-list li::before { display: none; }
.ods-list b { font-size: 22px; color: var(--text); }
.ods-list span { font-size: 14px; }

.lines-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy); margin: 8px 0 24px; }
.lines-3 section { padding: 22px 24px 8px 0; border-right: 1px solid var(--line); }
.lines-3 section + section { padding-left: 24px; }
.lines-3 section:last-child { border-right: 0; }
.lines-3 .tag { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: var(--accent); color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.lines-3 h4 { margin: 0 0 10px; font-size: 18px; }
.lines-3 li { font-size: 15px; }

.sequence { display: flex; flex-wrap: wrap; gap: 0; max-width: none !important; }
.sequence span { position: relative; padding: 10px 26px 10px 14px; background: var(--soft); color: var(--text); font-weight: 600; font-size: 14px; margin: 0 6px 6px 0; border-left: 3px solid var(--accent-d); }
.sequence span:not(:last-child)::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border: solid var(--muted); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }

.versus { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--navy); }
.versus > div { padding: 22px 24px 4px 0; }
.versus > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.versus h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.vs-bad h4 { color: var(--no); }
.vs-good h4 { color: var(--ok); }
.versus blockquote { font-size: 17px; font-style: italic; color: var(--text); padding-left: 16px; margin-bottom: 14px; }
.vs-bad blockquote { border-left: 4px solid var(--no); }
.vs-good blockquote { border-left: 4px solid var(--accent-d); }

/* Calculadora de precio */
.price-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 2px solid var(--navy); margin-top: 12px; max-width: 1000px; }
.pc-inputs { padding: 20px 24px 20px 0; display: grid; gap: 12px; }
.pc-inputs label { display: grid; grid-template-columns: 1fr 160px; align-items: center; gap: 12px; font-size: 14px; color: var(--text); font-weight: 600; }
.pc-inputs input { height: 40px; border: 1px solid var(--line-2); padding: 0 10px; font-size: 15px; font-family: inherit; text-align: right; }
.pc-results { padding: 20px 0 20px 24px; border-left: 1px solid var(--line); }
.pc-results div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pc-results strong { font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.pc-results strong.muted { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.pc-bar { grid-column: 1 / -1; display: flex; height: 14px; background: var(--gray-bar); }
.pc-bar span { display: block; height: 100%; transition: width .3s; }
.pc-bar [data-bar="cost"] { background: var(--navy); }
.pc-bar [data-bar="profit"] { background: var(--accent); }

/* ---------------- Video ---------------- */
.video-frame { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; background: var(--navy); margin-bottom: 14px; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-pending { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #c9cbe0; padding: 24px; gap: 10px; }
.vp-ico { width: 84px; height: 84px; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 8px; }
.vp-ico .ico { width: 34px; height: 34px; margin-left: 5px; }
.video-pending strong { color: #fff; font-size: 20px; }
.video-pending p { max-width: 560px; margin: 0; font-size: 15px; }
.vp-dur { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); margin-top: 6px; }

/* ---------------- Infografías ---------------- */
.infographic { margin: 0 0 40px; max-width: 1200px; }
.infographic:last-of-type { margin-bottom: 0; }
.infographic figcaption { font-size: 17px; font-weight: 700; color: var(--text); padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--navy); display: flex; flex-direction: column; gap: 4px; }
.ig-num { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-ink); }

.ig-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.ig-flow li { position: relative; padding: 0 28px 0 0; }
.ig-flow li::after { content: ""; position: absolute; top: 21px; left: 52px; right: 8px; height: 2px; background: var(--line-2); }
.ig-flow li:last-child::after { display: none; }
.ig-flow li:not(:last-child)::before { content: ""; position: absolute; right: 6px; top: 16px; width: 10px; height: 10px; border: solid var(--line-2); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.igf-n { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--accent); font-weight: 700; margin-bottom: 14px; position: relative; z-index: 1; }
.ig-flow li:last-child .igf-n { background: var(--accent); color: var(--navy); }
.ig-flow strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.ig-flow p { font-size: 14px; color: var(--muted); margin: 0; }

.ig-equation { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.ige-item { flex: 1; min-width: 180px; padding: 26px 24px; border: 2px solid var(--navy); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.ige-item strong { font-size: 34px; color: var(--text); letter-spacing: 2px; }
.ige-item span { font-size: 14px; color: var(--muted); }
.ige-item.result { flex: 2; background: var(--navy); }
.ige-item.result strong { color: #fff; font-size: 24px; letter-spacing: 0; }
.ige-item.result span { color: var(--accent); }
.ige-op { display: flex; align-items: center; justify-content: center; width: 56px; font-size: 34px; font-weight: 300; color: var(--accent-ink); }

.ig-compare { border-top: 1px solid var(--line); }
.igc-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.igc-row > span { padding: 12px 16px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.igc-row .k { font-weight: 700; color: var(--text); padding-left: 0; }
.igc-row .a { background: var(--ok-bg); color: var(--text); font-weight: 600; }
.igc-row .a .ico { color: var(--ok); }
.igc-row .b { color: var(--muted); }
.igc-head > span { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.igc-head .a { background: var(--accent); color: var(--navy); }
.igc-head .b { background: var(--gray-bar); color: var(--text); }

.ig-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 4px solid var(--navy); }
.ig-timeline li { position: relative; padding: 26px 18px 0 0; }
.ig-timeline li::before { content: ""; position: absolute; top: -12px; left: 0; width: 20px; height: 20px; background: #fff; border: 4px solid var(--accent-d); border-radius: 50%; }
.igt-y { display: block; font-size: 24px; font-weight: 700; color: var(--text); }
.ig-timeline strong { display: block; color: var(--text); font-size: 15px; margin: 4px 0 6px; }
.ig-timeline p { font-size: 13px; color: var(--muted); margin: 0; }

.ig-tree { display: flex; flex-direction: column; align-items: center; }
.igtr-root { background: var(--navy); color: #fff; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 14px 36px; position: relative; }
.igtr-root::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 2px; height: 24px; background: var(--navy); }
.igtr-branches { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 24px; border-top: 2px solid var(--navy); }
.igtr-branch { padding: 22px 20px 0; position: relative; border-right: 1px solid var(--line); }
.igtr-branch:last-child { border-right: 0; }
.igtr-branch::before { content: ""; position: absolute; top: -2px; left: 50%; width: 2px; height: 14px; background: var(--navy); }
.igtr-branch strong { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; margin-bottom: 10px; }
.igtr-branch strong span { width: 30px; height: 30px; background: var(--accent); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.igtr-branch ul { list-style: none; margin: 0; padding: 0; }
.igtr-branch li { font-size: 14px; padding: 7px 0 7px 14px; border-bottom: 1px solid var(--soft); position: relative; }
.igtr-branch li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 2px; background: var(--accent-d); }

.ig-letters { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.igl-item { padding: 22px 22px 6px 0; border-right: 1px solid var(--line); }
.igl-item + .igl-item { padding-left: 22px; }
.igl-item:last-child { border-right: 0; }
.igl-l { display: block; font-size: 72px; font-weight: 700; line-height: 1; color: var(--navy); margin-bottom: 10px; }
.igl-item:nth-child(even) .igl-l { color: var(--accent-ink); }
.igl-item strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.igl-item p { font-size: 14px; color: var(--muted); margin: 0; }

.ig-canvas { display: grid; gap: 0; border-top: 2px solid var(--navy); border-left: 1px solid var(--line);
  grid-template-columns: repeat(5, 1fr);
  grid-template-areas: "al ac va rl cl" "al re va ca cl" "co co co in in"; }
.igcv-cell { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 120px; }
.igcv-cell strong { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.igcv-cell p { margin: 0; font-size: 14px; color: var(--text); }
.igcv-cell[style*="va"] { background: var(--navy); }
.igcv-cell[style*="va"] strong { color: var(--accent); }
.igcv-cell[style*="va"] p { color: #fff; font-size: 16px; }

.ig-stack .igs-bar { display: flex; height: 54px; margin-bottom: 20px; }
.igs-seg { display: block; height: 100%; border-right: 2px solid #fff; }
.igs-seg.s0, .igs-legend i.s0 { background: var(--navy); }
.igs-seg.s1, .igs-legend i.s1 { background: #2e3170; }
.igs-seg.s2, .igs-legend i.s2 { background: #5c5f99; }
.igs-seg.s3, .igs-legend i.s3 { background: #9497c2; }
.igs-seg.accent, .igs-legend i.accent { background: var(--accent); }
.igs-legend { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.igs-legend li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.igs-legend i { width: 14px; height: 14px; display: block; }
.igs-legend strong { color: var(--text); font-variant-numeric: tabular-nums; }
.igs-legend .igs-total { grid-template-columns: 1fr auto; border-bottom: 2px solid var(--navy); font-weight: 700; color: var(--text); }

.ig-traffic { display: grid; grid-template-columns: repeat(3, 1fr); }
.igtf-col { padding: 0 22px 0 0; border-top: 6px solid; }
.igtf-col + .igtf-col { padding-left: 22px; border-left: 1px solid var(--line); }
.igtf-col.ok { border-top-color: var(--accent-d); }
.igtf-col.warn { border-top-color: #e0a100; }
.igtf-col.no { border-top-color: var(--no); }
.igtf-col strong { display: flex; align-items: center; gap: 10px; padding: 16px 0 10px; font-size: 17px; color: var(--text); }
.igtf-col strong i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.igtf-col.ok strong i { background: var(--accent-d); }
.igtf-col.warn strong i { background: #e0a100; }
.igtf-col.no strong i { background: var(--no); }
.igtf-col ul { list-style: none; margin: 0; padding: 0; }
.igtf-col li { font-size: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); }

.ig-groups { display: grid; grid-template-columns: 180px 1fr; align-items: stretch; }
.igg-center { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; position: relative; }
.igg-center::after { content: ""; position: absolute; right: -10px; top: 50%; width: 20px; height: 20px; background: var(--navy); transform: translateY(-50%) rotate(45deg); }
.igg-list { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); }
.igg-group { padding: 18px 18px 10px 24px; border-right: 1px solid var(--line); }
.igg-group:last-child { border-right: 0; }
.igg-group strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.igg-group ul { list-style: none; margin: 0; padding: 0; }
.igg-group li { font-size: 14px; padding: 5px 0; color: var(--body); }

/* ---------------- Actividad y entregable ---------------- */
.deliverable { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-left: 4px solid var(--navy); padding: 14px 18px; margin: 18px 0 24px; max-width: 1100px; color: var(--text); }
.deliverable .ico { margin-top: 2px; }
.sub-status { border-top: 2px solid var(--navy); padding: 14px 0; margin-bottom: 18px; max-width: 1100px; }
.ss-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.ss-feedback { margin-top: 14px; padding: 14px 18px; border-left: 4px solid var(--accent-d); background: var(--ok-bg); color: var(--text); }
.st-observaciones .ss-feedback { border-left-color: #e0a100; background: var(--warn-bg); }
.ss-feedback strong { display: block; margin-bottom: 6px; }
.ss-feedback p { margin: 0; }
.activity-form { max-width: 1100px; }
.ws-title { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 8px 0 12px; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ws-table th { text-align: left; background: var(--navy); color: #fff; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
.ws-table tbody th { background: var(--soft); color: var(--text); font-weight: 600; white-space: normal; min-width: 200px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ws-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ws-table td { border-bottom: 1px solid var(--line); padding: 6px; vertical-align: top; min-width: 180px; }
.ws-table input, .ws-table select, .ws-table textarea { width: 100%; border: 1px solid var(--line); padding: 8px; font: inherit; font-size: 14px; background: #fff; }
.ws-table textarea { resize: vertical; min-height: 64px; }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 15px; color: var(--text); padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
.field input, .field select { height: 46px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .ws-table :is(input, select, textarea):focus, .pc-inputs input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 217, 160, .35); }
.field textarea[readonly], .ws-table [readonly], .ws-table [disabled] { background: var(--soft); }
.field.compact { margin: 0; }
.field.compact > span { font-size: 12px; }
.field.compact input { height: 40px; }
.word-count { font-size: 13px; color: var(--muted); }
.word-count.ok { color: var(--ok); font-weight: 700; }
.file-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.file-pick { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px dashed var(--navy); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; position: relative; }
.file-pick:hover { background: var(--soft); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick.disabled { opacity: .5; pointer-events: none; }
.file-current { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); border-bottom: 2px solid var(--accent-d); }

/* ---------------- Comprobación ---------------- */
.quiz-form { max-width: 1000px; }
.quiz-q { border: 0; margin: 0 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.quiz-q legend { display: flex; gap: 14px; font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 14px; padding: 0; }
.quiz-q legend span { font-size: 14px; color: var(--accent-ink); font-weight: 700; padding-top: 2px; }
.quiz-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); margin: 0 0 8px 34px; cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s; }
.quiz-opt:hover { border-color: var(--navy); }
.quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qo-mark { width: 30px; height: 30px; border: 1px solid var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--navy); flex: none; }
.quiz-opt:has(input:checked) { border-color: var(--navy); background: var(--soft); }
.quiz-opt:has(input:checked) .qo-mark { background: var(--navy); color: var(--accent); }
.quiz-opt:has(input:focus-visible) { outline: 2px solid var(--accent-d); outline-offset: 2px; }
.quiz-result { display: flex; gap: 24px; align-items: center; padding: 22px 0; border-top: 4px solid var(--accent-d); border-bottom: 1px solid var(--line); margin-bottom: 20px; max-width: 1000px; }
.quiz-result.failed { border-top-color: #e0a100; }
.qr-score { font-size: 56px; font-weight: 700; color: var(--text); line-height: 1; }
.qr-score small { font-size: 22px; color: var(--muted); }
.quiz-result strong { font-size: 19px; color: var(--text); }
.quiz-result p { margin: 4px 0 0; }
.quiz-review { list-style: none; margin: 0 0 22px; padding: 0; max-width: 1000px; }
.quiz-review li { padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--accent-d); margin-bottom: 4px; }
.quiz-review li.bad { border-left-color: var(--no); }
.qv-q { display: flex; gap: 10px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.quiz-review li.ok .qv-q .ico { color: var(--ok); }
.quiz-review li.bad .qv-q .ico { color: var(--no); }
.qv-a, .qv-f { margin: 0 0 4px 30px; font-size: 14px; }
.qv-f { color: var(--muted); }
.attempts { margin-top: 28px; }
.attempts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.attempts li { display: flex; gap: 10px; align-items: center; font-size: 13px; }

/* ---------------- Material de consulta ---------------- */
.ref-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--navy); max-width: 1100px; }
.ref-list.wide { max-width: none; columns: 2; column-gap: 48px; }
.ref-list li { break-inside: avoid; }
.ref-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }
.ref-list a:hover { color: var(--accent-ink); }
.ref-list small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.sub-h { font-size: 16px; margin: 8px 0 12px; }
.res-list { list-style: none; margin: 0; padding: 0; max-width: 1100px; }
.res-list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.res-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 14px; }

.mod-pager { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); }
.mod-pager > * { padding: 30px var(--pad); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.mod-pager > a:hover { background: var(--navy-2); }
.mod-pager span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.mod-pager strong { font-size: 19px; }
.mod-pager small { color: #9a9dbd; }
.mp-next { text-align: right; align-items: flex-end; border-left: 1px solid var(--navy-line); }
.mp-next.is-locked { opacity: .55; }

/* ---------------- Tablas de listado ---------------- */
.list-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.list-table th { text-align: left; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 16px; border-bottom: 2px solid var(--navy); white-space: nowrap; background: #fff; }
.list-table th:first-child, .list-table td:first-child { padding-left: var(--pad); }
.list-table th:last-child, .list-table td:last-child { padding-right: var(--pad); }
.list-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--body); }
.list-table tbody tr:hover td { background: var(--soft); }
.list-table tr.is-locked td { color: var(--muted); }
.list-table .actions { text-align: right; white-space: nowrap; }
.list-table .empty { text-align: center; color: var(--muted); padding: 40px; }
.lt-num { display: inline-block; font-weight: 700; color: var(--accent-ink); margin-right: 12px; font-size: 14px; }
.who { display: flex; align-items: center; gap: 12px; }
.who > span:last-child { display: flex; flex-direction: column; }
.who strong { color: var(--text); }
.who small { font-size: 13px; color: var(--muted); }
.progress-cell { min-width: 180px; }
.progress-cell { display: flex; align-items: center; gap: 10px; }
.progress-cell .bar { flex: 1; }
.list-table td.progress-cell { display: table-cell; }
.list-table td.progress-cell .bar { display: inline-block; width: calc(100% - 56px); vertical-align: middle; margin-right: 8px; }
.feedback-cell small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.index-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.index-list.cols-2 { columns: 2; column-gap: 48px; }
.index-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.il-n { font-weight: 700; color: var(--accent-ink); font-size: 14px; }
.il-t { color: var(--text); font-weight: 600; }

/* ---------------- Formularios generales ---------------- */
.form-alert { display: flex; gap: 12px; align-items: flex-start; background: var(--no-bg); color: var(--no); border-left: 4px solid var(--no); padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.form-alert ul { margin: 0; padding-left: 16px; }
.stack-form { max-width: 520px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; background: none; border: 0; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--text); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* ---------------- Inicio de sesión ---------------- */
.login-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 100vh; }
.login-brand { background: var(--navy); color: #c9cbe0; padding: 48px var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; border-right: 4px solid var(--accent); }
.login-logo { width: 220px; height: auto; }
.login-copy h1 { color: #fff; font-size: clamp(36px, 4.4vw, 60px); letter-spacing: 2px; margin-bottom: 16px; }
.login-copy p { font-size: 18px; max-width: 560px; }
.login-lines { list-style: none; margin: 28px 0 0; padding: 0; max-width: 560px; border-top: 1px solid var(--navy-line); }
.login-lines li { display: flex; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--navy-line); color: #fff; font-size: 17px; }
.login-lines span { color: var(--accent); font-weight: 700; font-size: 14px; }
.login-motto { color: var(--accent); font-size: 15px; letter-spacing: 1px; margin: 0; }
.login-form-side { padding: 48px var(--pad); display: flex; flex-direction: column; justify-content: center; }
.login-form { width: 100%; max-width: 440px; margin: 0 auto; }
.login-form h2 { font-size: 32px; margin-bottom: 8px; }
.login-form .muted { margin-bottom: 28px; }
.login-help { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-top: 20px; }
.login-foot { text-align: center; font-size: 13px; color: var(--muted); margin: 40px 0 0; }

/* ---------------- Administración ---------------- */
.admin-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; border-bottom: 1px solid var(--line); }
.as-main { min-width: 0; padding: 32px var(--pad); }
.as-main .list-table th:first-child, .as-main .list-table td:first-child { padding-left: 0; }
.as-side { background: var(--soft); border-left: 1px solid var(--line); padding: 32px var(--pad) 32px 32px; }
.as-side h2 { font-size: 20px; margin-bottom: 20px; }
.notice-band { display: flex; gap: 16px; align-items: flex-start; padding: 20px var(--pad); background: var(--ok-bg); border-bottom: 1px solid var(--line); border-left: 6px solid var(--accent-d); color: var(--text); }
.notice-band > .ico { width: 28px; height: 28px; color: var(--ok); }
.notice-band p { margin: 4px 0; }
.notice-band small { color: var(--muted); }
.log-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.log-list li { display: grid; grid-template-columns: 200px 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.log-time { color: var(--muted); }
.log-list strong { color: var(--text); }
.submission-text { background: var(--soft); border-left: 4px solid var(--navy); padding: 18px 20px; margin-bottom: 24px; color: var(--text); white-space: normal; }
.mod-admin-list { border-top: 2px solid var(--navy); }
.mod-admin-row { display: grid; grid-template-columns: 70px minmax(220px, 1.2fr) minmax(220px, 1.4fr) 100px auto auto; gap: 18px; align-items: end; padding: 18px var(--pad); border-bottom: 1px solid var(--line); }
.mod-admin-row:target { background: var(--ok-bg); }
.mod-admin-row .rr-num { font-size: 28px; align-self: center; }
.mar-main { align-self: center; }
.mar-main strong { display: block; color: var(--text); }
.mar-main small { color: var(--muted); }
.mar-actions { display: flex; gap: 6px; align-items: center; }
.mod-admin-row .check { height: 40px; }

/* ---------------- Constancia ---------------- */
.certificate { margin: 40px var(--pad); padding: 56px clamp(24px, 6vw, 96px); border: 2px solid var(--navy); outline: 1px solid var(--navy); outline-offset: -12px; position: relative; color: var(--text); }
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.cert-head img { width: 220px; height: auto; }
.cert-code { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.cert-kicker { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; }
.cert-name { font-size: clamp(32px, 4vw, 52px); margin: 10px 0 22px; border-bottom: 4px solid var(--accent); display: inline-block; padding-bottom: 6px; }
.cert-text { font-size: 19px; line-height: 1.6; max-width: 900px; }
.cert-lines { list-style: none; margin: 18px 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.cert-lines li { padding: 6px 18px 6px 0; margin-right: 18px; border-right: 1px solid var(--line-2); font-weight: 600; }
.cert-lines li:last-child { border-right: 0; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.cert-foot > div { display: flex; flex-direction: column; gap: 2px; min-width: 240px; }
.cert-foot small { color: var(--muted); }
.cert-line { display: block; width: 260px; border-top: 1px solid var(--navy); margin-bottom: 8px; height: 50px; border-top: 0; border-bottom: 1px solid var(--navy); }
.cert-note { margin-top: 36px; font-size: 13px; color: var(--muted); }

/* ---------------- Pie de página ---------------- */
.site-footer { background: var(--navy); color: #c9cbe0; }
.ft-grid { padding: 56px var(--pad) 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.site-footer h4::after { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-top: 8px; }
.ft-brand img { width: 170px; height: auto; }
.ft-brand p { font-size: 14px; line-height: 1.6; margin: 16px 0 12px; max-width: 340px; }
.ft-brand .ft-motto { color: var(--accent); margin-bottom: 20px; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid #3b3f6e; color: #fff; transition: all .15s; }
.ft-social a:hover { background: var(--accent); color: var(--navy); border-color: var(--accent); transform: translateY(-2px); }
.ft-social .ico { width: 18px; height: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.site-footer ul a { font-size: 14px; transition: color .15s, padding-left .15s; }
.site-footer ul a:hover { color: var(--accent); padding-left: 4px; }
.ft-contact li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; align-items: flex-start; }
.ft-contact .ico { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.ft-bottom { border-top: 1px solid var(--navy-line); }
.ft-bottom-in { padding: 18px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #9a9dbd; }
.ft-legal { color: var(--accent); }


/* ---------------- Acciones con texto ---------------- */
.row-actions { white-space: normal; min-width: 210px; }
.row-actions .act { margin: 2px 6px 2px 0; }
.as-main .row-actions .act, .as-main .row-actions form.inline { display: flex; width: 100%; }
.as-main .row-actions form.inline .act { width: 100%; margin-right: 0; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.act .ico { width: 16px; height: 16px; }
.act:hover { border-color: var(--navy); background: var(--soft); }
.act-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.act-primary:hover { background: var(--navy-2); color: #fff; }
.list-table tr.is-editing td { background: var(--ok-bg); }
.pw-box { border: 0; border-top: 2px solid var(--navy); padding: 16px 0 4px; margin: 6px 0 20px; }
.pw-box legend { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); padding: 0 8px 0 0; }
.check.danger { color: var(--no); font-weight: 600; }

/* ---------------- Editor de módulos ---------------- */
.editor-form { padding-bottom: 0; }
.ed-sec { padding: 40px var(--pad) 28px; border-bottom: 1px solid var(--line); }
.ed-sec:nth-of-type(even) { background: var(--soft); }
.ed-sec > header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.ed-sec > header .eyebrow { margin-bottom: 2px; }
.ed-sec .field { max-width: 1200px; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: 1200px; }
.ed-grid .span-2 { grid-column: 1 / -1; }
.ed-grid .check { margin-bottom: 8px; }
.mono { font-family: Consolas, 'Courier New', monospace !important; font-size: 14px !important; }
.cover-editor { display: grid; grid-template-columns: minmax(260px, 480px) 1fr; gap: 32px; align-items: start; max-width: 1200px; }
.cover-preview { aspect-ratio: 16 / 10; background: var(--navy); border-left: 4px solid var(--accent); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview img.is-logo { object-fit: contain; background: #fff; padding: 30px; }
.cover-num { font-size: 120px; font-weight: 200; color: #fff; }
.cover-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cover-actions .field { width: 100%; }
.video-upload, .media-upload { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 18px 0; border-top: 1px solid var(--line-2); max-width: 1200px; }
.video-upload > div { flex: 1 1 360px; }
.video-upload p { margin: 4px 0 0; font-size: 14px; }
.media-upload .grow { flex: 1 1 260px; }
.media-upload .field.compact select { height: 40px; }
.media-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--navy); max-width: 1200px; }
.media-list li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.media-list img { width: 96px; height: 64px; object-fit: cover; background: var(--soft); }
.ml-file { width: 96px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--accent); }
.ml-file .ico { width: 28px; height: 28px; }
.ml-main { flex: 1; display: flex; flex-direction: column; min-width: 180px; }
.ml-main strong { color: var(--text); }
.ml-main small { color: var(--muted); }
.empty-line { color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 14px; }

.rte { border: 1px solid var(--line-2); background: #fff; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--gray-bar); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 5; }
.rte-bar button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 1px solid transparent; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.rte-bar button .ico { width: 15px; height: 15px; }
.rte-bar button:hover { background: #fff; border-color: var(--line-2); }
.rte-bar button.on { background: var(--navy); color: var(--accent); }
.rte-sep { width: 1px; background: var(--line-2); margin: 4px 6px; }
.rte-area { min-height: 220px; max-height: 70vh; overflow-y: auto; padding: 20px 22px; outline: none; max-width: none; }
.rte-area:focus { box-shadow: inset 0 0 0 2px rgba(0, 217, 160, .45); }
.rte-src.show { display: block; width: 100%; min-height: 320px; border: 0; padding: 16px; font-family: Consolas, 'Courier New', monospace; font-size: 13px; resize: vertical; }
.rte.html-mode .rte-area { display: none; }
.rte.html-mode .rte-bar button:not(.rte-html) { opacity: .35; pointer-events: none; }

.q-editor { list-style: none; margin: 0; padding: 0; max-width: 1200px; }
.q-editor > li { padding: 20px 0 6px; border-top: 2px solid var(--navy); margin-bottom: 18px; }
.q-editor > li.is-new { border-top-style: dashed; border-top-color: var(--accent-ink); }
.qe-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.qe-head strong { color: var(--text); }
.qe-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-bottom: 14px; }
.qe-opt { display: flex; align-items: center; gap: 10px; }
.qe-opt input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent-ink); flex: none; cursor: pointer; }
.qe-opt input[type=text] { flex: 1; height: 42px; border: 1px solid var(--line-2); padding: 0 10px; font: inherit; font-size: 15px; }
.qe-opt:has(input[type=radio]:checked) .qo-mark { background: var(--accent); border-color: var(--accent-ink); }
.qe-opt:has(input[type=radio]:checked) input[type=text] { border-color: var(--accent-ink); background: var(--ok-bg); }

.save-bar { position: sticky; bottom: 0; z-index: 50; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px var(--pad); background: #fff; border-top: 2px solid var(--navy); box-shadow: 0 -6px 20px rgba(0, 0, 40, .08); }
.save-bar [data-dirty-note] { margin-right: auto; font-size: 14px; }
.save-bar.dirty [data-dirty-note] { color: var(--warn); font-weight: 700; }

/* Imágenes en el contenido y galería del módulo */
.rich img { max-width: 100%; height: auto; margin: 12px 0; }
.media-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; max-width: 1200px; border-top: 2px solid var(--navy); padding-top: 24px; }
.media-gallery figure { margin: 0; }
.media-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.media-gallery figcaption { font-size: 14px; color: var(--text); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .ed-grid, .cover-editor, .qe-opts { grid-template-columns: 1fr; }
  .save-bar { flex-wrap: wrap; }
}

/* ---------------- Adaptable ---------------- */
@media (max-width: 1280px) {
  .route-row { grid-template-columns: 70px minmax(0, 1fr) 160px 130px 44px; }
  .route-row .rr-meta { display: none; }
  .admin-split { grid-template-columns: minmax(0, 1fr) 360px; }
  .mod-admin-row { grid-template-columns: 60px 1fr 1fr; }
  .mod-admin-row .mar-main { grid-column: 2 / -1; }
}
@media (max-width: 1100px) {
  .hd-nav ul { gap: 22px; }
  .hd-progress .lbl { display: none; }
  .hd-sub nav { gap: 20px; }
  .mod-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .ig-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .ods-list { grid-template-columns: repeat(3, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .weeks { grid-template-columns: 1fr 1fr; }
  .week-col { margin-bottom: 24px; }
  .ig-canvas { grid-template-columns: repeat(2, 1fr); grid-template-areas: "va va" "cl rl" "ca ac" "re al" "co in"; }
  .ig-groups { grid-template-columns: 1fr; }
  .igg-center::after { display: none; }
  .igg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-split { grid-template-columns: 1fr; }
  .as-side { border-left: 0; border-top: 1px solid var(--line); padding-left: var(--pad); }
  .log-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 860px) {
  .hd-top { height: 64px; }
  .brand img { height: 36px; }
  .brand-div, .brand-prod, .hd-util .hide-sm { display: none; }
  .hd-util .user-btn .lbl { display: none; }
  .hd-nav { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .hd-nav nav { width: 100%; overflow-x: auto; }
  .hd-nav ul { gap: 18px; }
  .hd-nav li a { font-size: 14px; }
  .hd-progress { width: 100%; }
  .hp-bar { flex: 1; }
  .hd-sub { min-height: 52px; }
  .hd-sub nav a:not(.btn-try) { display: none; }
  .hero, .mod-cover, .split-band, .login-split, .page-intro.with-media { grid-template-columns: 1fr; }
  .hero-media, .mc-media { min-height: 240px; border-left: 0; border-top: 4px solid var(--accent); }
  .mc-number { min-height: 200px; }
  .intro-img { display: none; }
  .split-col.alt { border-left: 0; border-top: 1px solid var(--line); }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--navy-line); }
  .route-row { grid-template-columns: 52px minmax(0, 1fr) 44px; gap: 14px; }
  .route-row .rr-progress { grid-column: 2; grid-row: 2; }
  .route-row .pill { grid-column: 2; grid-row: 3; justify-self: start; }
  .route-row .rr-go { grid-column: 3; grid-row: 1; }
  .rr-num { font-size: 26px; }
  .mod-layout { grid-template-columns: 1fr; }
  .mod-aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .ma-inner { position: static; max-height: none; }
  .ig-flow { grid-template-columns: 1fr; gap: 0; }
  .ig-flow li { padding: 0 0 22px 62px; min-height: 60px; }
  .ig-flow li::after { top: 48px; left: 21px; right: auto; width: 2px; height: calc(100% - 52px); }
  .ig-flow li:not(:last-child)::before { display: none; }
  .igf-n { position: absolute; left: 0; top: 0; }
  .ig-letters, .ig-traffic, .igtr-branches, .lines-3, .versus, .price-calc { grid-template-columns: 1fr; }
  .igl-item, .igl-item + .igl-item, .igtf-col + .igtf-col, .lines-3 section + section, .versus > div + div { padding-left: 0; border-left: 0; border-right: 0; border-top: 1px solid var(--line); }
  .igtf-col + .igtf-col { border-top-width: 6px; }
  .igtr-branch { border-right: 0; padding-left: 0; }
  .igtr-branch::before { display: none; }
  .pc-results { border-left: 0; padding-left: 0; }
  .ig-timeline { grid-template-columns: 1fr 1fr; }
  .rich .cols-2, .index-list.cols-2, .ref-list.wide { columns: 1; }
  .def-list { grid-template-columns: 1fr; }
  .def-list dt { border-bottom: 0; padding-bottom: 0; }
  .res-list li { grid-template-columns: 1fr; gap: 4px; }
  .mod-pager { grid-template-columns: 1fr; }
  .mp-next { border-left: 0; border-top: 1px solid var(--navy-line); }
  .igc-row { grid-template-columns: 1fr 1fr; }
  .igc-row .k { grid-column: 1 / -1; padding: 12px 0 4px; }
  .igc-head .k, .igc-head > span:first-child { display: none; }
  .ige-op { width: 100%; height: 44px; }
  .login-brand { border-right: 0; border-bottom: 4px solid var(--accent); gap: 24px; }
  .login-lines { display: none; }
  .ft-grid { grid-template-columns: 1fr; gap: 32px; }
  .mod-admin-row { grid-template-columns: 1fr; align-items: stretch; }
  .mod-admin-row .mar-main { grid-column: auto; }
  .inline-stats > span { border-right: 0; padding-right: 0; }
  .list-table th:first-child, .list-table td:first-child { padding-left: 16px; }
  .list-table th:last-child, .list-table td:last-child { padding-right: 16px; }
}
@media (max-width: 560px) {
  .stats-band { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--navy-line); }
  .ods-list { grid-template-columns: 1fr 1fr; }
  .weeks { grid-template-columns: 1fr; }
  .ig-timeline { grid-template-columns: 1fr; }
  .igg-list { grid-template-columns: 1fr; }
  .igg-group { border-right: 0; border-bottom: 1px solid var(--line); }
  .ig-canvas { grid-template-columns: 1fr; grid-template-areas: "va" "cl" "rl" "ca" "ac" "re" "al" "co" "in"; }
  .quiz-opt { margin-left: 0; }
  .seg-filter button, .seg-filter a { padding: 9px 12px; font-size: 13px; }
  .pc-inputs label { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .toast.out, .t-bar { animation-duration: .01s; }
}


/* ================= Plataforma de cursos ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 13px; }
.mb { margin-bottom: 16px; }
.padded-x { padding: 32px var(--pad); margin: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.hd-util .btn-try { display: inline-flex; align-items: center; font-size: 14px; }
.hd-search { display: flex; align-items: center; border-bottom: 1px solid #3b3f6e; }
.hd-search input { background: transparent; border: 0; color: #fff; font: inherit; font-size: 15px; width: 220px; padding: 8px 4px; outline: none; }
.hd-search input::placeholder { color: #9a9dbd; }
.hd-search button { background: none; border: 0; color: #fff; cursor: pointer; display: flex; padding: 6px; }
.hd-search button:hover { color: var(--accent); }
.hd-search:focus-within { border-color: var(--accent); }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.course-item { padding: 24px 28px 8px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.course-item + .course-item { padding-left: 28px; }
.course-item:last-child { border-right: 0; }
.ci-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); margin-bottom: 8px; }
.ci-media img, .cr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ci-media:hover img, .cr-media:hover img { transform: scale(1.03); }
.ci-cat { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-ink); }
.course-item h3 { font-size: 20px; }
.course-item h3 a:hover, .course-row h2 a:hover { text-decoration: underline; text-decoration-color: var(--accent-d); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.course-item p { color: var(--muted); font-size: 15px; margin: 0; }
.ci-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.ci-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-item .text-link { margin-top: auto; align-self: flex-start; }

.course-list { border-top: 2px solid var(--navy); }
.course-row { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 24px var(--pad); border-bottom: 1px solid var(--line); }
.course-row:hover { background: var(--soft); }
.cr-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.cr-media.cert-thumb img { object-fit: contain; background: #fff; }
.cr-main h2 { font-size: 22px; margin: 4px 0 6px; }
.cr-main p { margin: 0 0 4px; color: var(--muted); }
.cr-main .mc-progress { margin: 10px 0 6px; }
.cr-action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: 22px; max-width: 980px; }
.filter-bar .grow { flex: 1 1 260px; }
.filter-bar select { height: 40px; border: 1px solid var(--line-2); padding: 0 10px; font: inherit; background: #fff; }

.check-list-plain { list-style: none; margin: 0 0 22px; padding: 0; }
.check-list-plain li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.check-list-plain .ico { color: var(--accent-ink); margin-top: 2px; }
.cert-sample { display: flex; align-items: center; justify-content: center; }
.cert-sample img { width: 100%; max-width: 640px; box-shadow: 0 18px 40px rgba(0, 0, 40, .18); }
.course-cover .mc-media img { object-fit: cover; }
.course-cover form { margin: 0; }

.verify-result .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.verify-result.ok { border-left: 6px solid var(--accent-d); }
.verify-result.ok .eyebrow { color: var(--ok); }
.verify-result.bad { border-left: 6px solid var(--no); }
.verify-result.bad .eyebrow { color: var(--no); }
.cert-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; border-bottom: 1px solid var(--line); }
.cert-view { margin: 0; padding: 40px var(--pad); background: var(--soft); display: flex; align-items: flex-start; justify-content: center; }
.cert-view img { width: 100%; max-width: 1100px; box-shadow: 0 20px 50px rgba(0, 0, 40, .2); background: #fff; }
.cert-actions { padding: 32px var(--pad) 32px 32px; border-left: 1px solid var(--line); }
.cert-actions h2 { font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.cert-actions h2 ~ h2 { margin-top: 30px; }
.ca-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.share-btn { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.share-btn .ico { width: 20px; height: 20px; color: var(--navy); }
.share-btn:hover { background: var(--soft); color: var(--accent-ink); padding-left: 10px; }
.cert-actions .muted.small { margin-top: 12px; }

.notice-inline { display: flex; gap: 12px; align-items: flex-start; background: var(--ok-bg); border-left: 4px solid var(--accent-d); padding: 14px 16px; margin-bottom: 18px; color: var(--text); font-size: 15px; }
.notice-band.warn-band { background: var(--warn-bg); border-left-color: #e0a100; }
.notice-band.warn-band > .ico { color: var(--warn); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.login-alt { margin-top: 18px; font-size: 15px; color: var(--muted); }
.login-help a { color: var(--text); }
.login-form-side { overflow-y: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 8px; background: var(--soft); color: var(--line-2); }
.chip.on { background: var(--ok-bg); color: var(--ok); }
.chip.strong { background: var(--navy); color: var(--accent); }
.list-table.flush th:first-child, .list-table.flush td:first-child { padding-left: 0; }
.add-module { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 18px 0 0; max-width: 1200px; }
.add-module .grow { flex: 1 1 260px; }
.check-stack { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.danger-zone .sec-num { background: var(--no-bg); color: var(--no); }
.btn.danger, .icon-link.danger { color: var(--no); border-color: var(--no); }
.btn.danger:hover { background: var(--no); color: #fff; }
.icon-link.danger { border-color: transparent; }
.icon-link:disabled { opacity: .3; cursor: default; }
.ig-editor { border-top: 2px solid var(--navy); margin-bottom: 26px; max-width: 1200px; }
.ige-row { display: grid; grid-template-columns: 1fr 2fr; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ige-row .check { grid-column: 1 / -1; }
.ige-row.is-new { border-bottom-style: dashed; }
.ige-row textarea { width: 100%; border: 1px solid var(--line-2); padding: 8px 10px; font-size: 14px; }
.cert-config { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; margin-bottom: 28px; max-width: 1400px; }
.cc-preview img { width: 100%; box-shadow: 0 16px 40px rgba(0, 0, 40, .18); background: #fff; }
.field input[type=color] { height: 46px; padding: 4px; cursor: pointer; }
.ed-grid.inner { gap: 0 16px; }
.code-input { text-transform: uppercase; letter-spacing: 2px; font-family: Consolas, monospace !important; }
.empty-line.padded-x { border-top: 0; }

@media (max-width: 1100px) {
  .course-grid { grid-template-columns: 1fr 1fr; }
  .course-item:nth-child(2) { border-right: 0; }
  .course-item:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .cert-layout, .cert-config { grid-template-columns: 1fr; }
  .cert-actions { border-left: 0; border-top: 1px solid var(--line); padding-left: var(--pad); }
  .hd-search input { width: 150px; }
}
@media (max-width: 860px) {
  .course-row { grid-template-columns: 1fr; gap: 14px; }
  .cr-action { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .hd-search { width: 100%; }
  .hd-search input { width: 100%; }
  .ige-row, .two-cols { grid-template-columns: 1fr; }
  .hide-xs { display: none !important; }
}
@media (max-width: 560px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-item, .course-item + .course-item { padding-left: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}


/* ================= Seguridad ================= */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.recaptcha-note a { text-decoration: underline; }
.c-warn { color: var(--warn); font-size: 12px; font-weight: 700; }
.btn.busy, .act.busy { opacity: .6; pointer-events: none; }
.log-table .is-alert td { background: #fff8f7; }
.log-table .detail-cell { max-width: 360px; word-break: break-word; }
.log-list.compact li { grid-template-columns: 1fr; gap: 2px; }
.small-list li { font-size: 14px; padding: 8px 0; }
.warn-list { margin: 6px 0 0; padding-left: 18px; }
.warn-list li { margin: 4px 0; }
.policy h3 { font-size: 18px; }
.calc-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 2px solid var(--navy); margin-top: 12px; max-width: 1000px; }
.calc-box .pc-inputs label { grid-template-columns: 1fr 140px; }
@media (max-width: 860px) { .calc-box { grid-template-columns: 1fr; } }

/* ---------------- Impresión ---------------- */
@media print {
  .site-header, .breadcrumb, .site-footer, .no-print, #toasts { display: none !important; }
  .page-constancia .certificate { margin: 0; border-width: 2px; }
  body { background: #fff; }
}

/* Calculadora con filas de varias entradas (aforo por sección media) */
.pc-rows { gap: 8px; }
.pc-row { display: grid; grid-template-columns: 80px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pc-row > span { font-size: 13px; font-weight: 700; color: var(--navy); padding-bottom: 10px; }
.calc-box .pc-row label { grid-template-columns: 1fr; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pc-row input { width: 100%; }
@media (max-width: 560px) { .pc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pc-row > span { grid-column: 1 / -1; padding: 0; } }
.log-table .detail-cell { min-width: 240px; overflow-wrap: anywhere; }
