@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
  background-image: url('../img/jarabacoa.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.8);
  z-index: 0;
}
main {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

header { text-align: center; margin-bottom: 2rem; }
h1 { font-size: 2.2rem; font-weight: 800; color: #fbbf24; margin-bottom: 0.5rem; }
.subtitle { color: #94a3b8; font-size: 1rem; }
.date-badge {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.summary-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.summary-item {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.summary-num { font-size: 1.5rem; font-weight: 800; color: #fff; }
.summary-lbl { font-size: 0.7rem; color: #64748b; font-weight: 700; text-transform: uppercase; }

.horario-section {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.section-header {
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.chevron {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
  color: #64748b;
}
.chevron.open {
  transform: rotate(180deg);
}
.section-title { font-size: 1.1rem; font-weight: 800; color: #fff; }
.section-direction {
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 4px;
  text-transform: uppercase;
}
.dir-ida { background: rgba(59,130,246,0.15); color: #60a5fa; }
.dir-vuelta { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.section-count { font-size: 0.75rem; color: #64748b; font-weight: 600; }

.passenger-list { display: none; }
.passenger-list.open { display: flex; flex-direction: column; }
.passenger-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  gap: 1rem;
}
.passenger-row:last-child { border-bottom: none; }
.passenger-num {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #475569;
}
.passenger-main { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.passenger-name { font-size: 1rem; font-weight: 700; color: #f1f5f9; }
.passenger-meta { font-size: 0.75rem; color: #475569; margin-top: 0.15rem; }
.passenger-status { text-align: right; }
.badge-base {
  font-size: 0.6rem; font-weight: 800;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.badge-confirmado { background: rgba(52,211,153,0.1); color: #34d399; }
.badge-espera { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-point { background: rgba(59,130,246,0.1); color: #60a5fa; margin-top: 0.3rem; }
.badge-camino { background: rgba(139,92,246,0.1); color: #c4b5fd; margin-top: 0.3rem; }
.passenger-time { font-size: 0.65rem; color: #475569; font-weight: 700; margin-top: 0.3rem; }

.empty-state { text-align: center; padding: 4rem 1rem; color: #475569; }
.spinner {
  width: 40px; height: 40px; border: 4px solid rgba(59,130,246,0.1);
  border-top-color: #3b82f6; border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reload-fab {
  position: fixed; bottom: 2rem; right: 2rem;
  background: #fbbf24; color: #0f172a;
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(251,191,36,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 10;
}
.reload-fab:hover { transform: scale(1.1); }
.spin-animation { animation: spin 0.8s linear infinite; }

.btn-nav {
  position: absolute; top: 2rem; left: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; padding: 0.6rem 1rem; border-radius: 0.75rem;
  text-decoration: none; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}

@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  .passenger-main { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .passenger-status { text-align: left; }
}
