/* Estilos propios del módulo 15 (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;
  --surface2: #22223A;
  --gold: #F5C518;
  --orange: #E8832A;
  --text: #E8E8F0;
  --text-muted: #9090A8;
  --border: rgba(245,197,24,.15);
  --success: #22c55e;
  --danger: #ef4444;
  --warn:   #f59e0b;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
.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: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.15rem; color: var(--gold); }
a:hover { text-decoration: underline; }
.mod-hero {
  position: relative;
  background: linear-gradient(135deg, #0A0A0F 0%, #12121E 60%, #1A1A26 100%);
  padding: 56px 24px 48px;
  overflow: hidden;
  border-bottom: 2px solid rgba(245,197,24,.18);
  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) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(245,197,24,.06) 40px);
  pointer-events: none;
}
.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: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.mod-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 14px;
}
.mod-hero-title span { color: var(--gold); }
.mod-hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 24px;
}
.mod-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mod-badge-ric { background: rgba(245,197,24,.12); color: var(--gold); border: 1px solid rgba(245,197,24,.3); }
.mod-badge-ds { background: rgba(232,131,42,.12); color: var(--orange); border: 1px solid rgba(232,131,42,.3); }
.mod-badge-ve { background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.progress-wrap {
  background: var(--surface);
  border-bottom: 1px solid rgba(245,197,24,.1);
  padding: 12px 24px;
}
.progress-wrap-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.progress-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  white-space: nowrap;
}
.progress-bar-outer {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  width: 79%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 3px;
  transition: width .6s ease;
}
.progress-pct {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.mod-nav-tabs {
  background: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0 24px;
  overflow-x: auto;
}
.mod-nav-tabs-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}
.mod-nav-tab {
  padding: 13px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  cursor: pointer;
}
.mod-nav-tab:hover, .mod-nav-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-decoration: none;
}
.module-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.section-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.section-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  user-select: none;
}
.section-card-header:hover { background: rgba(255,255,255,.02); }
.section-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .85rem;
  color: #0A0A0F;
}
.section-card-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.section-card-para {
  font-size: .72rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-chevron {
  font-size: .85rem;
  color: var(--text-muted);
  transition: transform .25s;
}
.section-card.open .section-chevron { transform: rotate(180deg); }
.section-card-body {
  padding: 20px 22px;
  display: none;
}
.section-card.open .section-card-body { display: block; }
.section-card-body p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 14px;
}
.section-card-body p:last-child { margin-bottom: 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.card-item {
  background: var(--surface2);
  border: 1px solid rgba(245,197,24,.12);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--text);
}
.card-item::before {
  content: '⚡ ';
  color: var(--gold);
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245,197,24,.18);
}
.table-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.07);
}
.norm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.norm-table caption {
  font-weight: 700;
  font-size: .82rem;
  color: var(--orange);
  text-align: left;
  padding: 12px 16px 10px;
  background: var(--surface2);
  border-bottom: 1px solid rgba(255,255,255,.07);
  letter-spacing: .04em;
}
.norm-table th {
  background: rgba(245,197,24,.1);
  color: var(--gold);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(245,197,24,.2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.norm-table td {
  padding: 9px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.norm-table tr:last-child td { border-bottom: none; }
.norm-table tr:hover td { background: rgba(255,255,255,.02); color: var(--text); }
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.glossary-item {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
}
.glossary-term {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 5px;
}
.glossary-def {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.quiz-wrap { margin-bottom: 40px; }
.quiz-question {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.quiz-q-num {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 8px;
}
.quiz-q-text {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-muted);
  transition: border-color .2s, background .2s;
}
.quiz-options label:hover {
  border-color: rgba(245,197,24,.3);
  color: var(--text);
}
.quiz-options input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
}
.quiz-options label.correct {
  background: rgba(34,197,94,.1);
  border-color: var(--success);
  color: #4ade80;
}
.quiz-options label.wrong {
  background: rgba(239,68,68,.08);
  border-color: var(--danger);
  color: #f87171;
}
.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; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.btn-check {
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn-check:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-check:disabled { opacity: .4; cursor: not-allowed; }
.quiz-result {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  flex: 1;
  min-width: 220px;
}
.quiz-result.pass { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #4ade80; }
.quiz-result.partial { background: rgba(245,197,24,.1); border: 1px solid rgba(245,197,24,.3); color: var(--gold); }
.quiz-result.fail { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #f87171; }
.nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  border: none;
  text-decoration: none;
}
.btn-nav:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.btn-back {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-home {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-next {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F;
  display: none;
}
@media (max-width: 600px) {
  .mod-hero-img { display: none; }
  .mod-hero { padding: 36px 16px 32px; }
  .module-wrap { padding: 24px 16px 48px; }
  .section-card-header { padding: 14px 16px; }
  .section-card-body { padding: 14px 16px; }
  .nav-footer { flex-direction: column; align-items: stretch; }
  .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); }
