/* =========================================================
   Sitio público de reservas (tema oscuro como el original)
   ========================================================= */
body.publico { background: #0b1220; color: #cbd5e1; }
.pub-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.pub-header .in { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.pub-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.pub-logo .brand-logo { width: 52px; height: 52px; border-radius: 14px; background: #fff; }
.pub-logo .brand-logo svg { stroke: var(--blue); }
.burger { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; cursor: pointer; }
.pub-menu { position: fixed; inset: 0; z-index: 90; background: rgba(2, 6, 23, .6); backdrop-filter: blur(4px); display: none; }
.pub-menu.open { display: block; }
.pub-menu nav { position: absolute; right: 12px; top: 12px; width: min(300px, calc(100vw - 24px)); background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg); }
.pub-menu a { display: flex; gap: 10px; align-items: center; padding: 13px 14px; border-radius: 12px; color: var(--ink); font-weight: 700; }
.pub-menu a:hover { background: var(--line-2); }

.hero {
  position: relative; min-height: 100vh; padding: 92px 16px 40px;
  background: #0b1220 url('../img/hero.svg') center bottom / cover no-repeat;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 32, .25), rgba(11, 18, 32, .2) 50%, #0b1220); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-align: center; font-size: clamp(30px, 7vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 760px; margin: 0 auto; }
.hero h1 span { color: #3b82f6; }
.hero .slogan { text-align: center; color: #cbd5e1; margin-top: 10px; font-size: 15px; }
.book-card {
  max-width: 480px; margin: 28px auto 0; padding: 22px 20px;
  background: rgba(30, 41, 59, .72); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 26px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.book-card h2 { color: #fff; text-align: center; font-size: 24px; display: flex; gap: 10px; justify-content: center; align-items: center; }
.book-card .label { color: #e2e8f0; text-transform: none; letter-spacing: 0; font-size: 13px; }
.tabs-pill { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(15, 23, 42, .55); border-radius: 999px; padding: 5px; margin: 18px 0; }
.tabs-pill button { border: 0; background: transparent; color: #e2e8f0; font: inherit; font-weight: 700; font-size: 14px; padding: 10px; border-radius: 999px; cursor: pointer; }
.tabs-pill button.on { background: #fff; color: var(--blue); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.book-card .input, .book-card .select { border-color: transparent; font-weight: 700; height: 50px; }
.book-card .swap { display: flex; justify-content: center; margin: -6px 0 4px; }
.book-card .swap button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: 16px; }

.pub-section { max-width: 1100px; margin: 0 auto; padding: 0 16px 28px; }
.pub-title { color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin: 26px 0 16px; }
.pub-title .ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 14px; }
.trips { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.trip { background: #f1f5f9; border-radius: 22px; padding: 20px 18px; text-align: center; color: var(--text); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.trip .t { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.trip .arr { color: var(--muted); font-size: 13.5px; }
.trip .free { display: inline-block; background: #dcfce7; color: #15803d; font-size: 12.5px; font-weight: 800; border-radius: 8px; padding: 3px 10px; margin: 8px 0; }
.trip .free.low { background: #fef3c7; color: #b45309; }
.trip .unit { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.trip .p { font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; margin: 2px 0 10px; }
.trip .p s { font-size: 16px; color: var(--faint); font-weight: 700; margin-right: 6px; }
.trip .rt-note { font-size: 12.5px; color: var(--muted); }
.trip .rt-total { color: var(--green); font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.trip .btn { min-width: 150px; }
.notice-red { background: #dc2626; color: #fff; border-radius: 16px; padding: 16px; text-align: center; font-weight: 800; }
.ida-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 14px 16px; color: #e2e8f0; }
.ida-box b { color: #fff; }
.rt-special { background: #14532d; border: 1px solid #166534; color: #dcfce7; border-radius: 18px; padding: 14px; text-align: center; font-weight: 800; margin-top: 12px; }
.rt-special b { display: block; font-size: 24px; color: #fff; }

.white-card { background: #fff; border-radius: 24px; padding: 22px 18px; color: var(--text); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.white-card + .white-card { margin-top: 18px; }
.white-card h3 { font-size: 19px; font-weight: 800; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.leg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.leg-tabs button { border: 0; border-radius: 16px; padding: 14px; font: inherit; font-weight: 800; cursor: pointer; background: var(--line-2); color: var(--muted); }
.leg-tabs button.on.ida { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(29, 78, 216, .35); }
.leg-tabs button.on.reg { background: var(--purple); color: #fff; box-shadow: 0 8px 18px rgba(124, 58, 237, .35); }
.pax-card { border-left: 4px solid var(--blue-2); background: #f8fafc; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.pax-card .h { font-weight: 800; color: var(--ink); font-size: 14px; margin-bottom: 8px; }
.pax-card .h small { color: var(--muted); font-weight: 700; }
.summary { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.total-card { background: linear-gradient(160deg, #1e3a8a, #1e40af); color: #dbeafe; border-radius: 24px; padding: 22px 20px; margin-top: 18px; box-shadow: 0 20px 40px rgba(30, 58, 138, .35); }
.total-card .k { font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.total-card .v { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.total-card .btn { margin-top: 16px; }
.pay-box { background: #fff; border-radius: 18px; padding: 18px; margin-top: 16px; color: var(--text); }
.pay-box h3 { font-size: 18px; margin-bottom: 12px; }
.timer { font-size: 12.5px; color: #fde68a; margin-top: 8px; text-align: center; }
.confirm-wrap { max-width: 440px; margin: 0 auto; padding: 30px 16px 40px; --notch: #0b1220; }
.confirm-wrap h2 { color: #fff; text-align: center; font-size: 26px; margin-bottom: 18px; display: flex; gap: 10px; justify-content: center; align-items: center; }
.loading-full { min-height: 50vh; display: grid; place-items: center; color: #60a5fa; font-weight: 800; font-size: 18px; }
.spinner { width: 34px; height: 34px; border: 4px solid rgba(96, 165, 250, .25); border-top-color: #60a5fa; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pub-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 26px 16px 40px; text-align: center; font-size: 13.5px; color: #94a3b8; }
.pub-footer a { color: #cbd5e1; }
.app-promo { max-width: 480px; margin: 22px auto 0; display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 14px 16px; color: #e2e8f0; }
.app-promo b { color: #fff; }
.layout-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .layout-2 { grid-template-columns: 1fr; } }
.page-pub { max-width: 640px; margin: 0 auto; padding: 100px 16px 40px; }
.page-pub h1 { color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }
