@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #C41230; --red-lt: #E01535; --red-dk: #9C0E26;
  --navy: #1D2B50; --navy-dk: #141E3C;
  --white: #ffffff;
  --gray-dark: #2C3E50; --gray: #5C6C7C; --gray-lt: #8A93A6;
  --bg-body: #F4F6FA;
  --bg-card: #FFFFFF;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  --r: 16px;
  --tr: .3s ease;
  --green: #27AE60; --green-lt: #2ECC71;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--gray-dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TOP BAR ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 60px;
  display: flex; align-items: center; padding: 0 32px; gap: 20px;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.tb-logo { width: 40px; height: 40px; flex-shrink: 0; }
.tb-title { font-size: 15px; font-weight: 600; color: var(--gray); white-space: nowrap; flex-shrink: 0; letter-spacing: 0.5px; }
.tb-title span { color: var(--navy); font-weight: 800; }
.prog-wrap { flex: 1; display: flex; align-items: center; gap: 16px; max-width: 500px; margin-left: auto; }
.prog-track { flex: 1; height: 8px; background: rgba(0,0,0,0.06); border-radius: 8px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--red); border-radius: 8px; transition: width var(--tr); width: 0%; }
.prog-lbl { font-size: 13px; font-weight: 700; color: var(--gray); white-space: nowrap; flex-shrink: 0; }

/* ── SLIDES ── */
.slides-root { padding-top: 60px; padding-bottom: 220px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; width: 100%; }
.slide { display: none; width: 100%; min-height: calc(100vh - 150px); flex-direction: column; align-items: center; justify-content: center; animation: fadeIn .4s ease-out; padding: 48px 24px 160px;}
.slide.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.slide-content { width: 100%; max-width: 960px; margin: 0 auto; position: relative; }

/* ── INFOGRAPHIC UTILS ── */
.tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(196,18,48,.08); border: 1px solid rgba(196,18,48,.15); color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 20px; border-radius: 50px; margin-bottom: 24px; }
.pg-title { font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; color: var(--navy); text-align: center; }
.pg-sub { font-size: clamp(17px, 2vw, 20px); color: var(--gray); line-height: 1.6; margin-bottom: 40px; max-width: 800px; text-align: center; margin-left: auto; margin-right: auto; }
.pg-sub strong { color: var(--navy); font-weight: 700; }
.hr { border: none; border-top: 2px solid rgba(0,0,0,.05); margin: 40px auto; width: 150px; border-radius: 2px; }

/* Grids */
.g3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px) { .g3 { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.g2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media(min-width:850px) { .g2 { grid-template-columns: 1fr 1fr; align-items: center; } }
@media(min-width:850px) { .g2.start { align-items: start; } }
.split-layout { display: flex; flex-direction: column; gap: 40px; }
@media(min-width: 900px) { .split-layout { flex-direction: row; align-items: flex-start; } .split-left { width: 45%; flex-shrink: 0; } .split-right { flex: 1; } }

/* Cards & Infographic Items */
.card { background: var(--bg-card); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: var(--r); padding: 28px; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card+.card { margin-top: 20px; }

.row { display: flex; gap: 20px; align-items: flex-start; }
.ico { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; background: rgba(196,18,48,.06); border: 1px solid rgba(196,18,48,.12); display: flex; align-items: center; justify-content: center; }
.ico i, .ico svg { font-size: 24px; color: var(--red); }
.ib { flex: 1; }
.ib .bold { font-weight: 800; font-size: 18px; margin-bottom: 8px; color: var(--navy); line-height: 1.3; }
.ib .sub { font-size: 15px; color: var(--gray); line-height: 1.6; }
.ib .sub strong { color: var(--navy); font-weight: 700; }

.red-banner { background: var(--red); color: white; font-weight: 800; font-size: clamp(16px, 2vw, 20px); padding: 24px 32px; border-radius: var(--r); margin-top: 32px; box-shadow: 0 12px 32px rgba(196,18,48,.25); text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: white; font-weight: 700; font-size: 16px; padding: 12px 24px; border-radius: 50px; margin: 24px 0; box-shadow: 0 8px 24px rgba(196,18,48,.2); }

.blist { list-style: none; margin: 16px 0 0; }
.blist li { display: flex; align-items: flex-start; gap: 16px; font-size: 16px; color: var(--gray); padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.06); line-height: 1.5; }
.blist li:last-child { border: none; padding-bottom: 0; }
.blist li::before { content: '\f0da'; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--red); flex-shrink: 0; font-size: 16px; margin-top: 2px; }

/* ── PORTADA ── */
#slide-1 { padding: 0; justify-content: flex-start; }
.cover-wrap { width: 100%; min-height: calc(100vh - 60px); display: flex; flex-direction: column; justify-content: center; position: relative; padding: 60px 8%; background: linear-gradient(135deg, #ffffff 0%, #f4f6fa 100%); overflow: hidden; }
.cover-bg { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; background: url('../assets/images/cover.png') center left / cover no-repeat; mask-image: linear-gradient(to right, transparent, black 30%); -webkit-mask-image: linear-gradient(to right, transparent, black 30%); opacity: 0.15; z-index: 0; }
.cv-content { position: relative; z-index: 10; max-width: 640px; }
.cv-header { display: flex; align-items: center; gap: 20px; margin-bottom: 48px; }
.cv-logo { width: 64px; height: 64px; flex-shrink: 0; }
.cv-org .l1 { font-size: 16px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.cv-org .l2 { font-size: 18px; font-weight: 800; color: var(--navy); }
.cv-title { font-size: clamp(32px, 5vw, 48px); font-weight: 400; line-height: 1.15; color: var(--navy); margin-bottom: 24px; }
.cv-title strong { font-weight: 900; font-size: clamp(40px, 6vw, 64px); display: block; color: var(--red); margin-top: 4px; }
.cv-desc { font-size: clamp(18px, 2.5vw, 22px); color: var(--gray); line-height: 1.6; margin-bottom: 40px; font-weight: 400; }
.cv-meta { display: flex; flex-wrap: wrap; gap: 32px; padding: 28px; background: white; border-radius: var(--r); box-shadow: var(--card-shadow); border: 1px solid var(--card-border); margin-top: 24px; }
.meta-b .mk { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-lt); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.meta-b .mk i { color: var(--red); font-size: 14px; }
.meta-b .mv { font-size: 16px; font-weight: 700; color: var(--navy); }

/* ── SALC INFOGRAPHIC STYLES ── */
.salc-box { background: white; border-top: 6px solid var(--red); box-shadow: var(--card-shadow); border-radius: var(--r); padding: 40px; margin-bottom: 40px; text-align: center; }
.salc-acr { font-size: clamp(40px, 8vw, 64px); font-weight: 900; letter-spacing: 2px; color: var(--navy); margin-bottom: 16px; line-height: 1; }
.salc-full { font-size: clamp(18px, 2.5vw, 24px); color: var(--gray); line-height: 1.5; }
.salc-full span { color: var(--red); font-weight: 800; }
.s5-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width: 768px) { .s5-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.s5-card { background: white; border: 1px solid var(--card-border); border-radius: var(--r); padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: var(--card-shadow); transition: transform .3s; }
.s5-card:hover { transform: translateY(-6px); }
.s5-ico { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--red); display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--red); margin-bottom: 24px; background: rgba(196,18,48,.03); }
.s5-title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }
.s5-desc { font-size: 15px; color: var(--gray); line-height: 1.6; }

/* ── NETWORK VIZ ── */
.netbox { background: white; border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: var(--r); padding: 32px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 32px; border-radius: 50px; font-size: 16px; font-weight: 800; border: none; cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.15); }
.btn-p { background: var(--red); color: white; }
.btn-p:hover:not(:disabled) { background: var(--red-lt); box-shadow: 0 12px 28px rgba(196,18,48,.3); }
.btn-g { background: white; border: 2px solid #e2e8f0; color: var(--gray-dark); box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.btn-g:hover:not(:disabled) { background: #f8f9fa; border-color: #cbd5e1; }
.btn-grn { background: var(--green); color: white; }
.btn-grn:hover:not(:disabled) { background: var(--green-lt); box-shadow: 0 12px 28px rgba(39,174,96,.3); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none!important; box-shadow: none!important; }


/* ── UNIFIED NAV E-LEARNING ── */
.unified-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06); border-top: 1px solid var(--card-border);
  display: flex; flex-direction: column; transition: transform 0.3s ease;
}
.unified-nav.hidden { transform: translateY(100%); }

.unav-audio {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  background: #f8f9fa; border-bottom: 1px solid var(--card-border);
}
.unav-audio-hide { display: none !important; }

.unav-btn { display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; font-weight: 700; border-radius: 50px; }
.unav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.icon-btn { width: 36px; height: 36px; border-radius: 50%; font-size: 14px; background: white; border: 2px solid #e2e8f0; color: var(--navy); }
.icon-btn:hover { background: #cbd5e1; }
.skip-btn { padding: 6px 14px; font-size: 13px; background: var(--gray-lt); color: white; }
.skip-btn:hover { background: var(--gray); text-decoration: none;}

.audio-waves { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin: 0 4px; }
.audio-waves span { display: block; width: 3px; border-radius: 2px; background: var(--red); animation: wave 1.2s ease-in-out infinite; }
.audio-waves span:nth-child(1){height:6px;animation-delay:0s}
.audio-waves span:nth-child(2){height:14px;animation-delay:.15s}
.audio-waves span:nth-child(3){height:10px;animation-delay:.3s}
.audio-waves span:nth-child(4){height:16px;animation-delay:.1s}
.audio-waves span:nth-child(5){height:8px;animation-delay:.25s}
.audio-waves.paused span { animation-play-state: paused; height: 4px!important; background: var(--gray-lt); }

.unav-info { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.audio-text { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.audio-status { font-size: 11px; color: var(--gray); white-space: nowrap; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; display: none; }
@media(min-width: 600px) { .audio-status { display: block; } }
.audio-prog-track { width: 100%; height: 6px; background: rgba(0,0,0,0.08); border-radius: 4px; overflow: hidden; }
.audio-prog-fill { height: 100%; background: var(--red); border-radius: 4px; width: 0%; transition: width 0.3s linear; }

.unav-pages {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 16px;
}
.nav-btn { padding: 10px 20px; font-size: 14px; background: white; border: 1.5px solid #cbd5e1; color: var(--gray-dark); gap: 8px; }
.nav-btn.prim { background: var(--red); color: white; border-color: var(--red); }
.nav-btn:hover:not(:disabled) { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-1px); }
.nav-btn.prim:hover:not(:disabled) { background: var(--red-lt); box-shadow: 0 4px 16px rgba(196,18,48,0.3); }
@media(max-width: 500px) { .nav-btn span { display: none; } .nav-btn { padding: 12px; border-radius: 50%; width: 44px; height: 44px; } }

.dots-scroll { flex: 1; overflow-x: auto; display: flex; justify-content: center; -ms-overflow-style: none; scrollbar-width: none; }
.dots-scroll::-webkit-scrollbar { display: none; }
.dots { display: flex; gap: 8px; align-items: center; padding: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; cursor: pointer; transition: all 0.3s; flex-shrink: 0; }
.dot.active { background: var(--red); width: 28px; border-radius: 5px; }
.dot.visited { background: #FFC9D2; }

@media(min-width: 850px) {
  .unified-nav { flex-direction: row; padding: 0 12px; }
  .unav-audio { flex: 1; border-bottom: none; background: transparent; border-right: 1px solid var(--card-border); padding: 16px 24px; }
  .unav-pages { flex: 1; padding: 16px 24px; }
  .dots-scroll { justify-content: flex-end; margin-right: auto;}
}

/* ── PLAY PROMPT OVERLAY ── */
.play-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 180;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease; text-align: center;
}
.play-overlay.show { opacity: 1; pointer-events: all; cursor: pointer; }
.po-pulse {
  width: 80px; height: 80px; background: var(--red); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  box-shadow: 0 0 0 0 rgba(196,18,48, 0.5); animation: pulse 1.5s infinite; margin-bottom: 24px;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196,18,48, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 30px rgba(196,18,48, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196,18,48, 0); }
}
.po-text { font-size: 16px; color: var(--navy); line-height: 1.5; }
.po-text strong { font-size: 20px; font-weight: 900; }

/* ── FASE 4: QUIZ FIXES ── */
.q-block { background: white; margin-bottom: 24px; padding: 24px; border-radius: 12px; border: 1px solid var(--card-border); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.q-num { font-size: 13px; font-weight: 800; color: var(--navy); text-transform: uppercase; margin-bottom: 12px; }
.q-text { font-size: 18px; font-weight: 700; color: var(--gray-dark); margin-bottom: 16px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: #f8f9fa; border: 2px solid transparent; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-size: 15px; color: var(--navy); }
.opt:hover { background: #e2e8f0; }
.opt input { display: none; }
.opt-r, .opt-c { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; display: inline-block; flex-shrink: 0; position: relative; margin-top:2px; }
.opt-c { border-radius: 4px; }
input:checked + .opt-r { border-color: var(--red); }
input:checked + .opt-r::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: var(--red); border-radius: 50%; }
input:checked + .opt-c { background: var(--red); border-color: var(--red); align-items:center; justify-content:center; display: flex; color: white;}
input:checked + .opt-c::after { content: '✓'; color: white; font-size:12px; font-weight:bold; }
.opt:has(input:checked) { background: #fff4f6; border-color: #ffb3c1; }

/* ── ANIMATION SYNC ── */
.sync-seq { opacity: 0; transform: translateY(15px); transition: opacity 0.8s ease, transform 0.8s ease; }
.sync-seq.visible { opacity: 1; transform: translateY(0); }
