/* Estilos propios del módulo 20 (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;
  --radius:      8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
.mod-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 56px;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.mod-nav-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .03em;
}
.mod-nav-badge {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mod-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 2px solid var(--gold);
  padding: 56px 28px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.mod-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(245,197,24,.06) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(245,197,24,.06) 40px);
  pointer-events: none;
  animation: gridMove 18s linear infinite;
}
@keyframes gridMove { to { background-position: 0 40px, 40px 0; } }
.mod-hero-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
  position: relative;
}
.mod-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.0;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 14px;
}
.mod-hero-title span { color: var(--gold); }
.mod-hero-sub {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 22px;
  position: relative;
}
.mod-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.mod-hero-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 4px;
}
.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,.15); color: #60a5fa;           border: 1px solid rgba(96,165,250,.3); }
.mod-hero-badge.nivel{ background: transparent;          color: var(--text-muted); border: 1px solid var(--border); }
.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 {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.progress-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.progress-bar-outer {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 99px;
  transition: width .4s ease;
}
.progress-pct {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 34px;
  text-align: right;
}
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.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: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.15;
}
.section-card-header h2 small {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 3px;
}
.section-card-body {
  padding: 24px 28px;
}
.section-card-body p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: .95rem;
}
.section-card-body p:last-child { margin-bottom: 0; }
.section-card-body strong { color: var(--text); }
.section-card-body ul, .section-card-body ol {
  color: var(--text-muted);
  font-size: .95rem;
  padding-left: 20px;
  margin-bottom: 14px;
}
.section-card-body li { margin-bottom: 6px; }
.section-card-body li:last-child { margin-bottom: 0; }
.info-box {
  background: rgba(245,197,24,.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: .9rem;
  color: var(--text-muted);
}
.info-box strong { color: var(--gold); }
.info-box a { color: var(--gold); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
thead th {
  background: rgba(245,197,24,.1);
  color: var(--gold);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 9px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(245,197,24,.03); }
.tag-req {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.tag-req.obligatorio { background: rgba(239,68,68,.15); color: #f87171; }
.tag-req.opcional    { background: rgba(34,197,94,.12); color: #4ade80; }
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.symbol-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 12px;
  text-align: center;
}
.symbol-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.symbol-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.symbol-norm {
  font-size: .7rem;
  color: var(--orange);
}
.glossary-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 28px;
}
.glossary-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.glossary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.glossary-term {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.glossary-def {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.45;
}
#quiz {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.quiz-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 22px 28px 18px;
  border-bottom: 2px solid var(--gold);
}
.quiz-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 4px;
}
.quiz-header p { font-size: .88rem; color: var(--text-muted); }
.quiz-body { padding: 24px 0 0; display: flex; flex-direction: column; gap: 28px; }
.quiz-question {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.q-num {
  font-size: .72rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.q-text {
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}
.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-muted);
  transition: border-color .15s, background .15s;
  user-select: none;
}
.q-options label:hover { border-color: var(--gold); background: rgba(245,197,24,.04); }
.q-options input[type="radio"] { margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.q-options label.correct { border-color: var(--success); background: rgba(34,197,94,.08); color: var(--text); }
.q-options label.wrong   { border-color: var(--danger);  background: rgba(239,68,68,.08); }
.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 {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
.btn-check {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-check:hover { opacity: .88; }
.btn-check:disabled { opacity: .5; cursor: default; }
.quiz-result {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}
.quiz-result.show { display: block; }
.result-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--gold);
}
.result-msg { font-size: .95rem; color: var(--text-muted); margin-top: 8px; }
.result-pass { color: var(--success); }
.result-fail { color: var(--danger); }
.nav-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.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 {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F;
  border: none;
  display: none;
}
.btn-next.visible { display: inline-flex; }
@media (max-width: 600px) {
  .mod-hero-img { display: none; }
  .mod-hero  { padding: 40px 16px 36px; }
  main, .glossary-section, #quiz, .nav-footer { padding-left: 12px; padding-right: 12px; }
  .section-card-header, .section-card-body { padding-left: 16px; padding-right: 16px; }
  .symbol-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-footer { flex-direction: column; }
  .btn-nav { justify-content: center; }
}
.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); }
