/* ISERCA MX · Capacitación en línea · estilos (mobile-first) */
:root {
  --verde-osc: #12301C;
  --verde: #1F8A4C;
  --verde-2: #4A8B31;
  --lima: #8FD16A;
  --fondo: #F3F7EE;
  --acento: #E08A2E;
  --acento-osc: #A95F12;
  --texto: #14281B;
  --gris: #4B5A4F;
  --gris-2: #6B7A6F;
  --borde: #D5E3CB;
  --blanco: #fff;
  --rojo: #B23A22;
  --rojo-fondo: #FBE3DC;
  --ok-fondo: #E1F2D6;
  --sombra: 0 8px 26px rgba(18, 48, 28, .10);
  --radio: 18px;
  --f-tit: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --f-txt: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 400 17px/1.55 var(--f-txt); min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, h4 { font-family: var(--f-tit); line-height: 1.2; margin: 0 0 .5em; color: var(--verde-osc); }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--verde); font-weight: 700; }
img, video, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap-sm { max-width: 520px; }
.wrap-md { max-width: 760px; }
main { flex: 1; }

/* ---------- barra superior ---------- */
.topbar { background: var(--verde-osc); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.05rem var(--f-tit); letter-spacing: .5px; }
.brand img { width: 34px; height: 34px; }
.brand small { display: none; font: 600 .72rem var(--f-txt); color: #C9DCC0; letter-spacing: .5px; }
.brand span { white-space: nowrap; line-height: 1.15; }
.nav a, .nav button.linklike { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .nav button.linklike { color: #fff; text-decoration: none; font-weight: 700; padding: 10px 9px; border-radius: 10px; font-size: .92rem; background: none; border: 0; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav button.linklike:hover { background: rgba(255, 255, 255, .12); }
.nav .btn-nav { background: var(--lima); color: var(--verde-osc); }
.nav .btn-nav:hover { background: #A5E080; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 52px; padding: 12px 22px; border-radius: 14px; border: 2px solid transparent;
  font: 700 1.02rem var(--f-tit); cursor: pointer; text-decoration: none; transition: transform .08s, background .15s;
  background: var(--verde); color: #fff; line-height: 1.2;
}
.btn:hover { background: #197740; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 58px; font-size: 1.1rem; padding: 14px 28px; }
.btn-acc { background: var(--acento); color: #2a1a05; }
.btn-acc:hover { background: #f09a3c; }
.btn-ghost { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn-ghost:hover { background: var(--ok-fondo); }
.btn-light { background: #fff; color: var(--verde-osc); }
.btn-light:hover { background: var(--ok-fondo); }
.btn-danger { background: var(--rojo); }
.btn-danger:hover { background: #962f1a; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: #C8D3C2; color: #5b6a5f; cursor: not-allowed; border-color: transparent; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.ic { display: inline-flex; flex: none; }
.ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.aviso .ic svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(circle at 80% 20%, #1f5a34 0, var(--verde-osc) 62%); color: #fff; padding: 36px 0 44px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -170px; bottom: -200px; border: 44px solid rgba(143, 209, 106, .10); border-radius: 50%; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-block; background: rgba(143, 209, 106, .2); color: #BFEA9E; font: 700 .78rem var(--f-tit); letter-spacing: 2px; text-transform: uppercase; padding: 7px 14px; border-radius: 30px; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: 2rem; }
.hero h1 em { color: var(--lima); font-style: normal; }
.hero p.lead { font-size: 1.12rem; color: #D6E7CD; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.chips li { background: rgba(255, 255, 255, .12); border-radius: 30px; padding: 7px 14px; font-weight: 700; font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.chips svg { width: 18px; height: 18px; stroke: var(--lima); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.aviso { background: #FFF4E3; border: 2px solid var(--acento); border-radius: var(--radio); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; color: #5a3306; font-weight: 600; }
.aviso svg { width: 26px; height: 26px; flex: none; stroke: var(--acento-osc); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.aviso p { margin: 0; }
.aviso-wrap { margin-top: -22px; position: relative; z-index: 2; }

/* ---------- secciones ---------- */
.section { padding: 40px 0; }
.section h2 { text-align: left; }
.section .sub { color: var(--gris); max-width: 680px; }
.section-alt { background: #fff; border-block: 1px solid var(--borde); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.filter { min-height: 44px; padding: 8px 18px; border-radius: 30px; border: 2px solid var(--borde); background: #fff; font-weight: 700; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--verde-osc); color: #fff; border-color: var(--verde-osc); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px;
  border-top: 8px solid var(--verde); display: flex; flex-direction: column; gap: 10px; position: relative;
}
.card.campo { border-top-color: var(--verde-2); }
.card.empaque { border-top-color: var(--verde); }
.card.soon { border-top-color: #B8C4B0; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card .desc { color: var(--gris); font-size: .95rem; margin: 0; }
.badge { align-self: flex-start; font: 700 .72rem var(--f-tit); letter-spacing: 1px; text-transform: uppercase; padding: 5px 11px; border-radius: 20px; background: #E4F1DA; color: #1c6b3a; }
.badge.campo { background: #E6F0D7; color: #3c6f26; }
.badge.soon { background: #ECEFE9; color: #5b6a5f; }
.badge.ok { background: var(--ok-fondo); color: #1c6b3a; }
.badge.warn { background: #FFF0D9; color: var(--acento-osc); }
.badge.bad { background: var(--rojo-fondo); color: var(--rojo); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--gris); font-size: .9rem; font-weight: 600; margin: 0; padding: 0; list-style: none; }
.meta li { display: flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; stroke: var(--verde); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.price { font: 800 1.5rem var(--f-tit); color: var(--verde-osc); margin-top: auto; }
.price small { font: 600 .8rem var(--f-txt); color: var(--gris-2); }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* pasos */
.steps { counter-reset: paso; display: grid; gap: 14px; padding: 0; margin: 20px 0 0; list-style: none; }
.steps li { counter-increment: paso; background: var(--fondo); border-radius: var(--radio); padding: 16px 16px 16px 70px; position: relative; min-height: 70px; }
.steps li::before { content: counter(paso); position: absolute; left: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--verde-osc); color: #fff; font: 800 1.2rem var(--f-tit); display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--gris); font-size: .96rem; }

/* FAQ */
.faq details { background: #fff; border: 2px solid var(--borde); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font: 700 1rem var(--f-tit); list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--verde); flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] { border-color: var(--verde); }
.faq .ans { padding: 0 18px 16px; color: var(--gris); }

/* ---------- formularios ---------- */
.panel-box { background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 24px 20px; margin: 24px 0; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { color: var(--gris-2); font-size: .88rem; margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 2px solid #BFD1B4; background: #fff; font-size: 1rem;
}
.input:focus { border-color: var(--verde); outline: 3px solid rgba(31, 138, 76, .25); }
.input[aria-invalid="true"] { border-color: var(--rojo); }
.pw { position: relative; }
.pw .input { padding-right: 90px; }
.pw button { position: absolute; right: 6px; top: 6px; min-height: 40px; padding: 0 12px; border: 0; background: var(--ok-fondo); color: var(--verde-osc); font-weight: 700; border-radius: 9px; cursor: pointer; }
.msg { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.msg.err { background: var(--rojo-fondo); color: #7d2412; border: 2px solid #E8B3A5; }
.msg.ok { background: var(--ok-fondo); color: #1b5a2f; border: 2px solid #B5D9A3; }
.msg.info { background: #E8F1F7; color: #1d4a63; border: 2px solid #B9D2E1; }
.alt-link { text-align: center; margin-top: 8px; }

/* ---------- panel del alumno ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: 1.6rem; }
.course-row { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; border-left: 8px solid var(--verde); }
.course-row.campo { border-left-color: var(--verde-2); }
.course-row h3 { margin: 0; }
.bar { background: #E2EBDA; border-radius: 20px; height: 14px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--verde), var(--lima)); border-radius: 20px; transition: width .4s; }
.bar-label { display: flex; justify-content: space-between; font-weight: 700; font-size: .92rem; color: var(--gris); margin-bottom: 6px; }
.stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.stepper span { font-size: .82rem; font-weight: 700; padding: 5px 11px; border-radius: 20px; background: #ECEFE9; color: #5b6a5f; }
.stepper span.done { background: var(--ok-fondo); color: #1c6b3a; }
.empty { text-align: center; padding: 34px 16px; background: #fff; border-radius: var(--radio); border: 2px dashed var(--borde); }

/* ---------- reproductor ---------- */
.player { background: #000; border-radius: 16px; overflow: hidden; position: relative; box-shadow: var(--sombra); }
.player video { display: block; width: 100%; max-height: 70vh; background: #000; }
.player .blocked { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px; background: rgba(18, 48, 28, .92); }
.status-card { background: #fff; border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); margin-top: 16px; }
.crumbs { font-size: .9rem; margin: 16px 0 4px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; border: 1px solid var(--borde); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #E8EFE2; vertical-align: top; }
.tbl th { background: #EEF5E8; font: 700 .8rem var(--f-tit); text-transform: uppercase; letter-spacing: .5px; color: var(--verde-osc); position: sticky; top: 0; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }

/* ---------- examen ---------- */
.exam-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; color: var(--gris); margin: 6px 0 10px; }
.q-card { background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 22px 18px; }
.q-card h2 { font-size: 1.28rem; margin-bottom: 18px; }
.opts { display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; margin: 0; }
.opt { display: flex; gap: 14px; align-items: center; background: #fff; border: 3px solid #D5E3CB; border-radius: 16px; padding: 14px 16px; cursor: pointer; font-weight: 700; min-height: 64px; text-align: left; width: 100%; font-size: 1.02rem; line-height: 1.35; }
.opt:hover { border-color: var(--verde); }
.opt .letter { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #E4F1DA; color: var(--verde); display: flex; align-items: center; justify-content: center; font: 800 1rem var(--f-tit); }
.opt[aria-checked="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
.opt[aria-checked="true"] .letter { background: #fff; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0 0; flex-wrap: wrap; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #CBD8C2; }
.dots i.on { background: var(--verde); }
.dots i.cur { outline: 3px solid var(--acento); }
.exam-nav { display: flex; gap: 10px; margin-top: 20px; }
.exam-nav .btn { flex: 1; }
.result { text-align: center; padding: 26px 18px; border-radius: 24px; color: #fff; }
.result.pass { background: linear-gradient(160deg, #1F8A4C, var(--verde-osc)); }
.result.fail { background: linear-gradient(160deg, #B5651A, #6e3a0a); }
.result .score { font: 800 4rem/1 var(--f-tit); }
.result h1 { color: #fff; font-size: 1.5rem; margin: 8px 0; }
.review { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.review li { background: #fff; border-radius: 14px; padding: 14px 16px; border-left: 8px solid var(--verde); box-shadow: var(--sombra); }
.review li.bad { border-left-color: var(--rojo); }
.review .q { font-weight: 800; margin-bottom: 6px; }
.review .a { font-size: .95rem; margin: 2px 0; }
.review .a.good { color: #1b6a35; font-weight: 700; }
.review .a.wrong { color: var(--rojo); font-weight: 700; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; margin: 0 -16px; padding-inline: 16px; -webkit-overflow-scrolling: touch; }
.tab { flex: none; min-height: 44px; padding: 8px 16px; border: 2px solid var(--borde); border-radius: 30px; background: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--verde-osc); color: #fff; border-color: var(--verde-osc); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.stat { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--sombra); }
.stat b { display: block; font: 800 1.8rem var(--f-tit); color: var(--verde); }
.stat span { color: var(--gris); font-weight: 700; font-size: .9rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.toolbar .input { flex: 1; min-width: 180px; }
.inline-edit { width: 110px; min-height: 40px; padding: 6px 10px; }
.tbl .input { min-height: 40px; padding: 6px 10px; }
.tbl select.input { min-width: 130px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.check input { width: 22px; height: 22px; }

/* ---------- toasts / modal ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; padding: 0 12px; }
.toast { background: var(--verde-osc); color: #fff; padding: 13px 18px; border-radius: 14px; font-weight: 700; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); max-width: 460px; pointer-events: auto; }
.toast.err { background: var(--rojo); }
.modal-bg { position: fixed; inset: 0; background: rgba(18, 48, 28, .6); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 22px; padding: 22px; max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); max-height: 90vh; overflow: auto; }
.modal h2 { font-size: 1.25rem; }

.loading { text-align: center; padding: 60px 16px; color: var(--gris); font-weight: 700; }
.spinner { width: 38px; height: 38px; border: 5px solid #D5E3CB; border-top-color: var(--verde); border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- pie ---------- */
.footer { background: var(--verde-osc); color: #C9DCC0; padding: 28px 0 34px; margin-top: 40px; font-size: .92rem; }
.footer a { color: var(--lima); }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 16px; padding-top: 14px; font-size: .86rem; color: #A9C3A0; }

.demo-banner { background: var(--acento); color: #2a1a05; text-align: center; font-weight: 800; padding: 8px 12px; font-size: .9rem; }
.demo-banner a { color: #2a1a05; }
.demo-pay { background: #fff; border: 3px solid #009ee3; border-radius: 18px; padding: 20px; }
.demo-pay h2 { color: #00709f; }

/* ---------- verificar ---------- */
.verify-ok { border: 3px solid var(--verde); background: var(--ok-fondo); border-radius: 22px; padding: 22px; }
.verify-bad { border: 3px solid var(--rojo); background: var(--rojo-fondo); border-radius: 22px; padding: 22px; }
.verify-ok dl { margin: 12px 0 0; display: grid; gap: 10px; }
.verify-ok dt { font-weight: 700; color: var(--gris); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.verify-ok dd { margin: 0; font-weight: 800; font-size: 1.1rem; }

/* ---------- pantallas más grandes ---------- */
@media (min-width: 640px) {
  .brand small { display: block; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
  .course-row { flex-direction: row; align-items: center; }
  .course-row .main { flex: 1; min-width: 0; }
  .course-row .actions { flex: none; width: 230px; display: flex; flex-direction: column; gap: 8px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .btn-row .btn { flex: none; }
  .tabs { margin: 0; padding-inline: 0; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.2rem; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 3rem; max-width: 780px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 70px 16px 16px; }
  .steps li::before { left: 16px; top: 16px; }
  .section { padding: 56px 0; }
}
@media print { .topbar, .footer, .toasts { display: none; } }
.sub { color: var(--gris); }
.page-head .sub { margin-bottom: .5em; }
.hint { color: var(--gris-2); font-size: .9rem; }


/* =====================================================================
   FASE 1 y 2: propuesta de valor, tabla de documentos, etapas, evaluaciones
   ===================================================================== */
.sub-h { margin: 26px 0 4px; font-size: 1.2rem; }
.card.paquete { border-top-color: var(--acento); }
.card.paquete .badge { background: #FFF0D9; color: var(--acento-osc); }
.grid-paq { margin-bottom: 8px; }

/* diferenciales */
.difs { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.difs li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; }
.difs .ic svg { width: 26px; height: 26px; stroke: var(--verde); margin-top: 2px; }
.difs h3 { margin: 0 0 2px; font-size: 1.02rem; }
.difs p { margin: 0; color: var(--gris); font-size: .95rem; }

/* tabla "Qué obtienes y qué NO es" (en móvil cada fila es una tarjeta) */
.docs-wrap { margin-top: 18px; }
table.docs { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.docs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.docs tbody, .docs tr, .docs th, .docs td { display: block; }
.docs tr { background: #fff; border: 2px solid var(--borde); border-left: 8px solid var(--verde); border-radius: var(--radio); padding: 12px 14px; margin-bottom: 12px; }
.docs tr.no { border-left-color: var(--rojo); background: #FFFAF8; }
.docs th[scope=row] { font: 700 1.02rem var(--f-tit); color: var(--verde-osc); padding: 0 0 6px; text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.docs .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--verde-osc); color: #fff; font: 800 .85rem var(--f-tit); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.docs tr.no .n { background: var(--rojo); }
.docs td { padding: 0 0 6px; color: var(--gris); }
.docs td:last-child { padding-bottom: 0; }
.docs .nota { display: block; margin-top: 6px; font-weight: 700; color: var(--texto); }
.docs-cierre { margin-top: 14px; font-weight: 700; color: var(--verde-osc); }

/* ruta hacia el reconocimiento formal */
.ruta-box { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 2px dashed var(--verde); border-radius: 22px; padding: 20px 18px; }
.ruta-box > .ic svg { width: 34px; height: 34px; stroke: var(--verde); margin-top: 4px; }
.ruta-box h2 { font-size: 1.25rem; }
.ruta-box p { color: var(--gris); }

/* aviso legal */
.legal-page h1 { margin-bottom: 14px; }
.legal-page section { margin-top: 22px; }
.legal-page h2 { font-size: 1.2rem; }
.docs-list { padding-left: 20px; display: grid; gap: 8px; }
.docs-list em { color: var(--gris); }

/* ---------- etapas del programa ---------- */
.stage { background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 18px; margin: 16px 0; border-left: 8px solid #CBD8C2; }
.stage.current { border-left-color: var(--acento); }
.stage.done { border-left-color: var(--verde); }
.stage.locked { background: #F7F9F4; }
.stage-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.stage-head h2 { margin: 0 0 2px; font-size: 1.2rem; }
.stage-head .sub { margin: 0; font-size: .93rem; }
.stage-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #CBD8C2; color: var(--verde-osc); font: 800 1.1rem var(--f-tit); display: inline-flex; align-items: center; justify-content: center; }
.stage.current .stage-n { background: var(--acento); color: #2a1a05; }
.stage.done .stage-n { background: var(--verde); color: #fff; }
.stage-body { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.stage-body .ic svg { width: 26px; height: 26px; stroke: var(--gris-2); margin-top: 2px; }
.stage-body p { margin: 0 0 8px; }
.mods { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.mods li { display: flex; align-items: center; gap: 12px; background: var(--fondo); border-radius: 14px; padding: 10px 12px; }
.mods li.done { background: var(--ok-fondo); }
.mods .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--borde); font: 800 .85rem var(--f-tit); display: inline-flex; align-items: center; justify-content: center; color: var(--verde-osc); }
.mods li.done .n { background: var(--verde); border-color: var(--verde); color: #fff; }
.mods .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mods .info .sub { font-size: .85rem; }
.stepper span.open { background: #FFF0D9; color: var(--acento-osc); }

/* material complementario */
.materials { background: #fff; border: 2px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; margin-top: 16px; }
.materials h2 { font-size: 1.1rem; margin-bottom: 4px; }
.materials ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.materials li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.materials .ic svg { stroke: var(--verde); }
button.linklike.dark { background: none; border: 0; color: var(--verde); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 0; min-height: 44px; text-align: left; }
.unit-card { border: 2px solid var(--borde); }
.unit-card .btn-row { margin-top: 6px; }

/* ---------- evaluaciones ---------- */
.locked-box .ic svg { width: 34px; height: 34px; stroke: var(--gris-2); }
.pend { padding-left: 20px; margin: 12px 0 16px; }
.global-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 18px; margin: 18px 0; border-left: 8px solid var(--acento); }
.global-card.pass { border-left-color: var(--verde); background: linear-gradient(160deg, #fff, var(--ok-fondo)); }
.global-card.fail { border-left-color: var(--rojo); }
.global-card .g-num { flex: none; min-width: 92px; text-align: center; font: 800 2.2rem/1 var(--f-tit); color: var(--verde-osc); }
.global-card h2 { font-size: 1.1rem; margin-bottom: 4px; }
.global-card p { margin: 0 0 8px; }
.global-card .btn { margin: 4px 0 8px; }
.eval-mods { display: grid; gap: 10px; margin-bottom: 8px; }
.eval-mod { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px 16px; border-left: 8px solid #CBD8C2; }
.eval-mod.aprobado { border-left-color: var(--verde); }
.eval-mod.por_reforzar { border-left-color: var(--acento); }
.eval-mod h3 { margin: 6px 0 2px; font-size: 1.05rem; }
.eval-mod .sub { margin: 0; font-size: .9rem; }
.exam-mod { font-weight: 700; color: var(--verde); margin: 12px 0 0; }

/* admin: materiales */
.mat-row { background: #fff; border: 2px solid var(--borde); border-radius: 14px; padding: 12px; margin-bottom: 12px; display: grid; gap: 8px; }
.mat-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
textarea.input { min-height: 84px; resize: vertical; }

@media (min-width: 640px) {
  .difs { grid-template-columns: 1fr 1fr; }
  .eval-mod { flex-direction: row; align-items: center; justify-content: space-between; }
  .eval-mod .btn { flex: none; width: 240px; }
  .global-card .g-num { font-size: 2.8rem; min-width: 130px; }
}
@media (min-width: 820px) {
  .docs thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .docs thead, .docs tbody { display: table-row-group; }
  .docs tr { display: table-row; background: transparent; border: 0; padding: 0; margin: 0; }
  .docs thead tr { display: table-row; }
  .docs th, .docs td { display: table-cell; padding: 14px 14px; vertical-align: top; border-bottom: 1px solid var(--borde); background: #fff; }
  .docs thead th { background: var(--verde-osc); color: #fff; font: 700 .8rem var(--f-tit); text-transform: uppercase; letter-spacing: .5px; border: 0; }
  .docs thead th:first-child { border-top-left-radius: 14px; }
  .docs thead th:last-child { border-top-right-radius: 14px; }
  .docs tbody th[scope=row] { display: table-cell; width: 28%; padding-left: 48px; text-indent: -34px; }
  .docs tbody th[scope=row] .n { margin: 0 8px 0 0; vertical-align: middle; text-indent: 0; }
  .docs tr.si th[scope=row] { box-shadow: inset 6px 0 0 var(--verde); }
  .docs tbody td:nth-child(2) { width: 38%; }
  .docs tr.si th, .docs tr.si td { background: #fff; }
  .docs tr.no th, .docs tr.no td { background: #FFF6F3; }
  .docs tbody tr:last-child th { border-bottom-left-radius: 14px; }
  .docs tbody tr:last-child td:last-child { border-bottom-right-radius: 14px; }
  .docs tr.no th[scope=row] { box-shadow: inset 6px 0 0 var(--rojo); }
  .docs tr.si th[scope=row] { box-shadow: inset 6px 0 0 var(--verde); }
  .difs { grid-template-columns: repeat(3, 1fr); }
}

/* ===== FASES 3 y 4: precios por público, organizaciones, evaluaciones ===== */
.hero-comp .h1-comp { font-size: clamp(1.5rem, 5.5vw, 2.4rem); line-height: 1.15; }
.aviso-hero { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-weight: 600; }
ul.plain { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--verde); }
.checks { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; border: 2px solid var(--borde); border-radius: 12px; padding: 8px 12px; background: #fff; }
.consent { background: var(--ok-fondo); border-radius: 12px; padding: 8px 12px; }
.privacy-gate { display: block; }
.price-big { font: 800 1.8rem var(--f-tit); color: var(--verde-osc); margin: 6px 0; }
.price-big small { font-size: .85rem; font-weight: 600; color: var(--gris); }
.price-box { background: var(--ok-fondo); border-radius: 14px; padding: 12px 16px; margin: 12px 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form .input { flex: 1 1 180px; min-width: 0; }
.input-price { max-width: 130px; flex: 0 1 110px !important; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.crit { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid #E8EFE2; }
.crit-ev { padding: 12px 0; border-bottom: 1px solid #E8EFE2; }
.quiz .q { border: 2px solid var(--borde); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; background: #fff; }
.quiz legend { font-weight: 700; padding: 0 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 6px; min-height: 44px; cursor: pointer; }
.opt input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--verde); flex: none; }
.file-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plain-details summary { cursor: pointer; font-weight: 700; margin: 8px 0; }
.tbl .btn-row { gap: 6px; }
@media (min-width: 760px) { .crit { grid-template-columns: 2fr 1fr 2fr; align-items: center; } }
/* menú con más enlaces: en móvil pasa a una segunda fila con desplazamiento suave, sin desbordar la página */
@media (max-width: 759px) {
  .topbar .wrap { flex-wrap: wrap; padding-bottom: 4px; }
  .nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; gap: 2px; padding-bottom: 2px; }
  .nav a, .nav button.linklike { padding: 8px 10px; font-size: .88rem; min-height: 40px; }
}
