/* ============================================================
   home.css — Elegir viaje, elegir planta, menú principal
   ============================================================ */

/* ===== Lista de viajes (view-choose) ===== */
.trip-list{ display:flex; flex-direction:column; gap:12px; }

.trip-card{
  background: var(--card);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: cardIn .35s ease both;
  border-left:4px solid transparent;
}
.trip-card.single-floor{ border-left-color:#60a5fa; }
.trip-card.double-floor{ border-left-color:#f59e0b; }
.trip-card:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(17,24,39,.14); }
@keyframes cardIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;} }

.trip-head{ display:flex; align-items:center; gap:12px; }
.trip-head-left{ display:flex; align-items:center; gap:12px; min-width:0; flex:1; }
.trip-head-right{ flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }

.trip-bus-icon{
  flex-shrink:0; width:44px; height:44px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
  color:#4f46e5;
  box-shadow: 0 3px 10px rgba(79,70,229,.18), inset 0 1px 0 rgba(255,255,255,.6);
}
.trip-bus-icon.floors-icon{
  background: linear-gradient(145deg, #fef3c7, #fde68a); color:#92400e;
  box-shadow: 0 3px 10px rgba(180,131,3,.18), inset 0 1px 0 rgba(255,255,255,.6);
}
.trip-bus-icon svg{ width:22px; height:22px; }

.trip-card h3{ margin:0; font-size:1.05rem; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.trip-pill{
  display:inline-flex; flex-shrink:0; font-size:.72rem; font-weight:700; padding:4px 9px;
  border-radius:999px; background:#e0e7ff; color:#3730a3; letter-spacing:.01em;
}
.trip-pill.doble{ background:#fde68a; color:#92400e; }

.trip-arrow{ flex-shrink:0; color:#9ca3af; display:grid; place-items:center; }

.trip-countdown-wrap{ margin-top:16px; }
.trip-countdown{
  display:inline-flex; align-items:center; gap:8px; font-size:.78rem; font-weight:700;
  padding:5px 10px 5px 8px; border-radius:999px; background:#f3f4f6; color:#4b5563;
  box-shadow: inset 3px 0 0 #9ca3af;
}
.trip-countdown.live{ background:#d1fae5; color:#065f46; box-shadow: inset 3px 0 0 #10b981; }
.trip-countdown.future{ background:#eef2ff; color:#3730a3; box-shadow: inset 3px 0 0 #6366f1; }

.empty-state{
  text-align:center; padding:48px 20px; color:var(--muted);
  animation: cardIn .35s ease both;
}
.empty-state-icon{
  width:56px; height:56px; margin:0 auto 16px; border-radius:16px;
  display:grid; place-items:center;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff); color:#6366f1;
  box-shadow: 0 3px 10px rgba(99,102,241,.14), inset 0 1px 0 rgba(255,255,255,.6);
}
.empty-state-icon svg{ width:26px; height:26px; }
.empty-state h3{ margin:0 0 6px; color:var(--text); font-size:1rem; }
.empty-state p{ margin:0; font-size:.9rem; }

/* ===== Cards de acción (bottom-sheet de planta) ===== */
.action-cards{ display:flex; flex-direction:column; gap:12px; max-width:480px; width:100%; margin:0 auto; }

.action-card{
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border-radius:16px; box-shadow:var(--shadow);
  padding:16px; display:flex; align-items:center; gap:14px;
  cursor:pointer; position:relative; overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: cardIn .35s ease both;
}
.action-card::before{
  content:""; position:absolute; left:0; top:12px; bottom:12px; width:4px; border-radius:999px;
  background: linear-gradient(180deg, rgba(99,102,241,.45), rgba(99,102,241,0));
}
@media (hover:hover){
  .action-card:hover{ transform:translateY(-4px); box-shadow:0 14px 32px rgba(17,24,39,.14); }
}

.action-card-icon{
  flex-shrink:0; width:46px; height:46px; border-radius:12px; display:grid; place-items:center;
}
.action-card-icon svg{ width:22px; height:22px; }
.action-card-icon.select-icon{ background: linear-gradient(145deg, #d1fae5, #a7f3d0); color:#047857; }
.action-card-icon.find-icon{ background: linear-gradient(145deg, #dbeafe, #bfdbfe); color:#1e40af; }
.action-card-icon.floor-alta-icon{ background: linear-gradient(145deg, #fde68a, #fcd34d); color:#92400e; }

.action-card-body{ flex:1; min-width:0; }
.action-card-title{ font-weight:800; font-size:1rem; margin-bottom:2px; }
.action-card-desc{ font-size:.85rem; color:var(--muted); line-height:1.35; }

.action-card-arrow{ flex-shrink:0; color:#9ca3af; }

/* ===== Encabezado de viaje (título + tags) ===== */
.trip-header{ text-align:center; margin-bottom:20px; }
.trip-title{ font-size:1.35rem; font-weight:800; }
.trip-tags{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.trip-tags .tag{
  border-radius:999px; padding:6px 12px; font-weight:700; font-size:.85rem;
  background:#eef2ff; color:#3730a3;
}

.floors{ display:flex; flex-direction:column; gap:12px; }
