/* ===== VARIABLES ===== */
:root {
  --navy: #1B3A6B;
  --navy-dark: #0E1C36;
  --gold: #F5C242;
  --gold-light: #FFF8DC;
  --text: #1E293B;
  --text-muted: #64748B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --success: #10B981;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 28, 54, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.bus-emoji { font-size: 1.4rem; }
.logo-dot { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0E1C36 0%, #1B3A6B 50%, #0a3d62 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245, 194, 66, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(27, 58, 107, 0.4) 0%, transparent 50%);
}
.hero-bg::after {
  content: '🚌';
  position: absolute;
  right: -60px;
  bottom: 80px;
  font-size: 280px;
  opacity: 0.04;
  transform: scaleX(-1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 820px;
}
.hero-badge {
  display: inline-block;
  background: rgba(245, 194, 66, 0.15);
  border: 1px solid rgba(245, 194, 66, 0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hd-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 14px 22px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.hd-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.hd-val { display: block; font-size: 0.95rem; font-weight: 700; color: var(--white); }
.hd-arrow { color: var(--gold); font-size: 1.2rem; font-weight: 700; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 100px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(245,194,66,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,194,66,0.45);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.dark-section { background: var(--navy-dark); color: var(--white); }
.light-section { background: var(--gold-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-top: 12px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-head.light h2 { color: var(--white); }
.section-desc { margin-top: 12px; color: var(--text-muted); font-size: 1rem; }

.tag {
  display: inline-block;
  background: var(--gold-light);
  color: #92650a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 100px;
}
.dark-section .tag { background: rgba(245,194,66,0.15); color: var(--gold); }
.light-section .tag { background: rgba(245,194,66,0.4); color: #7a5100; }

/* ===== MIN HISTORIA ===== */
.historia-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.story-blocks { display: flex; flex-direction: column; gap: 28px; }
.story-block {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.story-block:hover { transform: translateY(-2px); }
.highlight-block {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff8dc, #ffffff);
}
.sb-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.sb-text h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.sb-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.sb-text strong { color: var(--text); }

.historia-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.aside-card h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 16px; }
.gold-card { border-top: 3px solid var(--gold); }
.heart-card { border-top: 3px solid #ef4444; }
.heart-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.bus-row { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bus-row:last-child { border-bottom: none; }
.bus-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.bus-info { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.info-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-muted); flex-shrink: 0; }
.info-row strong { text-align: right; color: var(--text); }

/* ===== KRAV ===== */
.krav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.krav-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, background 0.2s;
}
.krav-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); }
.krav-num { font-size: 2.5rem; font-weight: 900; color: var(--gold); opacity: 0.6; line-height: 1; margin-bottom: 12px; }
.krav-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.krav-card p { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

.ykb-box {
  background: rgba(245,194,66,0.1);
  border: 1px solid rgba(245,194,66,0.25);
  border-radius: var(--radius);
  padding: 36px;
}
.ykb-box h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 24px; text-align: center; }
.modules { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mod {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
}
.mod-n {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  transition: all 0.2s;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--gold); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ===== RESOURCE CARDS ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.yt-thumb {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.yt-thumb.thumb-2 { background: linear-gradient(135deg, #1B3A6B, #2563eb); }
.yt-thumb.thumb-3 { background: linear-gradient(135deg, #065f46, #059669); }
.yt-thumb.thumb-4 { background: linear-gradient(135deg, #7c2d12, #dc2626); }
.yt-thumb.thumb-5 { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.yt-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext y='80' font-size='80' opacity='0.06' fill='white'%3E🚌%3C/text%3E%3C/svg%3E") center/cover;
}
.yt-play {
  background: #FF0000;
  color: white;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1;
  padding-left: 4px;
  box-shadow: 0 4px 16px rgba(255,0,0,0.4);
  transition: transform 0.2s;
}
.resource-card:hover .yt-play { transform: scale(1.1); }
.yt-label {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rc-info { padding: 18px; flex: 1; }
.rc-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rc-info p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ===== EXTRA RESOURCES ===== */
.extra-resources { margin-top: 56px; }
.extra-resources h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; color: var(--navy); }
.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.extra-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.extra-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.extra-icon { font-size: 1.8rem; }
.extra-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.extra-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--success), var(--gold), var(--border));
}
.tl-item {
  position: relative;
  margin-bottom: 40px;
}
.tl-dot {
  position: absolute;
  left: -34px;
  top: 24px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--bg);
  z-index: 1;
}
.tl-item.done .tl-dot { background: var(--success); }
.tl-item.active .tl-dot { background: var(--gold); box-shadow: 0 0 0 6px rgba(245,194,66,0.2); animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{box-shadow:0 0 0 0px rgba(245,194,66,0.4)} 50%{box-shadow:0 0 0 10px rgba(245,194,66,0)} }

.tl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.active-card { border-color: var(--gold); border-width: 2px; }
.tl-date { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.tl-item.done .tl-date { color: var(--success); }
.tl-item.active .tl-date { color: #b45309; }
.tl-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 6px 0 8px; }
.tl-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.status-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 12px;
}
.tl-item.future .tl-card { opacity: 0.65; }

/* ===== LINKS SECTION ===== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.link-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: var(--shadow-lg); }
.lc-icon { font-size: 2rem; }
.link-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.link-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.reminders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.reminder-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.warn-card { border-left: 4px solid #f59e0b; }
.contact-card { border-left: 4px solid var(--navy); }
.reminder-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.reminder-card ul { display: flex; flex-direction: column; gap: 10px; }
.reminder-card li { font-size: 0.875rem; color: var(--text-muted); padding-left: 12px; border-left: 2px solid #f59e0b; }
.reminder-card li strong { color: var(--text); }
.c-row { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--border); }
.c-row:last-child { border-bottom: none; }
.c-row span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.c-row strong { font-size: 0.875rem; color: var(--text); margin-top: 2px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-size: 1rem;
}
.footer-brand .bus-emoji { font-size: 2rem; }
.footer-brand strong { display: block; font-size: 1.1rem; font-weight: 700; }
.footer-brand span { font-size: 0.85rem; color: var(--gold); }
.footer-dedication { font-size: 0.9rem; color: rgba(255,255,255,0.5); max-width: 400px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .historia-layout { grid-template-columns: 1fr; }
  .historia-aside { position: static; }
  .reminders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }
  .nav-toggle { display: flex; }

  .section { padding: 72px 0; }
  .hero-dates { flex-direction: column; gap: 8px; }
  .hd-arrow { transform: rotate(90deg); }

  .krav-grid { grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: 1fr 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 28px; }
  .tl-dot { left: -22px; }
}

@media (max-width: 480px) {
  .krav-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: 1fr; }
  .modules { flex-direction: column; }
  .mod { width: 100%; }
}
