/* CABECERA: mismo turquesa que el buscador, fondo negro y menú adaptable. */
#bat-site-header { --bat-accent: #00d1d1; background: #080d0f; color: #fff; border-bottom: 1px solid #ffffff16; position: relative; z-index: 50; }
body:has(#bat-site-header) #masthead { display: none; }
.bat-header-inner { max-width: 1320px; margin: auto; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.bat-brand { display: inline-flex; flex-shrink: 0; color: #fff; text-decoration: none; }
.bat-brand img { width: 290px; height: auto; max-height: 48px; object-fit: contain; }
.bat-brand span { color: var(--bat-accent); }
#bat-main-nav { display: flex; align-items: center; gap: 22px; }
#bat-main-nav a { font-size: 14px; font-weight: 600; line-height: 1.4; color: #ecf4f4; text-decoration: none; white-space: nowrap; padding: 10px 0; }
#bat-main-nav a:hover, #bat-main-nav a:focus-visible { color: var(--bat-accent); }
#bat-main-nav .bat-drivers-link { color: var(--bat-accent); background: #000; border: 1px solid #00d1d14d; border-radius: 9px; padding: 11px 15px; display: inline-flex; align-items: center; gap: 9px; }
#bat-main-nav .bat-drivers-link:hover { border-color: var(--bat-accent); }
.bat-menu-toggle { display: none; }
#popular-transfers, #long-distance, #about-us, #mptbm_start_date { scroll-margin-top: 28px; }
#bat-site-header a:focus-visible, .bat-portal a:focus-visible, .bat-portal button:focus-visible { outline: 3px solid #00d1d1; outline-offset: 4px; }
@media (max-width: 1100px) {
    .bat-header-inner { gap: 15px; padding: 20px; }
    .bat-brand img { width: 245px; }
    #bat-main-nav { gap: 13px; }
    #bat-main-nav a { font-size: 13px; }
}
@media (max-width: 920px) {
    .bat-header-inner { flex-wrap: wrap; }
    .bat-brand img { width: min(255px, 58vw); }
    #bat-main-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
    #bat-main-nav a { padding: 13px 10px; font-size: 15px; border-top: 1px solid #ffffff12; }
    #bat-main-nav .bat-drivers-link { margin-top: 10px; justify-content: center; }
    .bat-navigation-ready .bat-menu-toggle { display: inline-flex; align-items: center; gap: 7px; background: #080d0f; color: #00d1d1; padding: 10px 12px; border: 1px solid #00d1d155; border-radius: 7px; font-size: 14px; }
    .bat-navigation-ready .bat-menu-toggle[aria-expanded="false"] + #bat-main-nav { display: none; }
}
/* PORTAL: alcance local para no alterar formulario de reservas ni checkout. */
body:has(.bat-portal) { background: #edf3f4; }
.bat-portal { --bat-accent: #00d1d1; width: min(1180px, calc(100% - 40px)); margin: 40px auto 70px; color: #132d38; font-size: 16px; line-height: 1.6; }
.bat-portal h1, .bat-portal h2, .bat-portal h3 { color: #132d38; line-height: 1.25; text-transform: none; }
.bat-portal h1 { font-size: clamp(28px, 4vw, 38px); margin: 8px 0; }
.bat-portal h2 { font-size: 27px; margin: 24px 0 14px; }
.bat-portal h3 { font-size: 21px; margin: 0 0 12px; }
.bat-portal p { margin: 0 0 14px; }
.bat-portal a { color: #006c72; }
.bat-eyebrow { color: #007a80; font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.bat-portal-heading, .bat-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bat-card { display: block; background: #fff; border: 1px solid #d8e5e7; border-radius: 15px; padding: 26px; margin: 18px 0; box-shadow: 0 5px 22px #15384206; overflow-wrap: anywhere; }
.bat-card-heading h3 { margin: 0; }
.bat-badge { padding: 5px 12px; border-radius: 20px; background: #e2f8f6; color: #075f63; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bat-service .bat-route { font-size: 18px; margin-top: 18px; }
.bat-muted { color: #546a74; font-size: 14px; }
.bat-notice { background: #edf8fa; border-left: 4px solid #009ca4; padding: 14px 18px; border-radius: 4px; color: #173e49; }
.bat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.bat-tabs a { display: inline-block; padding: 9px 15px; border: 1px solid #d4e2e5; border-radius: 8px; background: #fff; text-decoration: none; font-size: 14px; color: #294b57; }
.bat-tabs a[aria-current="page"] { background: #102f39; color: #fff; border-color: #102f39; }
.bat-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.bat-choices a { text-decoration: none; color: #284751; }
.bat-choices a:hover { border-color: #00a5aa; }
.bat-choices svg { margin-bottom: 15px; color: #008b91; width: 34px; height: 34px; }
.bat-service-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 18px 0; }
.bat-service-details dt { color: #60757f; font-size: 13px; font-weight: 400; }
.bat-service-details dd { margin: 3px 0; color: #163a48; }
.bat-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 20px; }
.bat-actions label { font-size: 13px; flex: 1 1 200px; max-width: 340px; }
.bat-portal input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]), .bat-portal select { display: block; width: 100%; height: 44px; background: #f6f9fa; border: 1px solid #c6d7dc; color: #173b48; border-radius: 6px; padding: 9px 12px; font: inherit; box-sizing: border-box; }
.bat-portal input[readonly] { background: #eaf0f2; }
.bat-portal button, .bat-portal input[type="submit"] { border: 1px solid #006d73; border-radius: 7px; padding: 12px 18px; color: #fff; background: #007b82; font-size: 14px; font-weight: 600; line-height: 1.25; cursor: pointer; min-height: 44px; }
.bat-portal button:hover, .bat-portal input[type="submit"]:hover { background: #005c63; }
.bat-portal button.bat-secondary { background: #fff; color: #006c72; }
.bat-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bat-form-grid h3, .bat-form-grid p { grid-column: 1 / -1; }
.bat-field { display: block; font-size: 14px; color: #294b57; }
.bat-field input, .bat-field select { margin-top: 6px; }
.bat-form-grid button { width: fit-content; }
.bat-audit { margin-top: 20px; font-size: 13px; color: #58717b; }
.bat-audit summary { cursor: pointer; }
.bat-audit ul { margin: 12px 0 0 20px; }
.bat-login { max-width: 490px; margin: 65px auto; padding: 36px; }
.bat-login h1 { font-size: 30px; }
.bat-login form { margin: 25px 0; }
.bat-login label { display: block; font-size: 14px; margin-bottom: 6px; }
/* Tarifas: legibles sin campos diminutos; el editor conserva el sentido elegido. */
.bat-rate-scroll { overflow-x: auto; margin: 24px 0; background: #fff; border-radius: 12px; border: 1px solid #d2e0e4; }
.bat-rate-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; margin: 0; }
.bat-rate-table caption { text-align: left; padding: 18px; font-weight: 600; }
.bat-rate-table th, .bat-rate-table td { padding: 14px 18px; border: 0; border-bottom: 1px solid #e1e9ec; vertical-align: middle; }
.bat-rate-table thead { background: #e9f3f4; }
.bat-rate-table td a { display: inline-block; margin-left: 12px; padding: 6px; }
.bat-driver-price { background: #e6f5f5; border: 1px solid #a9d7d9; border-radius: 10px; padding: 16px; margin: 15px 0; }
.bat-driver-price span, .bat-driver-price small { display: block; font-size: 12px; }
.bat-driver-price strong { display: block; font-size: 28px; color: #006c72; margin: 5px 0; }
@media (max-width: 600px) {
    .bat-portal { width: calc(100% - 26px); margin-top: 25px; }
    .bat-card { padding: 20px; }
    .bat-form-grid { grid-template-columns: 1fr; }
    .bat-card-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .bat-actions > button, .bat-actions > label { width: 100%; max-width: none; }
    .bat-portal-heading { align-items: flex-start; }
    .bat-portal-heading > a { font-size: 13px; white-space: nowrap; }
    .bat-tabs { gap: 6px; }
    .bat-tabs a { padding: 8px 11px; font-size: 13px; }
    .bat-login { margin: 30px auto; }
}
