:root {
  --bg-dark: #070a11;
  --bg-surface: #0f1523;
  --bg-card: #131b2e;
  --bg-card-hover: #19233b;
  --bg-slot: rgba(245, 158, 11, 0.06);
  --border-color: #222e47;
  --border-light: #2e3d5c;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-nyc: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-red: #ef4444;

  /* Colores por categoría */
  --cat-turismo: #3b82f6;
  --cat-deportes: #f97316;
  --cat-show: #a855f7;
  --cat-mirador: #06b6d4;
  --cat-jazz: #eab308;
  --cat-cocteleria: #ec4899;
  --cat-gastronomia: #10b981;
  --cat-cultura: #6366f1;
  --cat-logistica: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Chakra Petch', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(59, 130, 246, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.brand-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent-nyc);
  font-weight: 600;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-surface);
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 0.95rem;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clocks-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.42rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.clocks-pill strong {
  color: var(--text-main);
}

.clocks-pill .sep {
  color: var(--border-light);
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.52rem 1rem;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #090d16;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-emerald:hover {
  background: #10b981;
  color: #06130e;
}

.btn-danger, .btn-outline-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover, .btn-outline-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 7px;
}

/* HERO STRIP */
.hero-strip {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 1.2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.92), rgba(15, 21, 35, 0.92));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trip-dates-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-nyc);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  margin-bottom: 0.4rem;
}

.hero-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.accent-text {
  color: var(--accent-nyc);
}

.hero-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 740px;
}

.hero-kpis {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.kpi-card {
  background: rgba(9, 13, 22, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  min-width: 155px;
  display: flex;
  flex-direction: column;
}

.kpi-card.highlight-kpi {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), rgba(9, 13, 22, 0.7));
  cursor: pointer;
}

.kpi-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text-main);
  margin: 0.1rem 0;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* MAIN CONTAINER */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 1.25rem auto 3rem;
  padding: 0 1.25rem;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BARRA SELECTORA DE DÍAS */
.day-selector-bar {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.day-pill {
  flex: 0 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 122px;
  color: var(--text-main);
}

.day-pill:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.day-pill.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(19, 27, 46, 0.95));
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
}

.day-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-nyc);
  margin-bottom: 0.15rem;
}

.day-pill-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.day-pill-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* LAYOUT CRONOGRAMA + RATOS LIBRES */
.timeline-layout {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 1.35rem;
  align-items: start;
}

@media (max-width: 1120px) {
  .timeline-layout {
    grid-template-columns: 1fr;
  }
}

/* TARJETA CABECERA DE DÍA */
.day-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.15rem;
  border-left: 5px solid var(--accent-nyc);
}

.day-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.day-hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-nyc);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.day-hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.15rem 0 0.3rem;
}

.day-hero-zones {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* TIMELINE EVENTS */
.timeline-stream {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: var(--transition);
  position: relative;
}

.event-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.event-card.completed {
  opacity: 0.65;
  border-color: rgba(16, 185, 129, 0.4);
}

.event-card.from-suggestion {
  border-left: 4px solid var(--accent-emerald);
}

.event-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-mono);
}

.event-time-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.55rem;
  border-radius: 7px;
  border: 1px solid var(--border-color);
}

.event-time-end {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  padding-left: 0.2rem;
}

.event-content-col h4 {
  font-size: 1.04rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.event-card.completed .event-content-col h4 {
  text-decoration: line-through;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
}

.badge-zone {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.badge-tentative {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.badge-sug-added {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.event-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.event-tip {
  font-size: 0.8rem;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent-nyc);
  padding: 0.4rem 0.65rem;
  border-radius: 0 6px 6px 0;
  color: #fde68a;
  margin-top: 0.35rem;
}

.event-user-note {
  font-size: 0.8rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--accent-blue);
  padding: 0.35rem 0.65rem;
  border-radius: 0 6px 6px 0;
  color: #bfdbfe;
  margin-top: 0.35rem;
}

.event-links-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.mini-link:hover {
  background: #2563eb;
  color: #fff;
}

.event-actions-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--text-main);
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.icon-btn.done-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
}

/* TARJETAS DE HUECOS LIBRES / RATOS LIBRES (SIDEBAR & INLINE) */
.free-slot-box {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.09), rgba(19, 27, 46, 0.92));
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem;
  margin-bottom: 1rem;
}

.free-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.free-slot-time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.free-slot-box h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fef3c7;
  margin-bottom: 0.25rem;
}

.free-slot-context {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.slot-sug-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.slot-sug-item {
  background: rgba(9, 13, 22, 0.78);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  transition: var(--transition);
}

.slot-sug-item:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.slot-sug-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.slot-sug-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.slot-sug-why {
  font-size: 0.78rem;
  color: #fcd34d;
  margin-bottom: 0.3rem;
}

.slot-sug-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.slot-sug-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* NOTAS DEL DÍA */
.day-notes-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-top: 1rem;
}

.day-notes-box h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--accent-nyc);
}

.day-notes-textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  padding: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  resize: vertical;
  margin-bottom: 0.5rem;
}

/* CATEGORÍAS COLORES */
.cat-pill-turismo, .cat-dot.cat-turismo { background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.cat-pill-deportes, .cat-dot.cat-deportes { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.45); }
.cat-pill-show, .cat-dot.cat-show { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.45); }
.cat-pill-mirador, .cat-dot.cat-mirador { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.45); }
.cat-pill-jazz, .cat-dot.cat-jazz { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.45); }
.cat-pill-cocteleria, .cat-dot.cat-cocteleria { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.45); }
.cat-pill-gastronomia, .cat-dot.cat-gastronomia { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.45); }
.cat-pill-cultura, .cat-dot.cat-cultura { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.45); }
.cat-pill-logistica, .cat-dot.cat-logistica { background: rgba(100, 116, 139, 0.22); color: #cbd5e1; border: 1px solid rgba(100, 116, 139, 0.45); }

/* VISTA 2: CUADRÍCULA PLAN FINAL (EXCEL INTERACTIVO) */
.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-header-bar h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legend-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cat-dot {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
}

.matrix-wrapper {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.plan-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 1280px;
  table-layout: fixed;
}

.plan-matrix th, .plan-matrix td {
  border: 1px solid var(--border-color);
  padding: 0.45rem;
  vertical-align: top;
  font-size: 0.78rem;
}

.plan-matrix thead th {
  background: #0c1220;
  position: sticky;
  top: 0;
  z-index: 10;
  text-align: center;
  padding: 0.65rem 0.4rem;
}

.plan-matrix th.hour-col-head {
  width: 68px;
  font-family: var(--font-mono);
  color: var(--accent-nyc);
}

.matrix-day-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.matrix-day-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-nyc);
}

.plan-matrix td.hour-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  background: #0b101d;
  vertical-align: middle;
}

.matrix-cell {
  min-height: 52px;
  position: relative;
  transition: var(--transition);
}

.matrix-cell.empty-cell {
  cursor: pointer;
}

.matrix-cell.empty-cell:hover {
  background: rgba(245, 158, 11, 0.08);
}

.matrix-free-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  color: rgba(251, 191, 36, 0.75);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 0.25rem;
  opacity: 0.75;
  transition: var(--transition);
}

.matrix-cell.empty-cell:hover .matrix-free-hint {
  opacity: 1;
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.matrix-ev-chip {
  padding: 0.38rem 0.48rem;
  border-radius: 7px;
  margin-bottom: 0.28rem;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.25;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.matrix-ev-chip:last-child {
  margin-bottom: 0;
}

.matrix-ev-chip:hover {
  transform: scale(1.02);
  filter: brightness(1.12);
}

.matrix-ev-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.85;
}

.matrix-notes-row td {
  background: rgba(245, 158, 11, 0.06);
  font-size: 0.75rem;
  color: #fde68a;
}

/* VISTA 3: MAPA INTERACTIVO NYC */
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.map-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.42rem 0.85rem;
  border-radius: 99px;
  font-size: 0.82rem;
  cursor: pointer;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 1.15rem;
  height: 650px;
}

@media (max-width: 1024px) {
  .map-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .nyc-map-canvas {
    height: 460px;
  }
}

.nyc-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  z-index: 1;
}

.map-SideList {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.map-point-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.map-point-item:hover {
  border-color: var(--accent-nyc);
  transform: translateX(2px);
}

/* VISTA 4: SUGERENCIAS & LOGÍSTICA */
.suggestions-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 980px) {
  .suggestions-top-grid, .checklist-and-stadiums-grid {
    grid-template-columns: 1fr !important;
  }
}

.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}

.info-panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.airtrain-stats {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.airtrain-stat-pill {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.doc-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.doc-link-card:hover {
  border-color: var(--accent-nyc);
  background: var(--bg-card-hover);
}

.category-filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.suggestions-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.sug-catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: var(--transition);
}

.sug-catalog-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.sug-catalog-card.scheduled {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), var(--bg-card));
}

.checklist-and-stadiums-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.badge-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}

.checklist-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.checklist-form input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--text-main);
}

.checklist-form select {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--text-main);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 390px;
  overflow-y: auto;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 0.6rem 0.85rem;
}

.check-row.done span {
  text-decoration: line-through;
  color: var(--text-dim);
}

.stadium-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.stadium-card h4 {
  color: var(--accent-nyc);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.reset-zone {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* MODALES */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-card.modal-wide {
  max-width: 720px;
}

.modal-header {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-actions-col {
    flex-direction: row;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.form-checks {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.modal-footer-right {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

/* TOASTS */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #131b2e;
  border: 1px solid var(--accent-nyc);
  color: var(--text-main);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}
