/* GUÍA SEGURIDAD VIAL — Estilos · Guía educativa informativa */

:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --navy-light: #334155;
  --road: #64748b;
  --green-safe: #059669;
  --green-light: #d1fae5;
  --red-alert: #dc2626;
  --yellow: #fbbf24;

  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;

  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b, #fbbf24);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;

  --container: 1140px;
  --header-h: 72px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto;
  padding: 10px 18px; clip: auto; background: var(--amber); color: var(--navy); font-weight: 700; border-radius: 8px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.top-notice { background: var(--navy); padding: 10px 0; text-align: center; }
.top-notice p { font-size: 0.8125rem; color: rgba(255,255,255,0.88); }
.top-notice strong { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border-bottom: 3px solid var(--amber);
  transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header__brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.header__logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.header__brand-accent { color: var(--amber-dark); }
.header__list { display: flex; gap: 28px; }
.header__link { font-size: 0.875rem; font-weight: 600; color: var(--text-2); transition: color 0.2s; }
.header__link:hover { color: var(--amber-dark); }
.header__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.header__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.3s var(--ease); }
.header__toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.header__toggle.is-active span:nth-child(2) { opacity: 0; }
.header__toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* HERO */
.hero {
  position: relative; padding: 88px 0 72px;
  background: var(--gradient-hero); overflow: hidden;
}
.hero__stripes {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background: repeating-linear-gradient(90deg, var(--amber) 0, var(--amber) 40px, transparent 40px, transparent 80px);
}
.hero__glow {
  position: absolute; top: -100px; right: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.2), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35);
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow);
}
.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.04em; color: #fff; margin-bottom: 18px;
}
.hero__title span {
  display: block; color: var(--amber);
}
.hero__lead { font-size: 1.125rem; color: rgba(255,255,255,0.88); line-height: 1.7; margin-bottom: 24px; max-width: 520px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero__chip {
  padding: 8px 16px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: 999px; font-size: 0.9375rem; font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gradient-accent); color: var(--navy); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.hero__updated { margin-top: 20px; font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__shield {
  width: 100%; max-width: 340px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.hero__badge-float {
  position: absolute; background: #fff; border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  animation: float 3.5s ease-in-out infinite;
}
.hero__badge-float--1 { top: 8%; right: 0; animation-delay: -1s; }
.hero__badge-float--2 { bottom: 12%; left: -10px; animation-delay: -2s; }
.hero__badge-float strong { display: block; font-size: 0.8125rem; color: var(--green-safe); }
.hero__badge-float small { font-size: 0.75rem; color: var(--text-3); }

.info-box {
  margin-top: 40px; padding: 18px 22px; display: flex; gap: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-left: 4px solid var(--amber); border-radius: var(--radius);
  max-width: 720px;
}
.info-box p { font-size: 0.875rem; color: rgba(255,255,255,0.9); line-height: 1.6; }

/* SECTIONS */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--amber-dark); margin-bottom: 12px;
}
.section--dark .section-eyebrow { color: var(--yellow); }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px;
}
.section--dark .section-title { color: #fff; }
.section-desc { font-size: 1.0625rem; color: var(--text-2); line-height: 1.7; }
.section--dark .section-desc { color: rgba(255,255,255,0.75); }

.concept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.concept-card {
  padding: 26px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--amber);
  transition: transform 0.3s var(--ease);
}
.concept-card:hover { transform: translateY(-6px); }
.concept-card__emoji { font-size: 1.75rem; margin-bottom: 12px; }
.concept-card__title { font-size: 0.9375rem; font-weight: 800; margin-bottom: 8px; }
.concept-card p { font-size: 0.8125rem; color: var(--text-2); line-height: 1.55; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.stat-chip {
  text-align: center; padding: 26px 18px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat-chip strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--amber-dark); margin-bottom: 4px; }
.stat-chip span { font-size: 0.8125rem; color: var(--text-2); line-height: 1.5; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card {
  padding: 32px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.compare-card--yes { border-top: 4px solid var(--green-safe); }
.compare-card--no { border-top: 4px solid var(--red-alert); }
.compare-card__tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; margin-bottom: 14px;
}
.compare-card--yes .compare-card__tag { background: var(--green-light); color: var(--green-safe); }
.compare-card--no .compare-card__tag { background: #fee2e2; color: var(--red-alert); }
.compare-card__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.compare-card__text { font-size: 0.9375rem; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; }
.compare-card__list li {
  font-size: 0.875rem; color: var(--text-2); padding: 8px 0 8px 18px;
  position: relative; border-bottom: 1px solid var(--border);
}
.compare-card__list li:last-child { border-bottom: none; }
.compare-card__list li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
}
.compare-card--yes .compare-card__list li::before { background: var(--green-safe); }
.compare-card--no .compare-card__list li::before { background: var(--red-alert); }

.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tip-card {
  padding: 26px; background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all 0.3s var(--ease);
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--amber); }
.tip-card__num { font-size: 2rem; font-weight: 800; color: var(--amber); opacity: 0.4; margin-bottom: 8px; line-height: 1; }
.tip-card__title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.tip-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

.tariff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tariff-item {
  padding: 24px 28px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--navy-mid);
}
.tariff-item__title { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.tariff-item p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

.tip-banner {
  margin-top: 28px; padding: 20px 26px;
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a; border-radius: var(--radius);
  font-size: 0.9375rem; color: #92400e; line-height: 1.65;
}
.tip-banner strong { color: var(--amber-dark); }

.steps-list { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; }
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-item__num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-accent); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.step-item__title { font-size: 1.0625rem; font-weight: 800; margin-bottom: 6px; }
.step-item p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; }

.rights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rights-card {
  padding: 26px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
}
.rights-card__title { font-size: 1rem; font-weight: 800; color: var(--yellow); margin-bottom: 8px; }
.rights-card p { font-size: 0.875rem; color: rgba(255,255,255,0.78); line-height: 1.6; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item.is-open { box-shadow: var(--shadow); border-color: #fde68a; }
.faq-item__question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-size: 0.9375rem; font-weight: 700; text-align: left;
}
.faq-item__question:hover { color: var(--amber-dark); }
.faq-item__icon { width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; background: var(--navy); border-radius: 1px; transition: 0.3s;
}
.faq-item__icon::before { width: 10px; height: 2px; top: 8px; left: 4px; }
.faq-item__icon::after { width: 2px; height: 10px; top: 4px; left: 8px; }
.faq-item.is-open .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.is-open .faq-item__answer { max-height: 240px; }
.faq-item__answer p { padding: 0 24px 20px; font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

.closing {
  padding: 88px 0; text-align: center; background: var(--gradient-hero);
}
.closing__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.closing__text { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto 28px; line-height: 1.7; }

.footer { padding: 52px 0 28px; background: #020617; color: rgba(255,255,255,0.65); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer__logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer__logo span { color: var(--amber); }
.footer__heading { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 14px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 0.875rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--amber); }
.footer__legal { padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.8125rem; }
.footer__disclaimer { margin-top: 8px; opacity: 0.6; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead, .hero__actions, .hero__chips { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; }
  .hero__badge-float { display: none; }
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); opacity: 0; transition: 0.3s var(--ease);
  }
  .header__nav.is-open { transform: translateY(0); opacity: 1; }
  .header__list { flex-direction: column; gap: 14px; }
  .header__toggle { display: flex; }
  .section { padding: 60px 0; }
  .compare-grid, .stats-row, .concept-grid, .tips-grid, .tariff-grid, .rights-grid, .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
