/* Capa premium: mismo lenguaje en todas las pantallas (oscuro + degradés sutiles + movimiento). Va al final. */
@keyframes px-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes px-brillo { to { background-position: 200% 0; } }
main, .main { animation: px-sube .45s cubic-bezier(.2,.7,.2,1) both; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand, #0b0d0e) 55%, #fff); outline-offset: 2px; }

/* ===== Web pública de cada empresa y app del chofer (usa el color de la empresa) ===== */
body:not(.adm):not(.panal) .app-top { background: #0b0d0e; border-bottom: 0; padding-top: env(safe-area-inset-top); }
body:not(.adm):not(.panal) .app-top .logo { color: #fff; }
body:not(.adm):not(.panal) .app-top .top-link, body:not(.adm):not(.panal) .app-top .pill-wa { background: #1c1f21; color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; margin-right: 0; transition: background .2s; }
body:not(.adm):not(.panal) .app-top .top-link:hover, body:not(.adm):not(.panal) .app-top .pill-wa:hover { background: #fff; color: #0b0d0e; }
body:not(.adm):not(.panal) .app-top .pill-wa { background: #25D366; color: #06210f; }
body:not(.adm):not(.panal) .app-top .pill-wa:hover { background: #fff; }
body:not(.adm):not(.panal) .hero { background:
  radial-gradient(70% 140% at 100% 0%, color-mix(in srgb, var(--brand) 70%, transparent), transparent 62%),
  radial-gradient(50% 90% at 0% 100%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 70%),
  linear-gradient(160deg, #1a1d20, #0b0d0e);
  color: #fff; border-radius: 24px; padding: 30px 26px 28px; margin: 14px 0 18px; box-shadow: 0 24px 60px rgba(11,13,14,.22); overflow: hidden; position: relative; }
body:not(.adm):not(.panal) .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 90% at 90% 0%, #000, transparent 70%); mask-image: radial-gradient(80% 90% at 90% 0%, #000, transparent 70%); }
body:not(.adm):not(.panal) .hero h1 { color: #fff; position: relative; z-index: 1; }
body:not(.adm):not(.panal) .hero p { color: #c4c9cd; position: relative; z-index: 1; }
body:not(.adm):not(.panal) .btn { background: linear-gradient(180deg, #2a2d30, #0b0d0e); color: #fff; box-shadow: 0 6px 18px rgba(11,13,14,.22), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .2s, box-shadow .2s; }
body:not(.adm):not(.panal) .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,13,14,.3), inset 0 1px 0 rgba(255,255,255,.16); }
body:not(.adm):not(.panal) .btn:active { transform: none; }
body:not(.adm):not(.panal) .btn.ghost, body:not(.adm):not(.panal) .btn.alt { background: #fff; color: #0b0d0e; box-shadow: inset 0 0 0 1.5px #d9dadc; }
body:not(.adm):not(.panal) .trayecto { background: linear-gradient(180deg, #f7f7f8, #f1f1f2); border: 1px solid #ececee; transition: box-shadow .2s; }
body:not(.adm):not(.panal) .card, body:not(.adm):not(.panal) .slot { transition: transform .2s, box-shadow .2s; }
body:not(.adm):not(.panal) a.card:hover, body:not(.adm):not(.panal) .slot:hover { transform: translateY(-2px); }
body:not(.adm):not(.panal) .slot:hover .time { color: var(--brand); }
body:not(.adm):not(.panal) .chip, body:not(.adm):not(.panal) .dia { transition: transform .15s, background .15s, color .15s; }
body:not(.adm):not(.panal) .dia:hover, body:not(.adm):not(.panal) .chip:hover { transform: translateY(-2px); }
body:not(.adm):not(.panal) .ticket .top { background: radial-gradient(90% 160% at 100% 0%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 65%), linear-gradient(160deg, #1a1d20, #0b0d0e); }
body:not(.adm):not(.panal) .bar, body:not(.adm):not(.panal) .chf-nav { backdrop-filter: blur(14px); }

/* ===== Paneles (empresa, superadmin): negro + amarillo ===== */
.adm .kpi, .adm .card, .adm .tablewrap { transition: transform .2s, box-shadow .2s, border-color .2s; }
.adm a.kpi:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,13,14,.14); }
.adm .kpi.hi, .panal .kpi.hi { background: radial-gradient(90% 140% at 100% 0%, rgba(253,237,0,.22), transparent 60%), linear-gradient(160deg, #1b1f22, #0b0d0e); position: relative; overflow: hidden; }
.adm .kpi.hi::after, .panal .kpi.hi::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%); background-size: 220% 100%; animation: px-brillo 6s linear infinite; }
.adm .side { background: linear-gradient(180deg, #101315, #0b0d0e 40%, #0b0d0e); }
.adm .side nav a { transition: background .15s, color .15s, padding-left .15s; }
.adm .side nav a:hover { padding-left: 15px; }
body.adm .btn, body.panal .btn { background: linear-gradient(180deg, #fff35a, #FDED00 55%, #f2dd00); transition: transform .2s, box-shadow .2s; }
body.adm .btn:hover, body.panal .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(253,237,0,.35), inset 0 -2px 0 #0b0d0e1f; }
.adm .tablewrap, .adm .card { overflow-x: auto; }
.adm .t tbody tr { transition: background .12s; } .adm .t tbody tr:hover { background: #fffbd0; }
.adm .pagehead h1 { background: linear-gradient(90deg, #0b0d0e, #3a3f43); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panal.login .split-brand, .split-brand { background: radial-gradient(80% 70% at 100% 0%, rgba(253,237,0,.22), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(253,237,0,.08), transparent 65%), #0b0d0e; }

@media (prefers-reduced-motion: reduce) { main, .main, .kpi.hi::after { animation: none !important; } * { transition-duration: .01ms !important; } }

/* títulos sueltos de páginas públicas: aire arriba, que no queden pegados al header */
body:not(.adm):not(.panal) main.flat > h1:first-child, body:not(.adm):not(.panal) main.flat > .pagehead:first-child { margin-top: 26px; }
body:not(.adm):not(.panal) main.flat { padding-top: 6px; }
body:not(.adm):not(.panal) main > h1:first-child { margin-top: 28px; }

/* ===== Repaso fino del panel ===== */
/* Mi empresa: tarjetas en dos columnas en pantallas grandes */
.cards2 { columns: 2 440px; column-gap: 16px; max-width: 1080px; }
.cards2 > * { break-inside: avoid; margin: 0 0 16px !important; max-width: none !important; width: 100%; display: block; }
input[type=file] { padding: 10px; background: #fff; border: 1.5px dashed #c9cabf; border-radius: 12px; width: 100%; font: inherit; font-size: 14px; color: #4a5056; }
input[type=file]::file-selector-button { border: 0; background: #0b0d0e; color: #fff; border-radius: 999px; padding: 8px 16px; margin-right: 12px; font: 600 14px inherit; font-family: inherit; cursor: pointer; }
/* Precios: tres columnas en escritorio */
@media (min-width: 1100px) { .adm .cfg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm .cfg-grid input, .adm .cfg-grid select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
.adm .form.card h3 { letter-spacing: -.02em; }
/* Rutas y horarios: fila alineada y acciones claras */
.fr { grid-template-columns: minmax(160px, 1.2fr) 92px minmax(260px, 1.6fr) 96px; align-items: center !important; }
.adm .fr > * { align-self: center !important; }
.fr-rec { align-items: center; justify-content: flex-start; }
.fr-rec label { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; white-space: nowrap; font-size: 13px; color: #6b7177; }
.fr-rec input { width: 120px; margin: 0; }
.fr .linkbtn { border: 1.5px solid #dcdcd2; border-radius: 999px; padding: 7px 16px; text-decoration: none !important; font-weight: 600; color: #0b0d0e; background: #fff; transition: background .15s; }
.fr .linkbtn:hover { background: #0b0d0e; color: #fff; }
/* Viaje: resumen sin desbordes */
.kpis-s { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; margin: 0 0 10px; }
.kpis-s .kpi { padding: 12px 14px !important; } .kpis-s .kpi b { font-size: 22px !important; white-space: nowrap; }
/* Tabla del dashboard: chofer y auto legibles */
.filas-link td:nth-child(3) { min-width: 170px; }
.filas-link td:nth-child(3) b, .filas-link td:nth-child(3) { white-space: normal; }
.filas-link td:nth-child(4) { white-space: nowrap; }
.cards2 > script { display: none !important; }
.adm .cards2 .cfg-grid { grid-template-columns: 1fr 1fr !important; }
.panal .app-top .logo .px-mark { width: 30px; height: 30px; }
.adm .cfg-grid, .panal .cfg-grid { align-items: end; }
/* Menú "Más": el ícono va al lado del texto (antes quedaba encima) */
.adm .side details.navmas > a { display: flex !important; align-items: center; gap: 11px; }
.adm .side nav { padding-bottom: 14px; }

/* ===== Recorrido guiado ===== */
.tour-ov { position: fixed; inset: 0; z-index: 900; background: transparent; }
.tour-ring { display: none; position: fixed; z-index: 901; border-radius: 14px; border: 2px solid #FDED00; box-shadow: 0 0 0 9999px rgba(11,13,14,.62), 0 0 0 6px rgba(253,237,0,.25); pointer-events: none; transition: all .3s cubic-bezier(.2,.7,.2,1); animation: px-pulso 1.8s ease-out infinite; }
@keyframes px-pulso { 50% { box-shadow: 0 0 0 9999px rgba(11,13,14,.62), 0 0 0 12px rgba(253,237,0,.05); } }
.tour-pop { position: fixed; z-index: 902; width: 320px; background: #fff; color: #0b0d0e; border-radius: 18px; padding: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.4); animation: px-fade .3s both; }
@keyframes px-fade { from { opacity: 0; } to { opacity: 1; } }
.tour-pop.center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); }
.tour-pop.sheet { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
.tour-pop .tp-n { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7177; }
.tour-pop h4 { margin: 6px 0 6px; font-size: 20px; letter-spacing: -.02em; }
.tour-pop p { margin: 0; color: #4b5157; font-size: 15px; line-height: 1.45; }
.tp-dots { display: flex; gap: 5px; margin: 14px 0; } .tp-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e3e3e0; } .tp-dots i.on { background: #0b0d0e; width: 18px; border-radius: 4px; }
.tp-b { display: flex; gap: 8px; align-items: center; }
.tp-b button { font: 700 14px inherit; font-family: inherit; border-radius: 999px; padding: 10px 18px; border: 0; cursor: pointer; }
.tp-next { background: linear-gradient(180deg, #fff35a, #FDED00 55%, #f2dd00); color: #0b0d0e; margin-left: auto; }
.tp-prev { background: #fff; box-shadow: inset 0 0 0 1.5px #d9dadc; color: #0b0d0e; }
.tp-skip { background: none; color: #6b7177; padding-left: 0 !important; }

/* ===== Opciones tipo tarjeta (tamaño, quién paga, motivo del viaje) ===== */
.form .lbl-s { font-weight: 700; font-size: 14px; margin: 16px 0 8px; color: var(--ink); } .form .lbl-s small { font-weight: 500; color: var(--muted); }
.opts { display: grid; gap: 8px; margin-bottom: 4px; }
.opts2 { grid-template-columns: 1fr 1fr; }
.form label.opt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 13px 14px; border: 1.5px solid #e3e3e6; border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.form label.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.form label.opt .t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; line-height: 1.2; } .form label.opt .t small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.form label.opt .p { font-weight: 800; white-space: nowrap; }
.form label.opt .ic { font-size: 20px; flex: none; display: grid; place-items: center; }
.form label.opt:has(input:checked) { border-color: #0b0d0e; background: #fafaf7; box-shadow: 0 0 0 1px #0b0d0e inset; }
.form label.opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 380px) { .opts2 { grid-template-columns: 1fr; } }

/* Vuelo / turno médico */
.form .vuelo-box { background: #fafaf7; border: 1.5px solid #e3e3e6; border-radius: 16px; padding: 14px 16px 16px; margin: 12px 0 4px; }
.vuelo-box .vb-t { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.vuelo-box .chk small { font-weight: 500; color: var(--muted); }
.vuelo-box .vuelo-hint:not(:empty) { margin: 12px 0 0; padding: 11px 13px; border-radius: 12px; background: #fff8c6; color: #0b0d0e; font-weight: 600; font-size: 14px; line-height: 1.4; border-left: 4px solid #FDED00; }
.vuelo-box .vb-t .i { width: 20px; height: 20px; flex: none; }
.form label.opt .ic .i { width: 22px; height: 22px; }

/* Cupón y descuento aplicado en la reserva */
.cupon { margin: 14px 0 6px; } .cupon > label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }
.cupon .cp-row { display: flex; gap: 8px; } .cupon .cp-row input { flex: 1; min-width: 0; text-transform: uppercase; } .cupon .cp-row .btn { padding: 12px 18px; }
.cp-msg { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #15803d; min-height: 1em; } .cp-msg.err { color: #b91c1c; }
.desc-box { margin: 8px 0; padding: 11px 14px; border-radius: 12px; background: #e8f7ee; color: #14532d; font-weight: 700; font-size: 14.5px; }
.adm .form label.chk-row { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 700; margin: 4px 0; }
.adm .form label.chk-row input { width: 20px; height: 20px; flex: none; accent-color: #0b0d0e; }

/* Descuento de última hora visible desde la lista de salidas */
.uh-tag { display: inline-block; margin-bottom: 6px; padding: 3px 9px; border-radius: 6px; background: #fff1d6; color: #9a4b00; font-size: 12.5px; font-weight: 800; }
.slot-r s { display: block; font-size: 13px; }
.slot-r .precio.uh { color: #15803d; }
.uh-banner { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff1d6; color: #7a3a00; font-size: 14px; border: 1.5px solid #f5c26b; }
.uh-banner b { font-size: 15.5px; }

.verif{display:inline-block;background:#e7f6ec;color:#146c2e;border:1px solid #bfe3ca;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:700;vertical-align:middle;margin-left:4px}
.reportar summary{cursor:pointer}

.ruta-l{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ruta-i{border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.ruta-i label{display:flex;align-items:center;gap:8px;margin:0;font-size:15px}
.ruta-i input{width:20px;height:20px;flex:0 0 auto}
.ruta-i .rt-dir{color:var(--muted);font-size:14px;margin:2px 0 4px 28px}
.ruta-i a{margin-left:28px;font-size:14px}
.ruta-i.hecho{opacity:.5}.ruta-i.hecho b{text-decoration:line-through}
.rt-tipo{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:2px 7px;border-radius:999px;background:#e8f1ff;color:#1b4fb8}
.rt-tipo.entrega{background:#e7f6ec;color:#146c2e}
.cond{margin:6px 0;font-size:14px}.cond summary{cursor:pointer;font-weight:700}
