/* Estilos propios del módulo 3 (EA-CROSS-001, Lote 3, PAT-004). Generado desde el <style> original de los módulos; mismo orden y texto. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
: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:    12px;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}
html { font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; }
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); }
.mod-nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.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; } }
a:hover { text-decoration: underline; }
.mod-hero {
  position: relative;
  background: var(--surface);
  border-bottom: 2px solid var(--gold);
  padding: 56px 24px 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 32px;
}
.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; }
.mod-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(245,197,24,.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(245,197,24,.04) 40px);
}
.mod-hero-eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.mod-hero-title { font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; color: #fff; margin-bottom: 14px; }
.mod-hero-title span { color: var(--gold); }
.mod-hero-sub { font-size: .95rem; color: var(--text-muted); max-width: 580px; margin-bottom: 24px; }
.mod-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-hero-badge {
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; border: 1px solid;
}
.mod-hero-badge.ds    { border-color: var(--gold);       color: var(--gold); }
.mod-hero-badge.ric   { border-color: var(--orange);      color: var(--orange); }
.mod-hero-badge.sec   { border-color: #60a5fa;            color: #60a5fa; }
.mod-hero-badge.nivel { border-color: var(--text-muted);  color: var(--text-muted); }
.progress-wrap { padding: 16px 40px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.progress-label { font-size: .78rem; 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%; background: linear-gradient(90deg, var(--gold), var(--orange)); border-radius: 3px; width: 0%; transition: width .4s ease; }
.progress-pct { font-size: .78rem; font-weight: 700; color: var(--gold); min-width: 34px; text-align: right; }
.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;
}
.mod-nav-tabs a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 28px;
  overflow: hidden;
}
.section-card-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.section-card-header .sec-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(245,197,24,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.section-card-header h2 {
  font-family: var(--font-head); font-size: 1.45rem; line-height: 1.1;
  color: #fff; font-weight: 900;
}
.section-card-header h2 small {
  display: block; font-family: var(--font-body); font-size: .72rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 4px;
}
.section-card-body { padding: 24px 28px; }
.section-card-body p { color: var(--text-muted); font-size: .92rem; margin-bottom: 14px; }
.section-card-body p:last-child { margin-bottom: 0; }
.section-card-body strong { color: var(--text); }
.alert {
  border-radius: 8px; padding: 14px 18px; margin: 16px 0;
  font-size: .87rem; border: 1px solid;
}
.alert-gold  { background: rgba(245,197,24,.07);  border-color: rgba(245,197,24,.3);  color: #fde68a; }
.alert-orange{ background: rgba(232,131,42,.07);  border-color: rgba(232,131,42,.3);  color: #fdba74; }
.alert-blue  { background: rgba(96,165,250,.07);  border-color: rgba(96,165,250,.25); color: #93c5fd; }
.alert strong { display: block; margin-bottom: 4px; }
.data-table-wrap { overflow-x: auto; margin: 16px 0; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.data-table th {
  background: rgba(245,197,24,.08);
  color: var(--gold); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text-muted); vertical-align: top;
}
.data-table td strong { color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table td.num { color: var(--gold); font-weight: 700; white-space: nowrap; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin: 16px 0; }
.info-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 16px;
}
.info-card .ic-icon { font-size: 1.4rem; margin-bottom: 8px; }
.info-card h4 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.info-card p, .info-card ul { font-size: .82rem; color: var(--text-muted); }
.info-card ul { padding-left: 16px; }
.info-card ul li { margin-bottom: 3px; }
.steps { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(245,197,24,.12); border: 1px solid rgba(245,197,24,.3);
  color: var(--gold); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px;
}
.step-content h4 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.step-content p  { font-size: .85rem; color: var(--text-muted); }
.glossary-list { display: flex; flex-direction: column; gap: 12px; }
.glossary-item { border-left: 3px solid var(--gold); padding: 10px 0 10px 16px; }
.glossary-term { font-size: .92rem; font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.glossary-def  { font-size: .85rem; color: var(--text-muted); }
.glossary-ref  { font-size: .72rem; color: var(--orange); margin-top: 3px; }
.quiz-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 28px;
  overflow: hidden;
}
.quiz-header { padding: 24px 28px 16px; border-bottom: 1px solid var(--border); }
.quiz-header h2 {
  font-family: var(--font-head); font-size: 1.6rem; color: #fff; margin-bottom: 4px;
}
.quiz-meta { font-size: .78rem; color: var(--text-muted); }
.quiz-body { padding: 24px 28px; }
.question-block { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.question-block:last-of-type { border-bottom: none; margin-bottom: 0; }
.question-num { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; font-weight: 700; }
.question-text { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 14px; line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 8px; }
.option-label {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 14px;
  cursor: pointer; transition: all .15s;
  font-size: .87rem; color: var(--text-muted);
}
.option-label:hover { border-color: var(--gold); color: var(--text); }
.option-label input { margin-top: 2px; accent-color: var(--gold); }
.option-label.correct { background: rgba(34,197,94,.1);  border-color: var(--success); color: #86efac; }
.option-label.wrong   { background: rgba(239,68,68,.1);  border-color: var(--danger);  color: #fca5a5; }
.btn-check {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #0A0A0F; border: none; border-radius: 8px;
  padding: 12px 28px; font-size: .9rem; font-weight: 700;
  cursor: pointer; margin-top: 8px; transition: opacity .2s;
}
.btn-check:hover { opacity: .88; }
.btn-check:disabled { opacity: .4; cursor: not-allowed; }
.quiz-result { margin-top: 20px; padding: 18px 22px; border-radius: var(--radius); font-size: .9rem; display: none; }
.quiz-result.show { display: block; }
.quiz-result.pass    { background: rgba(34,197,94,.08);  border: 1px solid var(--success); color: #86efac; }
.quiz-result.fail    { background: rgba(239,68,68,.08);  border: 1px solid var(--danger);  color: #fca5a5; }
.quiz-result.partial { background: rgba(245,158,11,.08); border: 1px solid var(--warn);    color: #fcd34d; }
.result-score { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.result-msg   { font-size: .85rem; opacity: .85; }
.nav-footer {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.btn-nav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: 8px;
  font-size: .87rem; font-weight: 600; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn-back { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.btn-back:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-home { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.btn-home:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-next { background: linear-gradient(135deg, var(--orange), var(--gold)); color: #0A0A0F; border: none; display: none; }
.btn-next:hover { opacity: .88; text-decoration: none; }
.btn-next.visible { display: inline-flex; }
footer {
  text-align: center; padding: 28px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .75rem;
  margin-top: 48px;
}
.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; }
@media (max-width: 640px) {
  .mod-hero { padding: 36px 20px 28px; }
  .mod-hero-img { display: none; }
  .section-card-header { padding: 16px 18px 14px; }
  .section-card-body   { padding: 18px; }
  .quiz-header { padding: 18px 18px 14px; }
  .quiz-body   { padding: 18px; }
  .progress-wrap { padding: 12px 20px; }
  .data-table { font-size: .78rem; }
}
.btn-ejercicios { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.btn-ejercicios:hover { border-color: var(--gold); color: var(--gold); }
