/* ===================== Tema v2: acabado visual (se carga después de app.css) ===================== */
:root { --shadow-sm: 0 1px 2px rgba(20,45,62,.06), 0 2px 8px rgba(20,45,62,.05); --shadow-md: 0 4px 10px rgba(20,45,62,.08), 0 12px 28px rgba(20,45,62,.08); --radius: 6px; }
body { background: var(--c-page); letter-spacing: .005em; }
h1, h2, h3 { letter-spacing: -.012em; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.93); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--c-line), 0 6px 20px rgba(20,45,62,.04); }
.brand strong { font-size: 1.05rem; letter-spacing: -.01em; }
.main-nav a:not(.btn) { font-weight: 500; font-size: .96rem; }
.main-nav a[aria-current="page"] { color: var(--c-primary); border-bottom-color: var(--c-accent); }
.notice-bar { background: #FFF8EC; color: #6B3E00; border-bottom: 1px solid #F3DFB8; font-size: .82rem; }
.notice-bar .wrap { display: flex; gap: .6rem; align-items: center; padding-block: .4rem; }
.notice-icon { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #8A4B00; color: #fff; font-weight: 800; font-size: .75rem; display: grid; place-items: center; }

.btn { border-radius: 4px; letter-spacing: .01em; box-shadow: 0 1px 2px rgba(20,45,62,.2), 0 4px 12px rgba(20,45,62,.18); transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(20,45,62,.22), 0 8px 18px rgba(20,45,62,.22); }
.btn-secondary { box-shadow: none; }
.btn-secondary:hover { box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--c-primaryDark); border-color: #fff; }
.btn-light:hover { background: #EEF3F0; color: var(--c-primaryDark); border-color: #EEF3F0; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* Portada */
.hero { position: relative; overflow: hidden; border: 0; color: #fff; background: var(--c-primary); }
.hero::after { content: ""; position: absolute; right: -80px; top: 40px; width: 460px; height: 500px; border: 1px solid #496071; transform: rotate(25deg); opacity: .35; pointer-events: none; }
.hero-inner { padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.12; max-width: 20ch; font-weight: 600; letter-spacing: -.03em; }
.eyebrow-light { color: #A9D6C8; }
.hero .lead { color: #DCE6E4; max-width: 56ch; }
.hero-logo-wrap { justify-self: center; }
.hero-logo { display: block; width: min(420px, 100%); height: auto; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1.8rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.22); }
.hero-stats li { display: flex; flex-direction: column; line-height: 1.2; }
.hero-stats strong { font-size: 1.6rem; color: #fff; font-weight: 800; }
.hero-stats span { font-size: .8rem; color: #B9CBD0; }
.section-kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; color: var(--c-accent); margin: 0 0 .25rem; }
.section { margin-block: 3rem; }
.section > h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.95rem); margin-bottom: 1.2rem; }

.step-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step-cards li { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); margin: 0; }
.step-cards h3 { margin: .7rem 0 .3rem; }
.step-cards p { margin: 0; color: var(--c-muted); font-size: .95rem; }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; font-family: var(--font-head); background: linear-gradient(135deg, var(--c-primary), #2A5C78); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(20,45,62,.3); }

.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.module-card { position: relative; overflow: hidden; padding: 1.4rem 1.4rem 1.2rem; border-top: 4px solid var(--c-accent); }
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-num { position: absolute; right: .9rem; top: -.5rem; font-size: 5.5rem; font-weight: 700; line-height: 1; color: var(--c-primary); opacity: .07; font-family: var(--font-head); pointer-events: none; }
.module-objective { color: #303B42; font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0; }
.chip { font-size: .76rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: #E8EEEB; color: var(--c-primaryDark); }
.chip-strong { background: var(--c-accentSoft); color: #1B4E42; }
.req-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-bottom: 1rem; }
.req { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.req p { margin: 0; font-size: .95rem; }
.req-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--c-accentSoft); color: #1B4E42; font-weight: 800; border: 2px solid #B3D0C6; }

/* Aula */
.panel-hero { background: #fff; border-left: 4px solid var(--c-accent); border-radius: var(--radius); box-shadow: var(--shadow-md); border-color: #D5DDD8; }
.big-number { color: var(--c-primary); }
.aula-main { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.course-nav { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose h2 { padding-bottom: .3rem; border-bottom: 2px solid #E3EAE6; }
.callout { border-radius: 10px; box-shadow: var(--shadow-sm); }
.finish-box { background: linear-gradient(180deg, #FAFAF6, #EFF3EF); border-radius: var(--radius); }
.module-block { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.case, .question, .stat { box-shadow: var(--shadow-sm); border-radius: var(--radius); }
.score-card { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.table-wrap { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
thead th { background: #E3EAE6; }

/* Formularios y páginas en tarjeta */
.narrow { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.4rem, 4vw, 2.4rem); margin-block: 2.5rem; }
.auth-logo { display: block; margin: 0 auto 1.2rem; width: 220px; height: auto; }
.narrow h1 { text-align: center; font-size: 1.7rem; }
input:not([type=radio]):not([type=checkbox]), select, textarea { border-color: #7A8A91; border-radius: 10px; transition: border-color .12s, box-shadow .12s; }
input:not([type=radio]):not([type=checkbox]):focus, select:focus, textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(36,99,84,.18); }
.narrow .btn[type=submit] { width: 100%; }

/* Pie oscuro */
.site-footer { background: var(--c-primary); color: #D3DEDC; border: 0; margin-top: 2rem; padding-block: 2rem; }
.site-footer strong { color: #fff; }
.footer-logo { display: block; width: 200px; height: auto; margin-bottom: .8rem; }
.site-footer .muted { color: #A9BDC4; }

@media (max-width: 900px) {
  .hero-logo-wrap { order: -1; justify-self: start; }
  .hero-logo { width: 240px; }
  .hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .btn, .card { transition: none !important; } .btn:hover, .module-card:hover { transform: none; } }
@media (max-width: 600px) { .brand-text { display: none; } .brand-logo { height: 38px; } }
