:root {
  --green: #1F9254;
  --green-dark: #146B3E;
  --orange: #F2994A;
  --orange-dark: #C9762A;
  --teal: #2AA9A0;
  --yellow: #FFB238;
  --red: #E5484D;
  --ink: #232B2A;
  --muted: #6B7573;
  --bg: #F4F8F5;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(31, 146, 84, 0.12);
}

* { box-sizing: border-box; }

body.has-oferta-bg {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, #F4F8F5 0%, #EFF9F5 45%, #FFF6EC 100%);
  color: var(--ink);
  min-height: 100vh;
}

h1, h2, h3, .brand-name { font-family: 'Inter', sans-serif; font-weight: 800; }

a { color: inherit; text-decoration: none; }

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(35, 43, 42, 0.06);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; color: var(--green-dark); }
.brand-logo-img { height: 40px; width: auto; display: block; }
.main-nav {
  display: flex; align-items: center; gap: 4px; flex: 1 1 100%; order: 3;
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin-top: 4px; padding-top: 10px; border-top: 1px solid #EEF3EF;
  scrollbar-width: thin;
}
.main-nav a {
  flex-shrink: 0; white-space: nowrap; font-weight: 700; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; transition: .15s;
}
.main-nav a:hover { background: #EAF6EE; color: var(--green-dark); }
.main-nav:empty { display: none; }
.nav-user { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-user-name { font-weight: 700; color: var(--ink); }
.nav-toggle-checkbox { display: none; }
.nav-toggle-btn { display: none; cursor: pointer; font-size: 1.4rem; padding: 4px 10px; border-radius: 8px; background: #EAF6EE; color: var(--green-dark); line-height: 1.6; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 50px;
  font-weight: 700; font-family: 'Inter', sans-serif; font-size: 0.98rem;
  border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .3s;
  text-align: center; gap: 8px; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #00a650; color: #fff; box-shadow: 0 4px 12px rgba(0, 166, 80, 0.2); }
.btn-primary:hover { background: #008a42; }
.btn-secondary { background: #d97706; color: #fff; }
.btn-ghost { background: #e6f7ef; color: #00a650; box-shadow: none; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .88rem; box-shadow: none !important; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Layout helpers ──────────────────────────────────── */
.page-content { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.container-narrow { max-width: 680px; margin: 0 auto; padding: 28px 20px 60px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.site-footer { text-align: center; color: var(--muted); padding: 20px; font-size: .9rem; }

.ambience-toggle {
  position: fixed; bottom: 20px; right: 20px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; box-shadow: var(--shadow); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.ambience-toggle:hover { transform: scale(1.08); }
.ambience-toggle.active { background: var(--green); animation: ambiencePulse 2s ease-in-out infinite; }
@keyframes ambiencePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,146,84,.35); }
  50% { box-shadow: 0 0 0 10px rgba(31,146,84,0); }
}
@media (max-width: 640px) {
  .ambience-toggle { bottom: 14px; right: 14px; width: 46px; height: 46px; font-size: 1.2rem; }
}

/* ── Hero (landing) ──────────────────────────────────── */
.hero { text-align: center; padding: 40px 20px 10px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 8px; color: var(--green-dark); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Hero v2: layout partido + escena de supermercado ── */
.hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
  text-align: left; padding: 36px 4px 10px;
}
.hero-split .hero-copy h1 { font-size: 2.7rem; line-height: 1.12; margin: 0 0 14px; }
.hero-split .hero-copy p { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin: 0 0 24px; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split .trust-row { justify-content: flex-start; margin-left: 0; }
.text-gradient {
  background: linear-gradient(100deg, var(--green-dark), var(--green) 45%, var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #EAF6EE; color: var(--green-dark); font-weight: 800; font-size: .85rem; padding: 7px 16px; border-radius: 999px; margin-bottom: 16px; }

.hero-scene {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 440px; margin: 0 auto;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 25%, #EAFBF1 0%, #F4F8F5 55%, #FFF6EC 100%);
  box-shadow: var(--shadow); overflow: hidden;
}
.hero-scene .shelf-bg { position: absolute; inset: 0; opacity: .5; }
.hero-scene .shelf-bg .shelf-line { position: absolute; left: 6%; right: 6%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(31,146,84,.18), transparent); }
.hero-scene .shelf-bg .shelf-line:nth-child(1) { top: 26%; }
.hero-scene .shelf-bg .shelf-line:nth-child(2) { top: 50%; }
.hero-scene .shelf-bg .shelf-line:nth-child(3) { top: 74%; }
.hero-scene .cart-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center; font-size: 3.4rem; box-shadow: 0 14px 30px rgba(31,146,84,.35);
  animation: cartBounce 3s ease-in-out infinite;
}
.floating-icon {
  position: absolute; width: 62px; height: 62px; border-radius: 18px; background: #fff;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; animation: floatIcon 4s ease-in-out infinite;
}
.floating-icon.i1 { top: 6%;  left: 4%;  animation-delay: 0s; }
.floating-icon.i2 { top: 12%; right: 6%; animation-delay: .6s; }
.floating-icon.i3 { bottom: 20%; left: 0%; animation-delay: 1.2s; }
.floating-icon.i4 { bottom: 8%; right: 12%; animation-delay: 1.8s; }
.floating-icon.i5 { top: 46%; right: -4%; animation-delay: 2.4s; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-4deg); } }
@keyframes cartBounce { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -52%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .floating-icon, .cart-badge { animation: none; } }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .hero-split .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-split .hero-actions, .hero-split .trust-row { justify-content: center; }
  .hero-scene { max-width: 320px; margin-top: 10px; }
}

/* ── Tarjetas de curso ────────────────────────────────── */
.course-card {
  background: var(--card); border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
  border-top: 6px solid var(--course-color, var(--green)); display: flex; flex-direction: column; gap: 10px;
}
.course-card .course-icon { font-size: 1.8rem; }
.course-card .course-name { font-weight: 800; font-family: 'Baloo 2', sans-serif; font-size: 1.1rem; }
.course-card .course-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.course-card.locked { opacity: .65; }
.stage-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.stage-badge.bloqueado { background: #ECEAE8; color: var(--muted); }
.stage-badge.aprendizaje { background: #FFF3D6; color: #B3790A; }
.stage-badge.practica { background: #E3F1FF; color: #1B6FB3; }
.stage-badge.evaluacion { background: #FDE9E1; color: var(--orange-dark); }
.stage-badge.aprobado { background: #EAFBF1; color: var(--green-dark); }

.progress-bar { background: #E4EFE6; border-radius: 999px; height: 12px; overflow: hidden; margin-top: 4px; }
.progress-bar-fill { height: 100%; border-radius: 999px; background: var(--course-color, var(--green)); transition: width .4s; }

/* ── Tabs de fases dentro de un curso ─────────────────── */
.phase-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.phase-tab {
  padding: 12px 20px; border-radius: 16px; font-weight: 800; font-family: 'Baloo 2', sans-serif;
  background: #fff; box-shadow: var(--shadow); cursor: pointer; border: 3px solid transparent;
}
.phase-tab.active { border-color: var(--green); color: var(--green-dark); }
.phase-tab.locked { opacity: .5; cursor: not-allowed; }

/* ── Currículo (lecciones) ────────────────────────────── */
.module-block { margin-bottom: 22px; }
.module-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; margin-bottom: 10px; color: var(--green-dark); }
.lesson-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow); margin-bottom: 8px;
}
.lesson-row .lesson-check { width: 26px; height: 26px; border-radius: 50%; background: #ECEAE8; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.lesson-row.viewed .lesson-check { background: var(--green); }
.lesson-content { line-height: 1.7; font-size: 1.02rem; }
.lesson-content h3 { color: var(--green-dark); }
.lesson-diagram { background: #F7FBF8; border: 2px solid #EAF6EE; border-radius: 16px; padding: 16px; margin: 18px 0; text-align: center; animation: lessonDiagramIn .5s ease-out; }
.lesson-diagram svg { max-width: 100%; height: auto; }
.lesson-diagram-caption { margin-top: 10px; font-size: .88rem; color: var(--muted); font-weight: 700; }
@keyframes lessonDiagramIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lessonArrowPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes lessonDashFlow { to { stroke-dashoffset: -20; } }
@keyframes lessonPulseScale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes lessonBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.lesson-diagram svg polygon { animation: lessonArrowPulse 1.6s ease-in-out infinite; }
.lesson-diagram svg line[stroke-dasharray] { animation: lessonDashFlow 1s linear infinite; }
.lesson-diagram svg .diagram-pulse { transform-box: fill-box; transform-origin: center; animation: lessonPulseScale 1.8s ease-in-out infinite; }
.lesson-diagram svg .diagram-bob { animation: lessonBob 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .lesson-diagram, .lesson-diagram svg polygon, .lesson-diagram svg line[stroke-dasharray], .lesson-diagram svg .diagram-pulse, .lesson-diagram svg .diagram-bob { animation: none; }
}

/* ── Situación (Motor de Decisión) ────────────────────── */
.scenario-card { padding: 28px; position: relative; }
.scenario-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--green-dark); margin-bottom: 10px; }
.scenario-text { font-size: 1.08rem; font-weight: 600; margin-bottom: 20px; line-height: 1.6; background: #F7FBF8; border-radius: 14px; padding: 16px 18px; }
.options-list { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
  text-align: left; padding: 14px 18px; border-radius: 14px; border: 2px solid #E3EEE5;
  background: #fff; font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: .12s;
}
.option-btn:hover:not(:disabled) { border-color: var(--green); background: #F7FBF8; }
.option-label {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #EAF6EE; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.option-btn:disabled { cursor: default; }
.option-btn.correct { border-color: var(--green); background: #EAFBF1; }
.option-btn.correct .option-label { background: var(--green); color: #fff; }
.option-btn.incorrect { border-color: var(--red); background: #FDECEC; }
.option-btn.incorrect .option-label { background: var(--red); color: #fff; }

.feedback-banner { margin-top: 20px; border-radius: 16px; padding: 18px 20px; animation: pop .25s ease; }
.feedback-banner.correct { background: #EAFBF1; border: 2px solid var(--green); animation: bannerBounceIn .5s cubic-bezier(.34,1.56,.64,1); }
.feedback-banner.incorrect { background: #FDECEC; border: 2px solid var(--red); animation: bannerShake .5s ease; }
.feedback-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; display: inline-block; }
.feedback-title.correct { color: var(--green-dark); animation: titlePop .6s ease .1s both; }
.feedback-title.incorrect { color: #b23438; }
.explanation-box { margin-top: 10px; font-size: .96rem; color: #4b5350; line-height: 1.5; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bannerBounceIn {
  0% { transform: scale(.85); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes bannerShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
@keyframes titlePop {
  0% { transform: scale(.5) rotate(-8deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-banner.correct, .feedback-banner.incorrect, .feedback-title.correct { animation: none; }
}

.quiz-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.quiz-progress { flex: 1; margin: 0 18px; }
.quiz-score-pill { background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; box-shadow: var(--shadow); }

/* ── Motor de Consola Operativa (simuladores) ─────────── */
.sim-console { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 900px) { .sim-console { grid-template-columns: 1fr; } }
.sim-catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.sim-item-btn {
  background: #fff; border: 2px solid #E3EEE5; border-radius: 12px; padding: 10px 12px; text-align: left;
  cursor: pointer; font-family: 'Nunito', sans-serif;
}
.sim-item-btn:hover { border-color: var(--green); }
.sim-item-name { font-weight: 700; display: block; }
.sim-item-price { color: var(--green-dark); font-weight: 800; }
.sim-item-meta { font-size: .78rem; color: var(--muted); }
.sim-cart { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; }
.sim-cart-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEF3EF; gap: 8px; }
.sim-cart-row .qty-btn { width: 26px; height: 26px; border-radius: 50%; border: none; background: #EAF6EE; color: var(--green-dark); font-weight: 800; cursor: pointer; }
.sim-total-row { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; margin-top: 14px; padding-top: 14px; border-top: 2px dashed #E3EEE5; }
.sim-receipt { font-family: 'Courier New', monospace; background: #F7FBF8; border-radius: 12px; padding: 16px; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; }
.sim-log-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.sim-log-table td, .sim-log-table th { padding: 8px 10px; border-bottom: 1px solid #EEF3EF; font-size: .9rem; }
.sim-flag-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); margin-bottom: 8px; }
.kpi-card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); text-align: center; }
.kpi-card .kpi-value { font-size: 1.6rem; font-family: 'Baloo 2', sans-serif; color: var(--green-dark); }
.kpi-card .kpi-label { color: var(--muted); font-size: .82rem; }

/* ── Chrome de consola de software real (WMS / ERP / CRM) ─────── */
.console-wrap { border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.console-header { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 16px 20px; }
.console-header-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.console-header-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.console-header-meta { font-size: .82rem; opacity: .92; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.console-body { background: #fff; padding: 20px; }
.console-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: rgba(255,255,255,.22); white-space: nowrap; }

.console-progress-label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.console-progress-track { background: #EAF6EE; border-radius: 999px; height: 10px; overflow: hidden; }
.console-progress-fill { background: var(--green); height: 100%; border-radius: 999px; transition: width .35s ease; }

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th { text-align: left; padding: 10px 12px; background: #F7FBF8; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table th:first-child { border-radius: 10px 0 0 10px; }
.data-table th:last-child { border-radius: 0 10px 10px 0; }
.data-table td { padding: 12px; border-top: 1px solid #EEF3EF; vertical-align: middle; }
.data-table tr:hover td { background: #FAFDFB; }
.data-table code { background: #EEF3EF; padding: 2px 7px; border-radius: 6px; font-size: .82rem; font-weight: 700; }
.data-table .row-note { font-size: .78rem; color: var(--muted); display: block; margin-top: 2px; }

.status-select { border-radius: 999px; border: 2px solid #E3EEE5; padding: 6px 12px; font-weight: 800; font-size: .82rem; background: #fff; cursor: pointer; }
.status-select.st-ok { border-color: var(--green); color: var(--green-dark); background: #EAFBF1; }
.status-select.st-warn { border-color: var(--orange); color: var(--orange-dark); background: #FFF3E5; }
.status-select.st-bad { border-color: var(--red); color: #b23438; background: #FDECEC; }

.macro-label { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 10px; display: block; }
.typing-indicator { display: inline-flex; gap: 4px; padding: 12px 16px; background: #ECEAE8; border-radius: 16px; border-bottom-left-radius: 4px; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: #8a8f8c; animation: typingBounce 1s infinite ease-in-out; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.erp-field-card { background: #F7FBF8; border: 2px solid #EAF6EE; border-radius: 14px; padding: 18px; }
.erp-field-ref { font-family: 'Courier New', monospace; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }

@media (max-width: 640px) {
  .console-header { padding: 14px 16px; }
  .console-body { padding: 16px; }
  .data-table { font-size: .82rem; }
  .data-table th, .data-table td { padding: 8px; }
}

/* ── Diálogo (Motor B: simulador de conversación) ─────────────── */
.chat-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.chat-bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; line-height: 1.5; font-size: .95rem; }
.chat-bubble-label { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; opacity: .65; margin-bottom: 3px; }
.chat-bubble.customer { align-self: flex-start; background: #ECEAE8; color: #222; border-bottom-left-radius: 4px; }
.chat-bubble.agent { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.chat-options { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.chat-option-btn { text-align: left; white-space: normal; line-height: 1.4; width: 100%; }

/* ── Certificado ──────────────────────────────────────── */
.certificate {
  background: #fff; border: 10px solid var(--green); border-radius: 20px; padding: 50px; text-align: center;
  max-width: 800px; margin: 0 auto;
}
.certificate h1 { font-size: 2.2rem; color: var(--green-dark); margin-bottom: 4px; }
.certificate .cert-name { font-size: 1.8rem; font-family: 'Baloo 2', sans-serif; margin: 20px 0 6px; color: var(--ink); }
.certificate .cert-course { font-size: 1.3rem; color: var(--orange-dark); font-weight: 700; margin-bottom: 20px; }
.certificate .cert-code { font-family: 'Courier New', monospace; color: var(--muted); margin-top: 30px; }
@media print { .no-print { display: none !important; } body { background: #fff; } }

/* ── Forms / admin ───────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid #E3EEE5;
  font-family: 'Nunito', sans-serif; font-size: 1rem;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 700; }
.alert-error { background: #FDECEC; color: #b23438; }
.alert-success { background: #EAFBF1; color: var(--green-dark); }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin-top: 16px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #EEE; }
.admin-table thead { background: #EAF6EE; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #EAF6EE; color: var(--green-dark); }
.option-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.option-row input[type="text"] { flex: 1; }
.stat-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); text-align: center; }
.stat-card .stat-value { font-size: 2rem; font-family: 'Baloo 2', sans-serif; color: var(--green-dark); }

/* ── Landing: precios, cronograma y docentes ─────────── */
.pricing-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 26px; text-align: center; border: 3px solid transparent; position: relative;
  display: flex; flex-direction: column; gap: 16px; transition: transform .18s ease, box-shadow .18s ease;
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.featured {
  border-color: transparent; background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--green), var(--teal), var(--yellow)) border-box;
  box-shadow: 0 16px 36px rgba(31,146,84,.22);
}
.pricing-card-tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; padding: 6px 18px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; white-space: nowrap; box-shadow: var(--shadow);
}
.pricing-card h3 { font-size: 1.25rem; margin: 4px 0 0; font-family: 'Baloo 2', sans-serif; }
.pricing-card .price { font-size: 2.5rem; font-family: 'Baloo 2', sans-serif; color: var(--green-dark); line-height: 1; }
.pricing-card .price span { font-size: 1rem; color: var(--muted); font-family: 'Nunito', sans-serif; font-weight: 700; }
.pricing-card .price-alt { color: var(--muted); font-size: .88rem; }
.pricing-card ul { list-style: none; padding: 0; margin: 0; text-align: left; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-card ul li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }

.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.schedule-day { background: #F7FBF8; border: 2px solid #EAF6EE; border-radius: 14px; padding: 18px 14px; text-align: center; transition: transform .15s ease, border-color .15s ease; }
.schedule-day:hover { transform: translateY(-4px); border-color: var(--green); }
.schedule-day .day-icon { font-size: 1.5rem; margin-bottom: 6px; }
.schedule-day .day-name { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--green-dark); font-size: 1.05rem; }
.schedule-day .day-time { color: var(--muted); font-size: .88rem; margin-top: 4px; }
@media (max-width: 700px) { .schedule-grid { grid-template-columns: 1fr; } }

.teacher-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.teacher-tile { text-align: center; padding: 20px 14px; }
.teacher-tile .teacher-icon-circle {
  width: 60px; height: 60px; border-radius: 50%; background: #EAF6EE; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 10px;
}
.teacher-tile .teacher-tile-title { font-weight: 800; font-family: 'Baloo 2', sans-serif; margin-bottom: 4px; }
.teacher-tile .teacher-tile-desc { color: var(--muted); font-size: .86rem; }
@media (max-width: 700px) { .teacher-grid { grid-template-columns: 1fr; } }

.diploma-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.diploma-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.15) 2px, transparent 2px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.diploma-banner h2 { color: #fff; margin-top: 0; position: relative; }
.diploma-banner p { color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto; position: relative; }
.diploma-seal {
  display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px;
  border-radius: 50%; background: rgba(255,255,255,.15); border: 3px solid rgba(255,255,255,.5);
  font-size: 2.2rem; margin: 0 auto 14px; position: relative;
}

/* ── Landing comercial: urgencia, dolor/solución, garantía, FAQ ── */
.urgency-bar {
  background: linear-gradient(90deg, var(--orange-dark), var(--orange));
  color: #fff; text-align: center; padding: 10px 16px; font-weight: 800; font-size: .9rem;
}
.urgency-bar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 8px; animation: dotBlink 1.4s infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.btn-cta-lg { font-size: 1.15rem; padding: 18px 40px; animation: ctaPulse 2.2s infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 0 var(--green-dark), 0 0 0 0 rgba(31,146,84,.4); }
  50% { box-shadow: 0 6px 0 var(--green-dark), 0 0 0 12px rgba(31,146,84,0); }
}

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 18px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.trust-row span { display: flex; align-items: center; gap: 6px; }

.pain-solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .pain-solution-grid { grid-template-columns: 1fr; } }
.pain-list, .solution-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.pain-list li, .solution-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; line-height: 1.4; }
.pain-list .x, .solution-list .check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.pain-list .x { background: #FDECEC; color: var(--red); }
.solution-list .check { background: #EAFBF1; color: var(--green-dark); }

.guarantee-box {
  display: flex; align-items: center; gap: 22px; background: #FFF8EC; border: 3px solid var(--yellow);
  border-radius: var(--radius); padding: 26px 28px;
}
.guarantee-box .guarantee-icon { font-size: 3rem; flex-shrink: 0; }
.guarantee-box h3 { margin: 0 0 6px; }
.guarantee-box p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .guarantee-box { flex-direction: column; text-align: center; } }

.price-per-hour { display: inline-block; margin-top: 8px; background: #EAF6EE; color: var(--green-dark); padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; }

.faq-item { border-bottom: 1px solid #EEF3EF; padding: 16px 4px; border-radius: 10px; transition: background .15s ease; }
.faq-item:hover { background: #FAFDFB; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { cursor: pointer; font-weight: 800; font-family: 'Baloo 2', sans-serif; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--green); flex-shrink: 0; transition: transform .2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

.mini-console { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.mini-console-head { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 10px 14px; font-size: .82rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.mini-console-body { background: #fff; padding: 14px; font-size: .82rem; color: var(--muted); }

/* ── Landing v2: shelf de cursos, bento de simuladores, nav en página, divisores ── */
.in-page-nav {
  background: #fff; border-bottom: 1px solid #EEF3EF; position: sticky; top: 64px; z-index: 45; overflow-x: auto;
}
.in-page-nav-inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 22px; white-space: nowrap; }
.in-page-nav a { font-weight: 800; font-size: .88rem; color: var(--muted); padding: 6px 4px; border-bottom: 3px solid transparent; }
.in-page-nav a:hover { color: var(--green-dark); border-bottom-color: var(--green); }

section[id] { scroll-margin-top: 96px; }

.shelf-grid { display: flex; flex-direction: column; gap: 16px; }
.shelf-card {
  display: flex; align-items: center; gap: 20px; background: var(--card); border-radius: 18px;
  padding: 20px 22px; box-shadow: var(--shadow); border-bottom: 5px solid var(--course-color, var(--green));
  transition: transform .18s ease, box-shadow .18s ease;
}
.shelf-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(31,146,84,.18); }
.shelf-icon {
  flex-shrink: 0; width: 66px; height: 66px; border-radius: 18px; font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  background: #EAF6EE;
  background: color-mix(in srgb, var(--course-color, var(--green)) 16%, #fff);
}
.shelf-body { flex: 1; min-width: 0; }
.shelf-body .shelf-name { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.12rem; margin-bottom: 4px; }
.shelf-body .shelf-desc { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.shelf-body .badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .shelf-card { flex-direction: column; text-align: center; }
}

.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.bento-tile {
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease;
}
.bento-tile:hover { transform: translateY(-4px); }
.bento-tile.featured { grid-column: span 2; grid-row: span 2; }
.bento-tile .mini-console-head { font-size: .92rem; padding: 14px 16px; }
.bento-tile .mini-console-body { flex: 1; padding: 16px; font-size: .88rem; }
.bento-tile.featured .mini-console-body { font-size: .95rem; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.demo-cursor { display: inline-block; width: 8px; height: 16px; background: currentColor; vertical-align: middle; animation: cursorBlink 1s step-end infinite; margin-left: 2px; }
@keyframes cursorBlink { 50% { opacity: 0; } }
.demo-progress-track { background: #EAF6EE; border-radius: 999px; height: 8px; overflow: hidden; margin-top: 6px; }
.demo-progress-fill { background: var(--green); height: 100%; border-radius: 999px; width: 62%; animation: demoFill 2.6s ease-in-out infinite alternate; }
@keyframes demoFill { from { width: 20%; } to { width: 82%; } }
@media (max-width: 900px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } .bento-tile.featured { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 480px) { .bento-grid { grid-template-columns: 1fr; } .bento-tile.featured { grid-column: span 1; } }

.barcode-divider {
  height: 34px; margin: 6px 0;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  opacity: .1; border-radius: 4px;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.cta-band {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange) 55%, var(--yellow));
  color: #fff; border-radius: var(--radius); padding: 40px 28px; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; margin-top: 0; font-size: 1.8rem; }
.cta-band p { color: rgba(255,255,255,.95); max-width: 560px; margin: 0 auto 20px; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.cta-band .btn-primary:hover { background: #F4F8F5; }

.sticky-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.12);
  padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 14px; z-index: 70;
}
.sticky-cta-bar strong { color: var(--green-dark); }
.sticky-cta-spacer { height: 78px; }
@media (min-width: 900px) { .sticky-cta-bar, .sticky-cta-spacer { display: none; } }

.start-date-banner {
  display: inline-flex; align-items: center; gap: 16px;
  background: #fff; border: 3px solid var(--yellow); border-radius: 20px;
  padding: 14px 22px; margin: 0 0 22px; box-shadow: var(--shadow);
  animation: startDateGlow 2.4s ease-in-out infinite;
}
.start-date-barcode {
  flex-shrink: 0; width: 34px; height: 44px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px);
  opacity: .7; border-radius: 2px;
}
.start-date-copy { text-align: left; }
.start-date-tag { font-weight: 800; font-size: .8rem; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .03em; }
.start-date-value { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--green-dark); line-height: 1.15; }
.start-date-note { margin: 2px 0 0; color: var(--muted); font-size: .8rem; max-width: 360px; }
@keyframes startDateGlow {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(255, 178, 56, .5); }
  50% { box-shadow: var(--shadow), 0 0 0 10px rgba(255, 178, 56, 0); }
}
@media (max-width: 900px) { .start-date-banner { margin-left: auto; margin-right: auto; } }
@media (max-width: 480px) { .start-date-banner { padding: 12px 16px; gap: 12px; } .start-date-value { font-size: 1.2rem; } }

.login-card { max-width: 420px; margin: 60px auto; }
.login-card h1 { text-align: center; margin-bottom: 4px; }
.login-card p.subtitle { text-align: center; color: var(--muted); margin-bottom: 24px; }

.tabs-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs-row a { padding: 10px 18px; border-radius: 12px; font-weight: 700; background: #fff; box-shadow: var(--shadow); }
.tabs-row a.active { background: var(--green); color: #fff; }

/* ── Tablas con scroll horizontal en pantallas angostas ─ */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .admin-table { min-width: 640px; }
.table-scroll .data-table { min-width: 560px; }

/* ══════════════════════════════════════════════════════
   Responsive: tablet (≤900px, ya cubierto arriba en grids)
   y celular (≤700px / ≤480px)
   ══════════════════════════════════════════════════════ */

/* Tablet / pantallas medianas */
@media (max-width: 900px) {
  .page-content { padding: 20px 16px 48px; }
  .kpi-card .kpi-value { font-size: 1.35rem; }
}

/* Celular grande / tablet en vertical */
@media (max-width: 700px) {
  .topbar-inner { padding: 10px 14px; gap: 10px; }
  .brand { font-size: 1.05rem; }
  .brand-logo-img { height: 34px; }
  .nav-toggle-btn { display: block; }
  .main-nav {
    display: none; flex-basis: 100%; order: 4; flex-direction: column; gap: 2px;
    margin-top: 8px; padding-top: 10px; border-top: 1px solid #EEF3EF;
  }
  .nav-toggle-checkbox:checked ~ .main-nav { display: flex; }
  .main-nav a { padding: 10px 12px; }
  .nav-user { gap: 8px; }
  .nav-user-name { display: none; }

  .hero { padding: 26px 14px 6px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }

  .card, .scenario-card { padding: 16px; }
  .container-narrow { padding: 18px 14px 48px; }
  .login-card { margin: 24px auto; }

  .phase-tabs { gap: 6px; }
  .phase-tab { padding: 10px 14px; font-size: .92rem; }

  .option-btn { padding: 12px 14px; font-size: .95rem; }
  .scenario-text { padding: 14px; font-size: 1rem; }

  .sim-catalog { grid-template-columns: 1fr; max-height: 320px; }
  .sim-cart, .kpi-card { padding: 14px; }

  .form-row .form-group { min-width: 140px; }

  .admin-toolbar { align-items: stretch; }
  .admin-toolbar > a, .admin-toolbar > div { width: 100%; }

  .certificate { padding: 26px 18px; border-width: 6px; }
  .certificate h1 { font-size: 1.5rem; }
  .certificate .cert-name { font-size: 1.3rem; }
  .certificate .cert-course { font-size: 1.05rem; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Celular pequeño */
@media (max-width: 480px) {
  .grid-2, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .hero-actions, .admin-toolbar { flex-direction: column; }
  .hero-actions .btn, .admin-toolbar .btn { width: 100%; }
  .stat-card .stat-value { font-size: 1.6rem; }
  .quiz-score-pill { font-size: .85rem; padding: 6px 12px; }
}

/* ─────────────────────────────────────────────────────────────
   Selector de área del administrador (admin/areas.php)
   ───────────────────────────────────────────────────────────── */

.area-picker { max-width: 1080px; margin: 0 auto; }

.area-picker-head { text-align: center; margin-bottom: 26px; }
.area-picker-head h1 { margin: 0 0 8px; }
.area-picker-head p { color: var(--muted); max-width: 620px; margin: 0 auto; line-height: 1.6; }

.area-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.area-stat {
  background: #fff;
  border: 1px solid var(--border, #e3ece7);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}
.area-stat-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--green-dark, #146B3E); line-height: 1.1; }
.area-stat-label { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.area-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border, #e3ece7);
  border-top: 4px solid var(--area-accent, #1F9254);
  border-radius: 16px;
  padding: 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,107,62,.12); }
.area-card.is-inactive { opacity: .62; }

.area-card-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 12px; }
.area-card-body { flex: 1 1 auto; }
.area-card-area {
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--area-accent, #1F9254); margin-bottom: 5px;
}
.area-card h2 { font-size: 1.12rem; margin: 0 0 10px; line-height: 1.35; }

.area-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.area-card-meta span {
  font-size: .76rem; background: #F2F7F4; color: var(--muted);
  border-radius: 999px; padding: 3px 10px;
}
.area-card-meta .area-off { background: #FDE9E1; color: #b23438; }

.area-card-courses { list-style: none; margin: 0 0 16px; padding: 0; }
.area-card-courses li {
  font-size: .87rem; color: #33443c; padding: 5px 0;
  border-bottom: 1px dashed #eaf1ed;
}
.area-card-courses li:last-child { border-bottom: 0; }

.area-card-new { border-top-color: #c9d6cf; justify-content: space-between; }
.area-card-new p { color: var(--muted); font-size: .89rem; line-height: 1.55; }

@media (max-width: 640px) {
  .area-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Chip de área activa en la barra del administrador */
.nav-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #EAF6EE;
  border: 1px solid #C5E3D2;
  border-radius: 999px;
  padding: 5px 13px 5px 10px;
  text-decoration: none;
  margin-right: 10px;
  transition: background .15s ease, border-color .15s ease;
}
.nav-area-chip:hover { background: #DCF0E4; border-color: #9FD3B5; }
.nav-area-icon { font-size: 1.15rem; line-height: 1; }
.nav-area-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-area-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: #5c7a68; }
.nav-area-name { font-size: .82rem; font-weight: 700; color: #146B3E; }
.nav-area-swap { font-size: .95rem; color: #1F9254; font-weight: 700; }

@media (max-width: 720px) {
  .nav-area-chip { padding: 4px 9px; }
  .nav-area-text { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   Panel del estudiante agrupado por diplomado
   ───────────────────────────────────────────────────────────── */

.diploma-block {
  margin: 26px 0 34px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border, #e3ece7);
  border-left: 5px solid var(--dip-accent, #1F9254);
  border-radius: 16px;
}

.diploma-block-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px dashed #e3ece7;
}

.diploma-block-title { display: flex; align-items: center; gap: 14px; }
.diploma-block-icon { font-size: 2.1rem; line-height: 1; }
.diploma-block-area {
  font-size: .7rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--dip-accent, #1F9254);
}
.diploma-block-head h2 { margin: 2px 0 0; font-size: 1.16rem; line-height: 1.3; }

.diploma-block-progress { min-width: 240px; flex: 0 1 300px; }
.dip-progress-label { font-size: .84rem; font-weight: 700; color: #33443c; margin-bottom: 6px; }
.dip-complete { font-size: .85rem; font-weight: 800; color: #146B3E; margin-top: 6px; }
.dip-remaining { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.course-sim-tag {
  display: inline-block;
  font-size: .76rem;
  background: #EEF4FF;
  color: #1B6FB3;
  border-radius: 999px;
  padding: 3px 10px;
  margin: 6px 0 4px;
}

.other-diplomas { margin-top: 40px; padding-top: 26px; border-top: 2px dashed #e3ece7; }
.other-diplomas h2 { margin: 0 0 6px; }

.mini-course-list { list-style: none; margin: 10px 0 12px; padding: 0; }
.mini-course-list li {
  font-size: .84rem; color: #44554c; padding: 4px 0;
  border-bottom: 1px dashed #eef3f0;
}
.mini-course-list li:last-child { border-bottom: 0; }

@media (max-width: 700px) {
  .diploma-block-head { flex-direction: column; align-items: flex-start; }
  .diploma-block-progress { flex: 1 1 100%; width: 100%; }
}

/* Certificado del diplomado completo */
.certificate-diploma { border-width: 3px; }
.cert-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, #1F9254, #146B3E);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 14px;
}
.cert-course-list {
  list-style: none;
  margin: 16px auto;
  padding: 14px 20px;
  max-width: 460px;
  text-align: left;
  background: #F7FBF8;
  border: 1px solid #E1EFE7;
  border-radius: 12px;
}
.cert-course-list li { font-size: .9rem; color: #24463a; padding: 5px 0; }

/* ─────────────────────────────────────────────────────────────
   Consola de Matriz de Riesgos (IPEVR · GTC 45)
   ───────────────────────────────────────────────────────────── */

/* Encabezado común de las consolas que traen su propia referencia de documento
   (IPEVR, nómina, ATS). Sin esta regla el título y la referencia quedaban
   pegados: «Software de Nómina · LiquidaciónNOM-1016». */
.console-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 16px; flex-wrap: wrap;
  padding: 14px 20px; color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.02rem;
}
.console-ref {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .74rem;
  letter-spacing: .04em; background: rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

.console-head-riesgo { background: linear-gradient(135deg, #C9762A, #a15c1d); }

.riesgo-caso {
  background: #FFF8F0;
  border: 1px solid #F0DCC4;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.riesgo-caso-tag {
  font-size: .7rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: #C9762A; margin-bottom: 8px;
}
.riesgo-caso p { margin: 0 0 6px; line-height: 1.6; color: #33291f; }
.riesgo-contexto { font-size: .9rem; color: #7a6a58 !important; }

.riesgo-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.riesgo-campo { display: flex; flex-direction: column; gap: 6px; }
.riesgo-campo > span { font-size: .82rem; font-weight: 700; color: #33443c; }
.riesgo-campo select {
  padding: 9px 11px; border: 1px solid #d5e0da; border-radius: 10px;
  font-size: .9rem; background: #fff; width: 100%;
}
.riesgo-campo-full { margin-bottom: 18px; }

.riesgo-calculo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.riesgo-celda {
  background: #F7FBF8; border: 1px solid #E1EFE7; border-radius: 12px;
  padding: 14px 12px; text-align: center;
}
.riesgo-celda-lbl { display: block; font-size: .72rem; color: #6B7573; margin-bottom: 5px; }
.riesgo-celda-val { display: block; font-size: 1.6rem; font-weight: 800; color: #146B3E; line-height: 1; }
.riesgo-celda-nivel.st-bad  { background: #FDE9E1; border-color: #F3B9AB; }
.riesgo-celda-nivel.st-bad  .riesgo-celda-val { color: #b23438; }
.riesgo-celda-nivel.st-warn { background: #FFF3E5; border-color: #F0D5B0; }
.riesgo-celda-nivel.st-warn .riesgo-celda-val { color: #C9762A; }
.riesgo-celda-nivel.st-ok   { background: #EAFBF1; border-color: #BFE3CD; }

.riesgo-aceptabilidad {
  border-radius: 10px; padding: 11px 15px; margin-bottom: 18px;
  font-size: .9rem; text-align: center;
}
.riesgo-aceptabilidad.st-bad  { background: #FDE9E1; color: #b23438; }
.riesgo-aceptabilidad.st-warn { background: #FFF3E5; color: #C9762A; }
.riesgo-aceptabilidad.st-ok   { background: #EAFBF1; color: #146B3E; }

@media (max-width: 560px) {
  .riesgo-calculo { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   Consola de Nómina (desprendible de pago)
   ───────────────────────────────────────────────────────────── */

.console-head-nomina { background: linear-gradient(135deg, #2F6F8F, #1d4d66); }

.nom-empleado {
  display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline;
  background: #F2F8FB; border: 1px solid #D3E5EE; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 16px;
}
.nom-empleado-nombre { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05rem; color: #1d4d66; }
.nom-empleado-dato { font-size: .84rem; color: #5b7280; }

.nom-datos { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: .88rem; }
.nom-datos th, .nom-datos td { padding: 8px 12px; border-bottom: 1px solid #E6EEF2; text-align: left; }
.nom-datos th { font-weight: 700; color: #33443c; width: 62%; }
.nom-datos td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: #1d4d66; }

.nom-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 18px; }
.nom-col { border: 1px solid #E1EAEE; border-radius: 12px; overflow: hidden; }
.nom-col-head {
  padding: 9px 14px; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
/* Tonos de columna. Los dos primeros son los de nómina; los demás sirven a
   otras liquidaciones que usan el mismo motor (p. ej. costeo de importación). */
.nom-col-devengado .nom-col-head { background: #EAFBF1; color: #146B3E; }
.nom-col-deduccion .nom-col-head { background: #FDE9E1; color: #b23438; }
.nom-col-aduana    .nom-col-head { background: #EAF2FB; color: #1B5FA8; }
.nom-col-tributo   .nom-col-head { background: #FFF3E5; color: #B06C18; }
.nom-col-gasto     .nom-col-head { background: #F4F1FA; color: #5B4A87; }
.nom-col-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 11px; }
.nom-campo { display: flex; flex-direction: column; gap: 5px; }
.nom-campo > span { font-size: .8rem; font-weight: 700; color: #33443c; }
.nom-campo small { font-weight: 400; color: #7d8d95; }
.nom-campo input {
  padding: 8px 11px; border: 1px solid #d5e0da; border-radius: 9px;
  font-size: .92rem; width: 100%; text-align: right; font-variant-numeric: tabular-nums;
}

.nom-totales { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.nom-total {
  background: #F7FBF8; border: 1px solid #E1EFE7; border-radius: 12px;
  padding: 13px 12px; text-align: center;
}
.nom-total-lbl { display: block; font-size: .72rem; color: #6B7573; margin-bottom: 5px; }
.nom-total-val { display: block; font-size: 1.25rem; font-weight: 800; color: #146B3E; line-height: 1.15; font-variant-numeric: tabular-nums; }
.nom-total-neto { background: #EAF4F9; border-color: #C6DEEA; }
.nom-total-neto .nom-total-val { color: #1d4d66; }

/* ─────────────────────────────────────────────────────────────
   Consola ATS (preselección de candidatos)
   ───────────────────────────────────────────────────────────── */

.console-head-ats { background: linear-gradient(135deg, #6B4E9B, #4b3570); }
.console-head-aduana { background: linear-gradient(135deg, #1B6FA8, #124a70); }
.console-head-salud  { background: linear-gradient(135deg, #0E9488, #0a655c); }
.console-head-proyecto { background: linear-gradient(135deg, #4A5FC1, #313f88); }
.console-head-infancia { background: linear-gradient(135deg, #D94F70, #a63450); }

.ats-vacante {
  background: #F7F4FC; border: 1px solid #DFD5F0; border-radius: 12px;
  padding: 15px 18px; margin-bottom: 18px;
}
.ats-vacante-tag {
  font-size: .7rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: #6B4E9B; margin-bottom: 6px;
}
.ats-vacante-nombre { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.1rem; color: #3d2a5e; margin-bottom: 10px; }
.ats-requisitos { margin: 0; padding-left: 20px; }
.ats-requisitos li { font-size: .88rem; color: #4a3a63; padding: 2px 0; line-height: 1.5; }

.ats-candidato {
  border: 1px solid #E4E0EC; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 12px; background: #fff;
}
.ats-candidato-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; }
.ats-candidato-nombre { font-weight: 800; color: #3d2a5e; font-size: .98rem; }
.ats-candidato-cod { font-size: .74rem; color: #8b7ea6; font-weight: 700; }
.ats-candidato-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 5px 16px; margin-bottom: 12px; }
.ats-dato { font-size: .84rem; color: #55606b; }
.ats-dato b { color: #2c3a44; font-weight: 700; }

.ats-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.ats-btn {
  border: 1px solid #d9d2e6; background: #fff; border-radius: 999px;
  padding: 7px 15px; font-size: .82rem; font-weight: 700; color: #55496b;
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.ats-btn:hover { border-color: #6B4E9B; }
/* Tonos de la etapa elegida, independientes del dominio: el mismo tablero
   clasifica candidatos o documentos, y solo cambia el texto del botón. */
.ats-btn.tono-ok   { background: #EAFBF1; border-color: #8ECFA9; color: #146B3E; }
.ats-btn.tono-warn { background: #FFF3E5; border-color: #F0C48C; color: #b06c18; }
.ats-btn.tono-bad  { background: #FDE9E1; border-color: #F3B9AB; color: #b23438; }
.ats-btn.tono-info { background: #EAF2FB; border-color: #A8C6E8; color: #1B5FA8; }

@media (max-width: 620px) {
  .nom-columnas { grid-template-columns: 1fr; }
  .nom-totales { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   PIEZAS COMPARTIDAS (club, mini landings, panel)
   Todas con auto-fit para que colapsen solas en móvil sin
   necesitar una media query por componente.
   ───────────────────────────────────────────────────────────── */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.step-card {
  background: #fff;
  border: 1px solid #E8EFEA;
  border-radius: 16px;
  padding: 20px 18px;
  position: relative;
}
.step-card h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}

.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid #F0F4F1; line-height: 1.5;
}
.check-list li:last-child { border-bottom: 0; }

.admin-card {
  background: #fff; border: 1px solid #E8EFEA;
  border-radius: 16px; padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.form-grid .form-group { margin: 0; }

/* Catálogo de cursos y venta cruzada */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.course-tile {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid #E8EFEA; border-radius: 16px;
  padding: 18px; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.course-tile:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 10px 26px rgba(31,146,84,.10); }
.course-tile .ct-icon { font-size: 1.9rem; }
.course-tile h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.course-tile p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.course-tile .ct-foot {
  margin-top: auto; padding-top: 10px; display: flex;
  align-items: center; justify-content: space-between; gap: 8px;
  font-size: .84rem; font-weight: 700; color: var(--green-dark);
}

.cross-grid-diplomas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.cross-tile {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 20px; font-size: .92rem; line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cross-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
.cross-tile .cx-icon { flex-shrink: 0; }
.cross-tile b { font-size: 1.05rem; font-weight: 800; color: #0b1b3d; line-height: 1.3; }
.cross-tile small { color: #64748b; font-size: 0.88rem; margin-top: auto; padding-top: 8px; font-weight: 600; }

.area-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.area-nav a {
  padding: 7px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid #E8EFEA; background: #fff; color: var(--text);
  font-size: .86rem; font-weight: 700; white-space: nowrap;
}
.area-nav a.active, .area-nav a:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Responsive: los ajustes que de verdad hacían falta ── */
@media (max-width: 640px) {
  .kpi-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .kpi-value { font-size: 1.35rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .cross-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  /* Las tablas del panel no caben en un teléfono: se desplazan solas
     en lugar de romper el ancho de la página. */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll table { min-width: 640px; }
  .admin-toolbar { flex-wrap: wrap; gap: 8px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
}

/* ─────────────────────────────────────────────────────────────
   TURNO DE TRABAJO (evaluación práctica)
   ───────────────────────────────────────────────────────────── */
.shift-bar {
  background: linear-gradient(135deg, #17323F, #0E2129);
  color: #EAF2EE; border-radius: 18px;
  padding: 18px 20px; margin-bottom: 18px;
}
.shift-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.shift-role { font-size: .78rem; opacity: .78; letter-spacing: .02em; }
.shift-now { font-family: 'Baloo 2', sans-serif; margin: 4px 0 0; font-size: 1.16rem; color: #fff; }
.shift-clock { text-align: right; line-height: 1.1; }
.shift-clock b { font-size: 1.5rem; color: #7CD8A4; display: block; }
.shift-clock small { font-size: .72rem; opacity: .72; }

.shift-track { display: flex; gap: 6px; margin: 14px 0 8px; overflow-x: auto; padding-bottom: 4px; }
.shift-step { flex: 1 0 auto; min-width: 46px; text-align: center; }
.shift-step small { display: block; font-size: .64rem; opacity: .6; margin-top: 3px; }
.shift-dot {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin: 0 auto; border-radius: 50%;
  font-size: .8rem; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
}
.shift-bien .shift-dot { background: #1F9254; border-color: #1F9254; color: #fff; }
.shift-mal  .shift-dot { background: #C0563F; border-color: #C0563F; color: #fff; }
.shift-ahora .shift-dot { background: #F0B23C; border-color: #F0B23C; color: #1B1B1B; transform: scale(1.12); }
.shift-ahora small { opacity: 1; font-weight: 800; }

.shift-progress { height: 5px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.shift-progress div { height: 100%; background: linear-gradient(90deg, #1F9254, #7CD8A4); transition: width .4s ease; }

.shift-alert { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .89rem; line-height: 1.5; }
.shift-alert-ok  { background: rgba(31,146,84,.18);  border: 1px solid rgba(124,216,164,.4); }
.shift-alert-bad { background: rgba(192,86,63,.20);  border: 1px solid rgba(240,150,120,.45); }

.shift-log { margin-top: 12px; font-size: .84rem; }
.shift-log summary { cursor: pointer; opacity: .82; }
.shift-log ul { list-style: none; margin: 10px 0 0; padding: 0; }
.shift-log li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.08); opacity: .9; }
.shift-log li:last-child { border-bottom: 0; }
.shift-log .bit-ok  b { color: #7CD8A4; }
.shift-log .bit-mal b { color: #F0A08A; }

@media (max-width: 640px) {
  .shift-bar { padding: 14px; border-radius: 14px; }
  .shift-now { font-size: 1.02rem; }
  .shift-clock b { font-size: 1.25rem; }
}

/* Cupo casi agotado: solo se resalta cuando de verdad quedan pocos. */
.cupo-critico { color: #C0392B; }

/* ══════════════════════════════════════════════════════════════
   PESTAÑA DE DIPLOMADOS · catálogo compacto
   Las tarjetas anteriores usaban .plan-card, pensada para tres planes
   grandes. Con ocho diplomados eso obligaba a un scroll larguísimo, así
   que aquí van más pequeñas y con solo lo que se decide de un vistazo:
   área, nombre, los cuatro cursos y el precio.
   ══════════════════════════════════════════════════════════════ */

.hero-acciones-diplomados {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.acceso-alumno {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.acceso-alumno-nota {
    font-size: .88rem;
    font-weight: 600;
    color: #64748b;
}

.dip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 20px;
    margin-top: 36px;
    align-items: stretch;
}

.dip-tarjeta {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px 18px;
    box-shadow: 0 3px 10px rgba(11, 27, 61, .05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.dip-tarjeta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(11, 27, 61, .1);
}

.dip-badge {
    position: absolute;
    top: -9px; right: 14px;
    background: #00a650;
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

.dip-cabeza {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.dip-cabeza .plan-icon {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dip-titulos { min-width: 0; }
.dip-area {
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.3;
}
.dip-nombre {
    font-size: 1rem;
    font-weight: 800;
    color: #0b1b3d;
    line-height: 1.28;
    margin: 3px 0 0;
}

/* Los cuatro cursos: la lista es el argumento de venta, así que se queda,
   pero sin viñetas gordas ni el paréntesis del simulador. */
.dip-cursos {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 0 0;
    border-top: 1px dashed #e2e8f0;
    flex-grow: 1;
}
.dip-cursos li {
    position: relative;
    padding: 3px 0 3px 16px;
    font-size: .84rem;
    line-height: 1.4;
    color: #475569;
}
.dip-cursos li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #00a650;
}

.dip-precio {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 10px 0 14px;
    border-top: 1px solid #f1f5f9;
}
.dip-precio b { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.dip-precio span { font-size: .78rem; color: #64748b; }

.dip-acciones { display: flex; flex-direction: column; gap: 8px; }
.dip-un-curso {
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    color: #00a650;
    text-decoration: none;
    padding: 4px 0;
}
.dip-un-curso:hover { text-decoration: underline; }

@media (max-width: 520px) {
    .dip-grid { grid-template-columns: 1fr; gap: 16px; }
    .dip-tarjeta { padding: 18px 16px 16px; }
    .hero-acciones-diplomados .btn { width: 100%; }
    .acceso-alumno { width: 100%; }
    .acceso-alumno .btn { width: 100%; }
}

/* ── Botones con borde ───────────────────────────────────────
   Esta hoja se carga después de style.css y su regla base
   `.btn { border: none }` estaba borrando el borde de los botones
   contorneados de todo el sitio, incluido el «Ingresar» del menú.
   Se redefinen aquí, que es donde la cascada los deja ganar. */
.btn-outline-green {
    background: transparent;
    border: 2px solid var(--primary-green, #00a650);
    color: var(--primary-green, #00a650);
}
.btn-outline-green:hover {
    background: var(--primary-green, #00a650);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════
   MOTORES PRÁCTICOS DE SIMULADOR · registro · clasificación · secuencia
   Se añaden al final de oferta.css. Reutilizan .console-wrap y
   .console-head que ya existen, así que se sienten parte del mismo taller.
   ══════════════════════════════════════════════════════════════════════ */

.console-head-registro     { background: linear-gradient(120deg, #0b4d8f, #1273c9); }
.console-head-clasificacion{ background: linear-gradient(120deg, #6b2f9e, #8b52c4); }
.console-head-secuencia    { background: linear-gradient(120deg, #0f766e, #14a89b); }

/* ── REGISTRO ──────────────────────────────────────────────────────── */
.reg-contexto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    padding: 16px;
    background: #f4f7fb;
    border-bottom: 1px solid #e2e8f0;
}
.reg-dato {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.reg-dato-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em;
                  text-transform: uppercase; color: #64748b; }
.reg-dato-valor { font-size: .95rem; color: #0b1b3d; }

.reg-formulario {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px; padding: 18px;
}
.reg-campo { display: flex; flex-direction: column; gap: 6px; }
.reg-campo-label { font-weight: 700; font-size: .86rem; color: #0b1b3d;
                   display: flex; flex-direction: column; gap: 2px; }
.reg-campo-label small { font-weight: 500; font-size: .76rem; color: #64748b; }
.reg-campo input, .reg-campo select {
    width: 100%; padding: 11px 13px; border: 1.5px solid #cbd5e1;
    border-radius: 10px; font-family: inherit; font-size: .95rem;
    font-weight: 600; color: #0b1b3d; background: #fff;
}
.reg-campo input:focus, .reg-campo select:focus {
    outline: none; border-color: #1273c9; box-shadow: 0 0 0 3px rgba(18,115,201,.15);
}
.reg-input-wrap { position: relative; display: block; }
.reg-sufijo {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-style: normal; font-size: .8rem; font-weight: 700; color: #94a3b8;
}

/* ── CLASIFICACIÓN ─────────────────────────────────────────────────── */
.clas-instruccion { padding: 14px 18px 0; margin: 0; color: #475569; font-size: .92rem; }
.clas-leyenda {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px; padding: 14px 18px;
}
.clas-leyenda-item {
    background: #faf7fe; border: 1px solid #e6dcf5; border-radius: 10px;
    padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.clas-leyenda-item b { color: #5b2b8a; font-size: .88rem; }
.clas-leyenda-item small { color: #7c6a94; font-size: .76rem; line-height: 1.4; }

.clas-lista { display: flex; flex-direction: column; gap: 10px; padding: 4px 18px 18px; }
.clas-caso {
    border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 13px 15px;
    background: #fff; transition: border-color .18s ease, background .18s ease;
}
.clas-caso.esta-listo { border-color: #b9e6cd; background: #f6fdf9; }
.clas-caso-texto { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.clas-caso-texto b { color: #0b1b3d; font-size: .93rem; line-height: 1.45; font-weight: 700; }
.clas-caso-texto small { color: #64748b; font-size: .82rem; line-height: 1.5; }
.clas-botones { display: flex; flex-wrap: wrap; gap: 7px; }
.clas-btn {
    border: 1.5px solid #cbd5e1; background: #fff; color: #475569;
    border-radius: 999px; padding: 7px 15px; font-size: .83rem; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: all .15s ease;
}
.clas-btn:hover { border-color: #8b52c4; color: #6b2f9e; }
.clas-btn.activo { background: #6b2f9e; border-color: #6b2f9e; color: #fff; }

/* ── SECUENCIA ─────────────────────────────────────────────────────── */
.sec-situacion {
    margin: 0; padding: 14px 18px; background: #f0fdfa;
    border-bottom: 1px solid #ccfbf1; color: #115e59;
    font-size: .92rem; line-height: 1.55;
}
.sec-columnas {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px;
}
.sec-col { border: 1.5px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.sec-col-orden { border-color: #99e6dd; }
.sec-col-head {
    padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
    font-weight: 800; font-size: .8rem; letter-spacing: .05em;
    text-transform: uppercase; color: #475569;
}
.sec-col-orden .sec-col-head { background: #f0fdfa; border-bottom-color: #ccfbf1; color: #0f766e; }
.sec-col-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 90px; }
.sec-vacio { color: #94a3b8; font-size: .84rem; text-align: center; margin: 14px 6px; line-height: 1.5; }

.sec-paso {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; text-align: left; border: 1.5px solid #e2e8f0; background: #fff;
    border-radius: 10px; padding: 11px 13px; font-family: inherit;
    font-size: .87rem; font-weight: 600; color: #334155; cursor: pointer;
    transition: all .15s ease; line-height: 1.4;
}
.sec-paso:hover { border-color: #14a89b; background: #f0fdfa; }
.sec-paso i { font-style: normal; font-size: .74rem; font-weight: 800; color: #14a89b; white-space: nowrap; }

.sec-paso-puesto {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid #ccfbf1; background: #f0fdfa;
    border-radius: 10px; padding: 10px 12px;
}
.sec-num {
    flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%;
    background: #14a89b; color: #fff; display: flex; align-items: center;
    justify-content: center; font-size: .8rem; font-weight: 800;
}
.sec-paso-texto { flex: 1; font-size: .87rem; font-weight: 600; color: #115e59; line-height: 1.4; }
.sec-quitar {
    flex: 0 0 auto; border: none; background: transparent; color: #94a3b8;
    font-size: .95rem; cursor: pointer; padding: 3px 5px; border-radius: 6px;
}
.sec-quitar:hover { background: #fee2e2; color: #dc2626; }

/* ── Recibo compartido por los tres ────────────────────────────────── */
.recibo {
    border: 1.5px dashed #cbd5e1; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 14px; background: #fcfdfe;
}
.recibo-head {
    font-weight: 800; font-size: .78rem; letter-spacing: .07em;
    text-transform: uppercase; color: #64748b;
    padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed #e2e8f0;
}
.recibo-fila {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 5px 0; font-size: .86rem; border-bottom: 1px solid #f1f5f9;
}
.recibo-fila:last-child { border-bottom: none; }
.recibo-fila span { color: #64748b; }
.recibo-fila b { color: #0b1b3d; text-align: right; }

.console-nota { font-size: .82rem; color: #94a3b8; margin-left: 10px; }

@media (max-width: 700px) {
    .sec-columnas { grid-template-columns: 1fr; }
    .reg-formulario { grid-template-columns: 1fr; }
    .clas-btn { flex: 1 1 auto; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   COMPONENTES DE TEORÍA
   ──────────────────────────────────────────────────────────────────────
   La teoría era prosa seguida con algún diagrama suelto. Estos bloques la
   vuelven navegable: el dato clave salta, el caso real se distingue del
   concepto, la norma queda citada y el paso a paso se sigue con el dedo.
   Todos son HTML plano dentro de content_html, sin JavaScript.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Dato clave: la cifra que hay que recordar ─────────────────────── */
.t-dato {
    display: flex; align-items: center; gap: 18px;
    background: linear-gradient(120deg, #f0fdf7, #e8f8ef);
    border-left: 5px solid #00a650; border-radius: 14px;
    padding: 18px 22px; margin: 22px 0;
}
.t-dato-cifra {
    font-size: 2.1rem; font-weight: 800; color: #00813e;
    line-height: 1; flex: 0 0 auto; letter-spacing: -0.02em;
}
.t-dato-texto { font-size: .94rem; color: #2f4f3e; line-height: 1.55; }
.t-dato-texto b { color: #0b1b3d; }

/* ── Caso real: lo que pasó de verdad ──────────────────────────────── */
.t-caso {
    border: 1.5px solid #e2e8f0; border-radius: 16px;
    margin: 26px 0; overflow: hidden; background: #fff;
    box-shadow: 0 1px 2px rgba(12,18,34,.04), 0 8px 22px -14px rgba(12,18,34,.14);
}
.t-caso-head {
    background: #0c1222; color: #fff; padding: 11px 18px;
    font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
}
.t-caso-body { padding: 18px 20px; }
.t-caso-body p { margin: 0 0 12px; line-height: 1.65; }
.t-caso-body p:last-child { margin-bottom: 0; }
.t-caso-cierre {
    margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e2e8f0;
    font-size: .9rem; color: #0b1b3d;
}
.t-caso-cierre b { color: #00813e; }

/* ── Norma: la cita legal, siempre verificable ─────────────────────── */
.t-norma {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px;
    padding: 16px 20px; margin: 22px 0;
}
.t-norma-icono { font-size: 1.35rem; flex: 0 0 auto; line-height: 1.2; }
.t-norma-texto { font-size: .91rem; color: #78500a; line-height: 1.6; }
.t-norma-texto b { color: #4a3005; display: block; margin-bottom: 3px; }

/* ── Tabla de datos ────────────────────────────────────────────────── */
.t-tabla { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .9rem; }
.t-tabla thead th {
    background: #0c1222; color: #fff; text-align: left;
    padding: 11px 14px; font-size: .78rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
}
.t-tabla thead th:first-child { border-radius: 10px 0 0 0; }
.t-tabla thead th:last-child { border-radius: 0 10px 0 0; }
.t-tabla td { padding: 11px 14px; border-bottom: 1px solid #eef2f7; color: #3d475f; line-height: 1.5; }
.t-tabla tbody tr:nth-child(even) { background: #fafbfd; }
.t-tabla tbody tr:hover { background: #f4f8fb; }
.t-tabla td b { color: #0b1b3d; }
.t-tabla-wrap { overflow-x: auto; margin: 22px 0; }
.t-tabla-wrap .t-tabla { margin: 0; min-width: 460px; }

/* ── Comparativa: así no / así sí ──────────────────────────────────── */
.t-comparativa {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0;
}
.t-col { border-radius: 14px; padding: 16px 18px; border: 1.5px solid; }
.t-col-mal { background: #fef4f4; border-color: #f6c9c9; }
.t-col-bien { background: #f2fbf6; border-color: #b7e6cb; }
.t-col-titulo { font-weight: 800; font-size: .88rem; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.t-col-mal .t-col-titulo { color: #a92020; }
.t-col-bien .t-col-titulo { color: #16794a; }
.t-col ul { margin: 0; padding-left: 18px; }
.t-col li { font-size: .88rem; line-height: 1.55; margin-bottom: 7px; color: #3d475f; }
.t-col li:last-child { margin-bottom: 0; }

/* ── Paso a paso numerado ──────────────────────────────────────────── */
.t-pasos { counter-reset: tp; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.t-paso {
    counter-increment: tp; position: relative;
    padding: 14px 18px 14px 56px;
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px;
    font-size: .92rem; line-height: 1.6; color: #3d475f;
}
.t-paso::before {
    content: counter(tp); position: absolute; left: 16px; top: 13px;
    width: 27px; height: 27px; border-radius: 50%;
    background: #00a650; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .84rem; font-weight: 800;
}
.t-paso b { color: #0b1b3d; }

/* ── Línea de tiempo ───────────────────────────────────────────────── */
.t-linea { position: relative; margin: 26px 0 26px 12px; padding-left: 26px; }
.t-linea::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(#00a650, #0163ce);
}
.t-hito { position: relative; padding-bottom: 20px; }
.t-hito:last-child { padding-bottom: 0; }
.t-hito::before {
    content: ''; position: absolute; left: -31px; top: 4px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #fff; border: 3px solid #00a650;
}
.t-hito-fecha { font-size: .76rem; font-weight: 800; color: #00813e; letter-spacing: .05em; text-transform: uppercase; }
.t-hito-texto { font-size: .91rem; color: #3d475f; line-height: 1.6; margin-top: 3px; }
.t-hito-texto b { color: #0b1b3d; }

/* ── Glosario del oficio ───────────────────────────────────────────── */
.t-glosario { margin: 24px 0; display: grid; gap: 9px; }
.t-termino {
    background: #f8fafc; border: 1px solid #e7ebf3; border-radius: 12px;
    padding: 13px 16px; font-size: .9rem; line-height: 1.55; color: #3d475f;
}
.t-termino b { color: #0b1b3d; display: block; margin-bottom: 2px; }

/* ── Aviso de error frecuente ──────────────────────────────────────── */
.t-ojo {
    display: flex; gap: 13px; align-items: flex-start;
    background: #fff4f4; border-left: 5px solid #e8321a; border-radius: 12px;
    padding: 15px 19px; margin: 22px 0;
}
.t-ojo-icono { font-size: 1.25rem; flex: 0 0 auto; }
.t-ojo-texto { font-size: .91rem; color: #7d2418; line-height: 1.6; }
.t-ojo-texto b { color: #5c150c; }

/* ── Cierre de lección: qué te llevas ──────────────────────────────── */
.t-llevas {
    background: linear-gradient(135deg, #0c1222, #16203a); color: #fff;
    border-radius: 16px; padding: 20px 24px; margin: 28px 0 8px;
}
.t-llevas-titulo {
    font-size: .76rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: #7ee2a8; margin-bottom: 11px;
}
.t-llevas ul { margin: 0; padding-left: 19px; }
.t-llevas li { font-size: .92rem; line-height: 1.6; margin-bottom: 8px; color: #d7dced; }
.t-llevas li:last-child { margin-bottom: 0; }
.t-llevas li b { color: #fff; }

@media (max-width: 640px) {
    .t-comparativa { grid-template-columns: 1fr; }
    .t-dato { flex-direction: column; align-items: flex-start; gap: 8px; }
    .t-dato-cifra { font-size: 1.8rem; }
}
