@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --color-background-primary: #fff;
  --color-background-secondary: #F8FAFC;
  --color-text-primary: #0F172A;
  --color-text-secondary: #64748B;
  --color-text-tertiary: #94A3B8;
  --color-border-tertiary: #E2E8F0;
  --color-border-secondary: #CBD5E1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.site {
  font-family: 'DM Sans', sans-serif;
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  width: 100%;
}

/* ── TOPBAR ── */
.topbar {
  background: #0B3D6E;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 28px; height: 28px;
  background: #4EAAFF;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}

.logo-icon svg { width: 16px; height: 16px; fill: #fff; }

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700; color: #fff;
}

.logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  display: block;
  margin-top: -3px;
}

/* ── NAV DESKTOP ── */
.nav {
  display: flex;
  gap: 0;
}

.nav a {
  color: rgba(255,255,255,0.7);
  font-size: 12px; font-weight: 500;
  padding: 0 11px;
  height: 56px;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover, .nav a.act {
  color: #fff;
  border-bottom-color: #4EAAFF;
}

/* ── HAMBURGER (oculto en desktop) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── MENÚ MÓVIL ── */
.nav-mobile {
  display: none;
  background: #0A325A;
  z-index: 100;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: rgba(255,255,255,0.8);
  font-size: 14px; font-weight: 500;
  padding: 14px 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  cursor: pointer;
}

.nav-mobile a:hover, .nav-mobile a.act {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* ── HERO ── */
.hero-band {
  background: #0B3D6E;
  padding: 2.5rem 1.5rem 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 11px; font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  max-width: 460px;
}

.hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 1.75rem;
}

.search-box {
  background: #fff;
  border-radius: 10px;
  padding: 4px 4px 4px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
}

.search-box input {
  flex: 1;
  border: none; outline: none;
  font-size: 14px;
  color: #0B3D6E;
  font-family: 'DM Sans', sans-serif;
  background: transparent;
  min-width: 0;
}

.search-box input::placeholder { color: #94A3B8; }

.search-btn {
  background: #0B3D6E;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── TRANSPORT STRIP ── */
.transport-strip {
  background: #0A325A;
  padding: 0 1rem;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.transport-strip::-webkit-scrollbar { display: none; }

.t-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.6;
  flex-shrink: 0;
}

.t-item:hover, .t-item.act { opacity: 1; border-bottom-color: #4EAAFF; }
.t-icon { font-size: 18px; }
.t-label { font-size: 10px; color: #fff; font-weight: 500; letter-spacing: 0.04em; }

/* ── BODY ── */
.body { padding: 1.5rem; }

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.section-sub {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

/* ── CITY CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 2rem;
}

.city-card {
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  background: var(--color-background-primary);
  transition: border-color 0.2s;
}

.city-card:hover { border-color: var(--color-border-secondary); }

.city-dot {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #E6F1FB;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.city-name { font-size: 13px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 3px; }
.city-modes { font-size: 11px; color: var(--color-text-secondary); }

/* ── LINES ── */
.lines-list { display: grid; gap: 8px; margin-bottom: 2rem; }

.line-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 8px;
  cursor: pointer;
  background: var(--color-background-primary);
}

.line-row:hover { background: var(--color-background-secondary); }

.line-badge {
  background: #0B3D6E;
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.line-info { flex: 1; min-width: 0; }
.line-name { font-size: 13px; font-weight: 500; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-stops { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }
.line-arr { font-size: 16px; color: var(--color-text-tertiary); flex-shrink: 0; }

/* ── NEWS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

.news-card {
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-background-primary);
}

.news-thumb {
  height: 80px;
  background: #E6F1FB;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}

.news-body { padding: 12px; }
.news-tag { font-size: 10px; color: #185FA5; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 5px; }
.news-title { font-size: 12px; font-weight: 500; color: var(--color-text-primary); line-height: 1.4; }

/* ── FOOTER ── */
.footer { background: #0B3D6E; padding: 1.5rem; margin-top: 1rem; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.6); cursor: pointer; text-decoration: none; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* Desktop: asegurar que nav-mobile nunca aparece */
@media (min-width: 769px) {
  .nav-mobile { display: none !important; }
  .hamburger { display: none !important; }
}

/* Tablet */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: 22px; }

  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .news-grid  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Móvil */
@media (max-width: 480px) {
  .topbar { padding: 0 1rem; }
  .hero-band { padding: 2rem 1rem 2.5rem; }
  .body { padding: 1rem; }
  .footer { padding: 1.25rem 1rem; }

  .hero-title { font-size: 20px; }
  .hero-desc  { font-size: 12px; }

  .search-box { max-width: 100%; }
  .search-btn { padding: 8px 12px; font-size: 12px; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .news-grid  { grid-template-columns: 1fr; }

  .line-name { font-size: 12px; }
  .line-badge { font-size: 9px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 12px; }
}
a {
  text-decoration: none;
}
.logo-text a,
.logo-sub a {
  text-decoration: none;
  color: inherit;
}