/* Estilos idénticos en los módulos 16, 17 (familia c) (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;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  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,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mod-nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: .04em;
}
.mod-nav-sep { color: var(--border); font-size: 1.1rem; }
.mod-nav-title {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.mod-hero {
  position: relative;
  background: var(--surface);
  border-bottom: 2px solid var(--gold);
  padding: 56px 28px 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 32px;
}
.mod-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(245,197,24,.06) 39px, rgba(245,197,24,.06) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(245,197,24,.06) 39px, rgba(245,197,24,.06) 40px);
  animation: gridMove 18s linear infinite;
  pointer-events: none;
}
@keyframes gridMove {
  0%   { transform: translate(0,0); }
  100% { transform: translate(40px,40px); }
}
.mod-hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  flex: 1;
}
.mod-hero-img  { flex: 0 0 260px; }
.mod-hero-img img { width: 100%; border-radius: 12px; object-fit: cover; max-height: 280px; }
.mod-hero-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.mod-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}
.mod-hero-title span { color: var(--gold); }
.mod-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 620px;
}
.mod-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mod-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  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-progress-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
}
.mod-progress-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mod-progress-label {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
}
.mod-progress-bar-outer {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
}
.mod-progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 3px;
  transition: width .4s ease;
}
.mod-progress-pct {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 36px;
  text-align: right;
}
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  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: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.2;
}
.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: .08em;
  margin-bottom: 4px;
}
.section-card-body {
  padding: 24px 28px;
}
.section-card-body p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.section-card-body p:last-child { margin-bottom: 0; }
.section-card-body strong { color: var(--text); font-weight: 600; }
.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.highlight-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.highlight-list li::before {
  content: '▸';
  color: var(--orange);
  font-size: .85rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(245,197,24,.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin-top: 16px;
}
.callout-icon { font-size: 1.1rem; line-height: 1.4; }
.callout p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.callout strong { color: var(--gold); }
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 24px 28px;
}
.glossary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.glossary-term {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.glossary-def {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
#quiz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.quiz-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.quiz-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: #fff;
}
.quiz-header h2 small {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.quiz-body { padding: 24px 28px; }
.quiz-meta {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.quiz-meta span { color: var(--gold); font-weight: 700; }
.question-block { margin-bottom: 28px; }
.question-block:last-of-type { margin-bottom: 0; }
.question-text {
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.question-num {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.options-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  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;
}
.options-list label:hover {
  border-color: rgba(245,197,24,.35);
  color: var(--text);
}
.options-list input[type="radio"] { display: none; }
.options-list label.selected {
  border-color: rgba(245,197,24,.5);
  background: rgba(245,197,24,.06);
  color: var(--text);
}
.options-list label.correct {
  border-color: var(--success);
  background: rgba(34,197,94,.07);
  color: var(--success);
}
.options-list label.wrong {
  border-color: var(--danger);
  background: rgba(239,68,68,.07);
  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: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-check {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F;
  font-family: 'Barlow', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-check:hover { opacity: .88; }
.btn-check:disabled { opacity: .45; cursor: not-allowed; }
.btn-retry {
  background: transparent;
  color: var(--text-muted);
  font-family: 'Barlow', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-retry:hover { border-color: var(--gold); color: var(--gold); }
.btn-retry.hidden { display: none; }
.quiz-result {
  display: none;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}
.quiz-result.visible { display: block; }
.quiz-result.passed { border-color: var(--success); }
.quiz-result.failed { border-color: var(--danger); }
.result-emoji { font-size: 2.2rem; margin-bottom: 8px; }
.result-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.quiz-result.passed .result-title { color: var(--success); }
.quiz-result.failed .result-title { color: var(--danger); }
.result-sub { font-size: .88rem; color: var(--text-muted); }
.result-score { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-top: 6px; }
.module-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; }
.mod-nav-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 4px; margin-bottom: 8px; }
.mod-nav-tabs a { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); color: var(--text-muted); transition: all .2s; text-decoration: none; }
.mod-nav-tabs a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.nav-footer {
  max-width: 860px;
  margin: 0 auto 60px;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  transition: border-color .15s, color .15s, background .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 {
  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; }
.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); }
