/* ══════════════════════════════════════════════
   SEGURIDAD DIGITAL SIMPLE — styles.css
   Diseño: Cálido, orgánico, accesible, mobile-first
   ══════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ── CSS Variables (Light Theme) ── */
:root {
  --bg: #f5f3ef;
  --bg-alt: #eef2ee;
  --surface: #ffffff;
  --surface-2: #f9f7f4;
  --border: #d8d4cc;
  --text: #2c2a27;
  --text-2: #5a5650;
  --text-3: #8a8580;
  --accent: #2e7d5e;
  --accent-light: #e8f5ee;
  --accent-2: #1a5c46;
  --blue: #2563a8;
  --blue-light: #e8f0fb;
  --warn: #c85a00;
  --warn-light: #fff3e8;
  --danger: #b91c1c;
  --danger-light: #fef2f2;
  --success: #15803d;
  --success-light: #f0fdf4;
  --hero-bg: linear-gradient(145deg, #e8f5ee 0%, #dff0f9 50%, #f0ece8 100%);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --nav-height: 68px;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-display: 'Lora', Georgia, serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --bg: #1a1c18;
  --bg-alt: #1f2420;
  --surface: #272b25;
  --surface-2: #2f342c;
  --border: #3a3f37;
  --text: #e8e5df;
  --text-2: #b0ad9f;
  --text-3: #7a7870;
  --accent: #4caf85;
  --accent-light: #1e3428;
  --accent-2: #6dcba0;
  --blue: #5b9de8;
  --blue-light: #1a253a;
  --warn: #f09444;
  --warn-light: #2a1e0e;
  --danger: #f87171;
  --danger-light: #2a1212;
  --success: #4ade80;
  --success-light: #0f2a1c;
  --hero-bg: linear-gradient(145deg, #1e3428 0%, #1a253a 50%, #2a231e 100%);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: 'Courier New', monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.88em;
}

img { max-width: 100%; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════════════ TOPBAR ══════════════════ */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon { font-size: 1.5rem; }
.brand-name { color: var(--accent); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar { display: none; }

.nav-link {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-2);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.theme-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform 0.2s;
}
.theme-btn:hover { transform: scale(1.1); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Progress Bar ── */
.progress-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 1001;
  transition: width 0.1s linear;
  width: 0%;
}

/* ══════════════════ MOBILE DRAWER ══════════════════ */
.mobile-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--surface);
  z-index: 2000;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { right: 0; }

.drawer-header {
  padding: 20px 24px;
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-drawer {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-2);
  padding: 4px 8px;
  border-radius: 6px;
}
.close-drawer:hover { background: var(--surface-2); }

.drawer-nav {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.drawer-link {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.drawer-link:hover {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════ SECTIONS ══════════════════ */
main { padding-top: var(--nav-height); }

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }

.section-hero {
  background: var(--hero-bg);
  padding: 80px 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.section-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto;
}

/* ── Read Badge ── */
.read-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 2px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
}
.read-badge.read {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

/* ══════════════════ HERO ══════════════════ */
.hero-content {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-title em {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(46,125,94,0.35);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 6px 20px rgba(46,125,94,0.45); color: white; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-label { font-size: 0.85rem; font-weight: 700; color: var(--text-2); }

/* ── Warning Banner ── */
.warning-banner {
  background: var(--warn-light);
  border: 2px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text);
}
.warning-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ══════════════════ SUBSECTIONS ══════════════════ */
.subsection { margin-bottom: 48px; }
.subsection-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cards-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.info-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.info-card.card-danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--danger-light); }

.card-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.info-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* ── Tip Boxes ── */
.tip-box {
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 0.95rem;
}
.tip-box.compact { padding: 14px 18px; font-size: 0.88rem; margin: 12px 0; }
.tip-green { background: var(--success-light); border: 2px solid color-mix(in srgb, var(--success) 30%, transparent); }
.tip-blue { background: var(--blue-light); border: 2px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.tip-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── Do/Don't ── */
.do-dont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.do-card, .dont-card {
  border-radius: var(--radius);
  padding: 24px;
}
.do-card {
  background: var(--success-light);
  border: 2px solid color-mix(in srgb, var(--success) 30%, transparent);
}
.dont-card {
  background: var(--danger-light);
  border: 2px solid color-mix(in srgb, var(--danger) 30%, transparent);
}
.do-card h4, .dont-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.do-card li, .dont-card li {
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  color: var(--text-2);
}
.do-card li:last-child, .dont-card li:last-child { border-bottom: none; }

/* ── Password Example ── */
.password-example {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 1.05rem;
  padding: 6px 14px;
  border-radius: 8px;
  margin: 8px 0;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

/* ── Analogy Box ── */
.analogy-box {
  background: var(--blue-light);
  border: 2px solid color-mix(in srgb, var(--blue) 25%, transparent);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 0.95rem;
}
.analogy-box.compact { padding: 14px 18px; font-size: 0.88rem; margin: 12px 0; }
.analogy-icon { font-size: 2rem; flex-shrink: 0; }

/* ── Tool Cards ── */
.tool-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-icon { font-size: 2.5rem; margin-bottom: 12px; }
.tool-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.tool-card p { font-size: 0.85rem; color: var(--text-2); margin-bottom: 12px; }

.tool-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
}
.badge-free { background: var(--success-light); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }

/* ── Real Case ── */
.real-case {
  background: var(--surface);
  border: 2px solid var(--border);
  border-left: 5px solid var(--warn);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 32px;
}
.case-header {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.case-icon { font-size: 1.4rem; }
.real-case p { font-size: 0.95rem; color: var(--text-2); }

/* ── Alert List ── */
.alert-list { display: flex; flex-direction: column; gap: 16px; }
.alert-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.alert-item:hover { transform: translateX(4px); }
.alert-num {
  background: var(--danger);
  color: white;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.alert-item strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.alert-item p { font-size: 0.9rem; color: var(--text-2); }

/* ── Fake Messages ── */
.whatsapp-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.fake-msg {
  border-radius: var(--radius);
  border: 2px solid var(--border);
  overflow: hidden;
}
.msg-danger { border-color: var(--danger); }
.msg-ok { border-color: var(--success); }

.msg-header {
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 800;
}
.msg-danger .msg-header { background: var(--danger); color: white; }
.msg-ok .msg-header { background: var(--success); color: white; }

.msg-body {
  padding: 16px;
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}
.msg-body p { margin-bottom: 6px; }

.msg-flags, .msg-flags + div {
  padding: 12px 16px;
  background: var(--surface-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flag, .flag-ok {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.flag { background: var(--danger-light); color: var(--danger); }
.flag-ok { background: var(--success-light); color: var(--success); }

/* ── Steps List ── */
.steps-list { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  background: var(--accent);
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.step strong { display: block; margin-bottom: 2px; }
.step div { font-size: 0.9rem; color: var(--text-2); }

/* ── Mobile Cards Grid ── */
.mobile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.mobile-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mobile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mobile-card-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.mobile-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.mobile-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

.mini-tip {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--accent-light);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}

.permissions-table { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.perm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}
.perm-ok { background: var(--success-light); color: var(--text); }
.perm-danger { background: var(--danger-light); color: var(--text); }

/* ── Habits Grid ── */
.habits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.habit-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.habit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.habit-icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.habit-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.habit-card p { font-size: 0.9rem; color: var(--text-2); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--surface-2); }
.faq-q.open { color: var(--accent); }
.faq-arrow {
  font-size: 0.8rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding: 0 24px;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}
.faq-a.open {
  max-height: 200px;
  padding: 0 24px 18px;
}

/* ── Incident Scenarios ── */
.incident-scenarios {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.scenario-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
}
.scenario-tabs::-webkit-scrollbar { display: none; }
.scenario-tab {
  padding: 16px 20px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.scenario-tab:hover { color: var(--text); }
.scenario-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.scenario-content {
  display: none;
  padding: 28px;
}
.scenario-content.active { display: block; }

/* ── Emergency Box ── */
.emergency-box {
  background: var(--danger-light);
  border: 2px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: var(--radius);
  padding: 28px;
}
.emergency-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.emergency-item {
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
}

/* ── Checklist ── */
.checklist-container { margin-bottom: 28px; }
.checklist-category { margin-bottom: 24px; }
.checklist-category-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.checklist-items { display: flex; flex-direction: column; gap: 10px; }

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.checklist-item:hover { border-color: var(--accent); }
.checklist-item.checked {
  background: var(--success-light);
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
}
.checklist-item.checked .checklist-text { text-decoration: line-through; color: var(--text-3); }

.checklist-checkbox {
  width: 26px; height: 26px;
  border: 2px solid var(--border);
  border-radius: 7px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  background: var(--surface);
}
.checklist-item.checked .checklist-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.checklist-text { font-size: 0.95rem; color: var(--text-2); line-height: 1.5; }

.checklist-score {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.score-label { font-size: 0.9rem; color: var(--text-2); margin-bottom: 8px; }
.score-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
}
.score-bar-wrap {
  background: var(--bg);
  border-radius: 100px;
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.score-msg { font-size: 0.9rem; color: var(--text-2); margin-top: 8px; }

.checklist-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Glossary ── */
.glossary-search { margin-bottom: 20px; }
.glossary-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.glossary-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.glossary-input::placeholder { color: var(--text-3); }

.glossary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-btn {
  padding: 6px 16px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

.glossary-list { display: flex; flex-direction: column; gap: 10px; }
.glossary-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.glossary-item:hover { transform: translateX(4px); }
.glossary-term {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.glossary-cat {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
}
.glossary-def { font-size: 0.9rem; color: var(--text-2); }
.glossary-none { text-align: center; padding: 32px; color: var(--text-3); font-size: 1rem; }

/* ══════════════════ TOOLTIP ══════════════════ */
.tooltip-trigger {
  display: inline-block;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: help;
  border-bottom: 1px dotted var(--blue);
  margin-top: 10px;
}

.global-tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  font-family: var(--font-body);
  padding: 10px 16px;
  border-radius: 10px;
  max-width: 280px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-lg);
}
.global-tooltip.visible { opacity: 1; }

/* ══════════════════ FOOTER ══════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-2); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4, .footer-info h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.footer-links a { font-size: 0.88rem; color: var(--text-2); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-info p { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ══════════════════ ANIMATIONS ══════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* ══════════════════ PRINT AREA ══════════════════ */
.print-area { display: none; }

@media print {
  #topbar, .progress-bar, .mobile-drawer, .drawer-overlay, .checklist-actions, .btn, .hero-cta-row { display: none !important; }
  main { padding-top: 0 !important; }
  body { color: #000 !important; background: #fff !important; }
  .print-area { display: block !important; }
  .section:not(#checklist) { display: none !important; }
  #checklist { display: block !important; padding: 20px 0 !important; }
}

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 768px) {
  html { font-size: 17px; }
  .topbar-nav { display: none; }
  .menu-btn { display: flex; }

  .hero-cta-row { flex-direction: column; align-items: center; }
  .do-dont-grid { grid-template-columns: 1fr; }
  .whatsapp-examples { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .scenario-tabs { flex-wrap: nowrap; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .mobile-grid { grid-template-columns: 1fr; }
  .habits-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .scenario-tab { padding: 14px 14px; font-size: 0.8rem; }
}
