/* Estilos propios del módulo 14 (EA-CROSS-001, Lote 3, PAT-004). Generado desde el <style> original de los módulos; mismo orden y texto. */
:root {
  --bg: #0A0A0F;
  --surface: #1A1A26;
  --gold: #F5C518;
  --orange: #E8832A;
  --text: #E8E8F0;
  --text-muted: #9090A8;
  --border: rgba(245,197,24,.15);
  --success: #22c55e;
  --danger: #ef4444;
  --warn:   #f59e0b;
  --radius: 8px;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--orange); }
.mod-nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 52px; }
.mod-nav-brand { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; color: var(--gold); letter-spacing: .04em; }
.mod-nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.mod-nav-links a { color: var(--text-muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; transition: color .15s, border-color .15s; text-decoration: none; }
.mod-nav-links a:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 600px) { .mod-nav-links { display: none; } }
.module-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.mod-hero {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border-bottom: 2px solid var(--gold);
  padding: 48px 40px 36px;
  margin-bottom: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 32px;
}
.mod-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(245,197,24,.04) 0px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(245,197,24,.04) 0px, transparent 1px, transparent 40px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}
@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}
.mod-hero-eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  position: relative;
}
.mod-hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.0;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.mod-hero-title span { color: var(--gold); }
.mod-hero-sub {
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
}
.mod-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.mod-hero-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mod-hero-badge.ds   { background: rgba(245,197,24,.15); color: var(--gold); border: 1px solid rgba(245,197,24,.3); }
.mod-hero-badge.ric  { background: rgba(232,131,42,.15); color: var(--orange); border: 1px solid rgba(232,131,42,.3); }
.mod-hero-badge.sec  { background: rgba(96,165,250,.12); color: #60a5fa; border: 1px solid rgba(96,165,250,.25); }
.mod-hero-badge.nivel{ background: rgba(144,144,168,.1); color: var(--text-muted); border: 1px solid rgba(144,144,168,.2); }
.mod-hero-body { flex: 1; }
.mod-hero-img  { flex: 0 0 260px; }
.mod-hero-img img { width: 100%; border-radius: 12px; object-fit: cover; max-height: 280px; }
.progress-wrap {
  margin-bottom: 28px;
}
.progress-label {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.progress-bar-outer {
  height: 6px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 3px;
  transition: width .6s ease;
}
.mod-nav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.mod-nav-tab {
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all .2s;
}
.mod-nav-tab:hover {
  color: var(--gold);
  border-color: var(--border);
}
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.section-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.sec-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(245,197,24,.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.section-card-header h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.1;
}
.section-card-header h2 small {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.section-card-body {
  padding: 24px 28px;
}
.section-card-body p {
  color: var(--text-muted);
  margin-bottom: 14px;
}
.section-card-body p:last-child { margin-bottom: 0; }
.section-card-body strong { color: var(--text); }
.highlight-box {
  background: rgba(245,197,24,.06);
  border: 1px solid rgba(245,197,24,.2);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 14px 0;
}
.highlight-box p { color: var(--text-muted); margin-bottom: 6px; }
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box .hl-val {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--gold);
}
.warning-box {
  background: rgba(232,131,42,.06);
  border: 1px solid rgba(232,131,42,.2);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 14px 0;
}
.warning-box p { color: var(--text-muted); margin-bottom: 6px; }
.warning-box p:last-child { margin-bottom: 0; }
.norm-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.norm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.norm-table th {
  background: rgba(245,197,24,.1);
  color: var(--gold);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(245,197,24,.2);
  white-space: nowrap;
}
.norm-table td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text-muted);
  vertical-align: top;
}
.norm-table tr:last-child td { border-bottom: none; }
.norm-table tr:hover td { background: rgba(255,255,255,.02); }
.norm-table td strong { color: var(--text); }
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.glossary-item {
  background: rgba(245,197,24,.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
}
.glossary-term {
  font-weight: 700;
  color: var(--gold);
  font-size: .88rem;
  margin-bottom: 4px;
}
.glossary-def {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
#quiz { scroll-margin-top: 70px; }
.quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.quiz-badge {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F;
  font-weight: 800;
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.quiz-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
}
.question-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.question-text {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}
.question-ref {
  font-size: .74rem;
  color: var(--orange);
  font-style: italic;
  margin-bottom: 10px;
}
.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.options-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-muted);
  transition: border-color .15s, background .15s;
}
.options-list label:hover {
  border-color: var(--border);
  background: rgba(245,197,24,.04);
}
.options-list input[type="radio"] { margin-top: 2px; accent-color: var(--gold); }
.options-list label.correct {
  border-color: var(--success);
  background: rgba(34,197,94,.08);
  color: var(--success);
}
.options-list label.wrong {
  border-color: var(--danger);
  background: rgba(239,68,68,.08);
  color: var(--danger);
}
.feedback-block {
  margin-top: 10px;
  padding: 12px 16px;
  background: rgba(239,68,68,.06);
  border-left: 3px solid var(--danger);
  border-radius: 0 6px 6px 0;
  font-size: .84rem;
  color: var(--text-muted);
}
.feedback-block .fb-correct {
  color: var(--success);
  font-weight: 700;
  margin-bottom: 4px;
}
.feedback-block .fb-explicacion { margin-bottom: 6px; }
.feedback-block .fb-ref {
  color: var(--orange);
  font-size: .78rem;
  font-style: italic;
}
.quiz-actions { margin-top: 20px; }
.btn-check {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-check:disabled { opacity: .45; cursor: not-allowed; }
.quiz-result {
  display: none;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
}
.quiz-result.pass {
  display: block;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.3);
}
.quiz-result.partial {
  display: block;
  background: rgba(245,197,24,.06);
  border: 1px solid rgba(245,197,24,.2);
}
.quiz-result.fail {
  display: block;
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
}
.quiz-result-score {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.quiz-result.pass  .quiz-result-score { color: var(--success); }
.quiz-result.partial .quiz-result-score { color: var(--gold); }
.quiz-result.fail  .quiz-result-score { color: var(--danger); }
.quiz-result-msg {
  font-size: .92rem;
  color: var(--text-muted);
}
.nav-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .88rem;
  transition: all .2s;
}
.btn-back, .btn-home {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-back:hover, .btn-home:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-next {
  display: none;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F;
  border: none;
  font-weight: 700;
}
.btn-next.visible { display: inline-flex; }
.btn-next:hover { opacity: .88; color: #0A0A0F; }
@media (max-width: 600px) {
  .mod-hero-img { display: none; }
  .mod-hero { padding: 32px 20px 24px; }
  .section-card-header { padding: 16px 18px 12px; }
  .section-card-body { padding: 16px 18px; }
  .question-block { padding: 16px 18px; }
}
.mod-nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.mod-nav-links a { color: var(--text-muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; transition: color .15s, border-color .15s; text-decoration: none; }
.mod-nav-links a:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 600px) { .mod-nav-links { display: none; } }
.btn-notas-flotante { position: fixed; bottom: 180px; right: 24px; z-index: 999; background: var(--orange); color: #0a0a0f; border: none; border-radius: 50px; padding: 12px 20px; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(232,131,42,.3); transition: transform .15s ease, box-shadow .15s ease; }
.btn-notas-flotante:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(232,131,42,.45); }
.notas-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index: 500; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.notas-drawer-overlay.open { opacity: 1; pointer-events: all; }
.notas-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 90vw; background: var(--surface); border-left: 1px solid var(--orange); box-shadow: 0 0 60px rgba(232,131,42,.12); z-index: 501; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.notas-drawer.open { transform: translateX(0); }
.notas-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.notas-drawer-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.1rem; color: var(--orange); }
.notas-drawer-close { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; line-height: 1; }
.notas-drawer-close:hover { color: var(--text); }
.notas-drawer-textarea { flex: 1; margin: 16px 20px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'Barlow', sans-serif; font-size: .9rem; line-height: 1.5; padding: 14px; resize: none; outline: none; }
.notas-drawer-textarea:focus { border-color: var(--orange); }
.notas-drawer-estado { padding: 0 20px 16px; font-size: .76rem; color: var(--text-muted); min-height: 18px; }
.btn-ejercicios { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.btn-ejercicios:hover { border-color: var(--gold); color: var(--gold); }
