/*
Theme Name: Líneas del Mexibús
Theme URI: https://lineasdelmexibus.com/
Author: Líneas del Mexibús
Description: Rediseño de lineasdelmexibus.com. Aplica el diseño automáticamente por URL (portada, líneas, horarios, tarifas, mapas, servicio hoy) y crea una página por cada estación, todas enlazadas entre sí. Ajustes en Apariencia › Personalizar › Mexibús y en Apariencia › Estaciones Mexibús.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mexibus
*/

/* =========================================================
   Rediseño Líneas del Mexibús — estilos
   Pegar en: Apariencia › Personalizar › CSS adicional
   Todo está dentro de .mxb para no afectar al resto del tema.
   ========================================================= */
.mxb{--ink:#12202F;--muted:#4B5B6B;--line:#E6EBF0;--bg:#F4F6F8;--display:'Bricolage Grotesque',Georgia,serif;
  font-family:'Figtree',Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5;font-size:16px;overflow-x:clip}
.mxb *,.mxb *::before,.mxb *::after{box-sizing:border-box}
.mxb h1,.mxb h2,.mxb h3{font-family:var(--display);margin:0;color:inherit;letter-spacing:normal;text-transform:none}
.mxb p{margin:0}
:where(.mxb) a{color:inherit;text-decoration:none}
:where(.mxb) a:hover{text-decoration:underline}
.mxb [hidden]{display:none!important}
.mxb ol,.mxb ul{margin:0;padding:0;list-style:none}

/* fondo a todo lo ancho aunque el tema tenga contenedor */
.mxb-full{width:100%}
.mxb-wrap{max-width:1164px;margin:0 auto;padding:0 32px}

/* tipografía */
.mxb-h1{font-size:clamp(34px,5.5vw,56px);line-height:1.05;font-weight:800;max-width:800px}
.mxb-h2{font-size:clamp(26px,3.4vw,32px);font-weight:800;line-height:1.15}
.mxb-h3{font-size:24px;font-weight:800;line-height:1.2}
.mxb-eyebrow{font-size:14px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:0 0 14px!important;color:#FFC845}
.mxb-lead{font-size:19px;max-width:660px;margin-top:20px!important;color:#C9D3DD}
.mxb-muted{color:var(--muted);font-size:14px}
.mxb-muted2{color:var(--muted);font-size:15px}
.mxb-strong{font-weight:700}
.mxb-sub{margin:6px 0 24px!important}
.mxb-label{display:block;font-size:14px;font-weight:700;margin-bottom:6px}
.mxb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* secciones */
.mxb-sec{padding-top:72px}
.mxb-sec-sm{padding-top:48px}
.mxb-last{padding-bottom:72px}

/* hero */
.mxb-hero{background:var(--ink);color:#fff;padding:72px 0}
.mxb-hero--overlap{padding-bottom:104px}
.mxb-hero--line{background:var(--c);color:var(--c-ink)}
.mxb-hero--line .mxb-eyebrow,.mxb-hero--line .mxb-lead{color:inherit}
.mxb-overlap{margin-top:-48px}

.mxb-tiles,.mxb-stats{margin-top:36px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.mxb-tile{display:block;background:#1D3249;color:#fff;padding:20px;border-radius:14px;font-weight:700}
.mxb-tile--accent{background:#FFC845;color:var(--ink)}
.mxb-tile-sub{font-size:13px;font-weight:500;opacity:.85}
.mxb-tile-title{font-family:var(--display);font-size:22px}
.mxb-stat{background:rgba(255,255,255,.16);border-radius:14px;padding:18px}
.mxb-hero--line[style*="#FFC845"] .mxb-stat{background:rgba(255,255,255,.5)}
.mxb-stat-label{font-size:13px}
.mxb-stat-value{font-family:var(--display);font-size:28px;font-weight:800}
.mxb-updated{margin-top:24px;display:inline-flex;align-items:center;gap:10px;background:#1D3249;border-radius:999px;padding:10px 18px;font-size:15px}

/* tarjetas */
.mxb-card{background:#fff;border:1px solid #E3E8EE;border-radius:22px;padding:28px;box-shadow:0 6px 24px rgba(18,32,47,.06)}
.mxb-card--float{border:0;border-radius:20px;padding:32px 36px;box-shadow:0 8px 30px rgba(18,32,47,.08)}
.mxb-card--flush{padding:8px 12px}
.mxb-card--list{padding:10px 24px}
.mxb-card-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.mxb-icon{width:48px;height:48px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.mxb-icon--line{background:var(--c-soft);color:var(--c-text)}
.mxb-icon--blue{background:#E6EEFB;color:#1D5FD1}
.mxb-icon--amber{background:#FFF1D6;color:#B45309}
.mxb-icon--green{background:#E3F3EF;color:#0A7C66}
.mxb-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:24px}
.mxb-grid2--tight{gap:16px}
.mxb-stack{display:flex;flex-direction:column;gap:12px}

.mxb-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px;background:var(--bg);border-radius:14px;padding:16px 18px;margin-bottom:10px}
.mxb-row:last-of-type{margin-bottom:0}
.mxb-row--hl{background:var(--c-soft,#E6EEFB)}
.mxb-row--col{flex-direction:column;align-items:flex-start;gap:0}
.mxb-row--rosa{background:#FCE7EF}
.mxb-row--rosa .mxb-strong{color:#8E1846}
.mxb-row--rosa .mxb-muted2{color:#5B1530}
.mxb-row--green{background:#E3F3EF;color:#075C4C}
.mxb-big{font-family:var(--display);font-size:24px;font-weight:800;color:var(--c-text,var(--c,#1D5FD1))}
.mxb-more{display:inline-block;margin-top:14px;font-weight:700;color:var(--c-text,var(--c,#1D5FD1))}
.mxb-note{background:#FFF4D6;border-radius:14px;padding:16px 18px;color:#5B4300;font-size:15px}
.mxb-pills{display:flex;flex-wrap:wrap;gap:8px}
.mxb-pill{background:var(--bg);border-radius:999px;padding:8px 14px;font-weight:500}
.mxb-pill--rosa{background:#FCE7EF;color:#8E1846;font-weight:700}

/* formularios */
.mxb-input{width:100%;padding:12px 14px;border:1px solid #BCC6D0;border-radius:12px;font:inherit;font-size:16px;min-height:48px;background:#fff;color:var(--ink);margin:0}
.mxb-input:focus{outline:3px solid #1D5FD1;outline-offset:1px}
.mxb-search{position:relative}
.mxb-search svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--muted)}
.mxb-search .mxb-input{padding-left:46px;font-size:17px;min-height:52px}
.mxb-results{margin-top:16px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px}
.mxb-result{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--bg);border-radius:12px;padding:14px 16px}
.mxb-chips{display:flex;gap:6px;flex-wrap:wrap}
.mxb-chip{display:inline-block;font-weight:700;font-size:14px;padding:6px 12px;border-radius:999px;color:#fff}
.mxb-chip--l1{background:#1D5FD1}.mxb-chip--l2{background:#0A7C66}.mxb-chip--l3{background:#C8102E}.mxb-chip--l4{background:#FFC845;color:var(--ink)}
.mxb-chip--all{background:var(--ink)}

/* tarjetas de línea */
.mxb-linecard{display:block;background:#fff;border-radius:18px;overflow:hidden;border:2px solid var(--c)}
.mxb-linecard:hover{text-decoration:none;box-shadow:0 8px 30px rgba(18,32,47,.1)}
.mxb-linecard[style*="#FFC845"]{border-color:#E0A800}
.mxb-linecard-head{background:var(--c);color:var(--c-ink);padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;font-weight:700}
.mxb-linecard-body{padding:18px 22px}
.mxb-linecard .mxb-more{color:var(--c-text)}

/* estaciones */
.mxb-bar{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px;margin-bottom:20px}
.mxb-bar-search{min-width:260px;flex:0 1 340px}
.mxb-stations{background:#fff;border-radius:20px;padding:12px 24px!important;box-shadow:0 6px 24px rgba(18,32,47,.06);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));column-gap:40px}
.mxb-st{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);margin:0}
.mxb-num{width:34px;height:34px;border-radius:50%;background:var(--c);color:var(--c-ink);font-weight:700;font-size:14px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.mxb-st-name{flex:1;font-weight:700;font-size:17px}
.mxb-badge{font-size:13px;font-weight:700;background:var(--c-soft);color:var(--c-text);padding:4px 10px;border-radius:999px}
.mxb-empty{padding:18px 0}

/* conexiones */
.mxb-conn{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.mxb-conn-item{display:block;background:#fff;border-radius:16px;padding:22px}
.mxb-conn-title{font-weight:700;font-size:18px}

/* tablas */
.mxb-table{overflow-x:auto}
.mxb-table table{width:100%;min-width:640px;border-collapse:collapse;font-size:15px;margin:0;border:0}
.mxb-table th,.mxb-table td{text-align:left;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:none}
.mxb-table thead tr{background:var(--bg)}
.mxb-tr-rosa{background:#FCE7EF}
.mxb-tr-rosa .mxb-strong{color:#8E1846}
.mxb-dotlink{display:inline-flex;align-items:center;gap:10px;font-weight:700}
.mxb-dotlink span{width:14px;height:14px;border-radius:50%}
.mxb-contact{display:flex;flex-direction:column;gap:12px;font-size:16px}

/* mapa */
.mxb-mapbox{background:#fff;border-radius:18px;padding:16px}
.mxb-map{border-radius:12px;background:var(--line);display:flex;align-items:center;justify-content:center;color:var(--muted);text-align:center;padding:16px}
.mxb-map img{max-width:100%;height:auto;border-radius:12px}
.mxb-legend{display:flex;flex-wrap:wrap;gap:10px 22px;padding:16px 8px 4px;font-size:15px;font-weight:500}
.mxb-legend-item{display:inline-flex;align-items:center;gap:8px}
.mxb-legend-item span{width:28px;height:6px;border-radius:3px}

/* preguntas frecuentes */
.mxb-faq{display:flex;flex-direction:column;gap:10px}
.mxb-faq details{background:#fff;border-radius:14px;padding:18px 22px;margin:0;border:0}
.mxb-faq summary{font-weight:700;font-size:17px;cursor:pointer}
.mxb-faq p{margin-top:10px;color:#33424F}
.mxb-faq a{font-weight:700;text-decoration:underline}

/* pestañas */
.mxb-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.mxb .mxb-tab{font:inherit;font-weight:700;font-size:16px;padding:12px 18px;border-radius:12px;min-height:48px;cursor:pointer;background:#fff;color:var(--ink);border:2px solid #BCC6D0;line-height:1.2;text-transform:none;letter-spacing:normal;box-shadow:none}
.mxb .mxb-tab:hover{border-color:var(--ink)}
.mxb .mxb-tab:focus-visible{outline:3px solid #1D5FD1;outline-offset:2px}
.mxb .mxb-tab--l1[aria-pressed=true]{background:#1D5FD1;border-color:#1D5FD1;color:#fff}
.mxb .mxb-tab--l2[aria-pressed=true]{background:#0A7C66;border-color:#0A7C66;color:#fff}
.mxb .mxb-tab--l3[aria-pressed=true]{background:#C8102E;border-color:#C8102E;color:#fff}
.mxb .mxb-tab--l4[aria-pressed=true]{background:#FFC845;border-color:#FFC845;color:var(--ink)}
.mxb .mxb-tab--day[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.mxb-hgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin-top:4px}
.mxb-hbox{background:var(--bg);border-radius:16px;padding:22px}
.mxb-hbox--note{background:#FFF4D6;color:#5B4300}
.mxb-huge{font-family:var(--display);font-size:44px;font-weight:800;line-height:1.1}

/* tarifas */
.mxb-tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px}
.mxb-tier{background:#fff;border-radius:18px;padding:24px;box-shadow:0 8px 30px rgba(18,32,47,.08)}
.mxb-tier-price{font-family:var(--display);font-size:40px;font-weight:800;color:#B45309;margin-top:8px;line-height:1.1}
.mxb-tier-price--green{color:#0A7C66}
.mxb-route{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:18px 0;border-bottom:1px solid var(--line)}
.mxb-route:last-child{border-bottom:0}
.mxb-route .mxb-big{font-size:28px;color:#B45309}

/* servicio hoy */
.mxb-statuscard{display:flex;align-items:center;gap:16px;background:#fff;border-radius:18px;padding:22px;box-shadow:0 6px 24px rgba(18,32,47,.06)}
.mxb-statusbar{width:14px;align-self:stretch;border-radius:7px;flex:none}
.mxb-status{display:inline-flex;align-items:center;gap:8px;font-weight:700;padding:8px 14px;border-radius:999px}
.mxb-status--ok{background:#E3F3EF;color:#075C4C}
.mxb-status--warn{background:#FFF4D6;color:#5B4300}
.mxb-status--off{background:#FBE6E9;color:#8E0B21}
.mxb-notice{background:#fff;border-radius:16px;padding:22px 24px}
.mxb-notice-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px}
.mxb-notice .mxb-chip{font-size:13px;padding:4px 10px}
.mxb-notice p{margin-top:6px;color:#33424F}

/* llamadas a la acción y botones */
.mxb-cta{background:#E6EEFB;border-radius:20px;padding:28px 32px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;color:#33424F}
.mxb-cta .mxb-h3{color:var(--ink)}
.mxb-btn{display:inline-block;background:#1D5FD1;color:#fff!important;font-weight:700;padding:14px 22px;border-radius:12px}
.mxb-btn:hover{text-decoration:none;filter:brightness(1.08)}
.mxb-btn--dark{background:var(--ink)}
.mxb-btn--l2{background:#0A7C66}.mxb-btn--l3{background:#C8102E}.mxb-btn--l4{background:#FFC845;color:var(--ink)!important}
.mxb-btnrow{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}

/* 404 */
.mxb-404{padding-top:88px;padding-bottom:96px;text-align:center;max-width:900px}
.mxb-404 .mxb-h1{margin-left:auto;margin-right:auto}
.mxb-bars{display:flex;justify-content:center;gap:10px;margin-bottom:28px}
.mxb-bars span{width:56px;height:10px;border-radius:5px}
.mxb-404-num{font-family:var(--display);font-size:120px;font-weight:800;line-height:1}

/* móvil */
@media (max-width:640px){
  .mxb-wrap{padding-left:16px;padding-right:16px}
  .mxb-hero{padding:48px 0}
  .mxb-hero--overlap{padding-bottom:80px}
  .mxb-card,.mxb-card--float{padding:22px 18px}
  .mxb-stations{padding:8px 16px!important}
  .mxb-sec{padding-top:56px}
  .mxb-lead{font-size:17px}
  .mxb-huge{font-size:38px}
  .mxb-404-num{font-size:88px}
}

/* ---------------------------------------------------------
   Estilos propios del tema (cabecera, pie, páginas genéricas)
   --------------------------------------------------------- */
body{margin:0;background:#F4F6F8;color:#12202F;font-family:'Figtree',Arial,sans-serif;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;left:12px;top:12px;z-index:1000;background:#fff;color:#12202F;padding:12px 18px;border-radius:10px;font-weight:700}

/* cabecera */
.mxb-header{background:#fff;border-bottom:1px solid #DDE3E9;padding:14px 32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;font-family:'Figtree',Arial,sans-serif}
.mxb-brand{display:flex;align-items:center;gap:10px;font-family:'Bricolage Grotesque',Georgia,serif;font-weight:800;font-size:20px;color:#12202F;text-decoration:none}
.mxb-brand:hover{text-decoration:none}
.mxb-brand-mark{width:42px;height:42px;flex:none;display:block}
.mxb-brand-text{display:flex;flex-direction:column;line-height:.95;font-size:23px;letter-spacing:-.01em}
.mxb-brand-text small{font-family:'Figtree',Arial,sans-serif;font-weight:700;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:#4B5B6B;margin-bottom:2px}
.mxb-brand--logo img{max-height:40px;width:auto;display:block}
.mxb-nav-list{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:0;padding:0;font-weight:500;font-size:15px}
.mxb-nav-list a{display:block;padding:10px 12px;border-radius:10px;color:#12202F;text-decoration:none}
.mxb-nav-list a:hover{background:#F4F6F8}
.mxb-nav-list .current-menu-item>a{font-weight:700;background:#F4F6F8}
.mxb-nav-list{font-weight:700;font-size:16px}
.mxb-nav-list .mxb-nav-hoy>a{font-weight:700;color:#C8102E}

/* pie */
.mxb-footer{background:#12202F;color:#C9D3DD;padding:32px;text-align:center;font-size:14px;font-family:'Figtree',Arial,sans-serif}
.mxb-footer p{margin:0}
.mxb-footer-list{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;list-style:none;margin:0 0 14px;padding:0;font-weight:500}
.mxb-footer-list a{color:#fff;text-decoration:none;display:inline-block;padding:6px 0}
.mxb-footer-list a:hover{text-decoration:underline}

/* el tema ya da el ancho completo */
.mxb{display:block}
.mxb-hero--page{padding:56px 0}
.mxb-hero--page .mxb-h1{font-size:clamp(30px,4.5vw,46px)}

/* mapas con imagen */
.mxb-map-link{display:block}
.mxb-map-img{display:block;width:100%;height:auto;border-radius:12px;background:#E6EBF0}

/* textos que vienen del editor de WordPress */
.mxb-prose{font-size:17px;line-height:1.7;overflow-wrap:break-word}
.mxb-prose>:first-child{margin-top:0!important}
.mxb-prose>:last-child{margin-bottom:0!important}
.mxb-prose p{margin:0 0 1em}
.mxb-prose h2{font-size:28px;font-weight:800;margin:1.6em 0 .5em;line-height:1.2}
.mxb-prose h3{font-size:22px;font-weight:800;margin:1.4em 0 .4em;line-height:1.25}
.mxb-prose h4{font-size:18px;margin:1.2em 0 .4em}
.mxb-prose ul{list-style:disc;padding-left:1.4em;margin:0 0 1em}
.mxb-prose ol{list-style:decimal;padding-left:1.4em;margin:0 0 1em}
.mxb-prose li{margin:.25em 0}
.mxb-prose a{color:#1D5FD1;text-decoration:underline}
.mxb-prose img,.mxb-prose video,.mxb-prose iframe{max-width:100%;border-radius:12px}
.mxb-prose iframe{width:100%}
.mxb-prose figure{margin:1.4em 0}
.mxb-prose figcaption,.mxb-prose .wp-caption-text{font-size:14px;color:#4B5B6B;margin-top:6px}
.mxb-prose blockquote{margin:1.4em 0;padding:16px 20px;background:#F4F6F8;border-radius:14px}
.mxb-prose table{width:100%;border-collapse:collapse;margin:0 0 1.2em;font-size:15px;display:block;overflow-x:auto}
.mxb-prose th,.mxb-prose td{border-bottom:1px solid #E6EBF0;padding:10px 12px;text-align:left}
.mxb-prose thead th{background:#F4F6F8}
.mxb-prose hr{border:0;border-top:1px solid #E6EBF0;margin:2em 0}
.mxb-prose .wp-block-button__link{background:#1D5FD1;color:#fff;border-radius:12px;padding:12px 20px;text-decoration:none;font-weight:700}
.mxb-prose .alignleft{float:left;margin:0 1.2em 1em 0}
.mxb-prose .alignright{float:right;margin:0 0 1em 1.2em}
.mxb-prose .aligncenter{margin-left:auto;margin-right:auto;display:block}
.mxb-thumb{display:block;width:100%;height:auto;border-radius:14px;margin-bottom:24px}
.mxb-comments{margin-top:24px}
.mxb-postnav{margin-top:24px}
.mxb-postnav .nav-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-weight:700}

/* listados del blog */
.mxb-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:20px}
.mxb-post{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 6px 24px rgba(18,32,47,.06);display:flex;flex-direction:column}
.mxb-post-img img{display:block;width:100%;height:190px;object-fit:cover}
.mxb-post-body{padding:20px 22px;display:flex;flex-direction:column;gap:6px}
.mxb-post-body .mxb-h3{font-size:21px}
.mxb-pagination{margin-top:32px}
.mxb-pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mxb-pagination .page-numbers{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:0 14px;background:#fff;border-radius:12px;font-weight:700;text-decoration:none}
.mxb-pagination .page-numbers.current{background:#12202F;color:#fff}
.search-form{display:flex;gap:8px;flex-wrap:wrap}
.search-form .search-field{flex:1;min-width:200px;padding:12px 14px;border:1px solid #BCC6D0;border-radius:12px;font:inherit;min-height:48px}
.search-form .search-submit{background:#12202F;color:#fff;border:0;border-radius:12px;padding:12px 20px;font:inherit;font-weight:700;min-height:48px;cursor:pointer}

@media (max-width:640px){
  .mxb-header{padding:12px 16px}
  .mxb-nav-list{gap:0;font-size:14px}
  .mxb-nav-list a{padding:10px 9px}
  .mxb-hero--page{padding:40px 0}
}

.mxb-statuscard:hover,.mxb-conn-item:hover,.mxb-tile:hover{text-decoration:none}
.mxb-statuscard:hover .mxb-strong,.mxb-conn-item:hover .mxb-conn-title{text-decoration:underline}

/* ---------- conexiones entre líneas y estaciones ---------- */
.mxb-eyebrow a{text-decoration:underline;text-underline-offset:3px}
.mxb-lchip{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-family:'Bricolage Grotesque',Georgia,serif;font-weight:800;font-size:15px;line-height:1;flex:none;text-decoration:none!important;color:#fff}
.mxb-lchip--lg{width:48px;height:48px;font-size:22px}
.mxb-lchip--l1{background:#1D5FD1}.mxb-lchip--l2{background:#0A7C66}.mxb-lchip--l3{background:#C8102E}.mxb-lchip--l4{background:#FFC845;color:#12202F}
.mxb-st-link{display:flex;align-items:center;gap:16px;flex:1;min-height:44px;min-width:0}
.mxb-st-link:hover .mxb-st-name{text-decoration:underline}
.mxb-transfers{display:inline-flex;gap:6px}
.mxb-st{flex-wrap:wrap}
.mxb-hero--line .mxb-eyebrow{color:inherit}

.mxb-otherlines{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px}
.mxb-otherline{display:flex;align-items:center;gap:14px;background:#fff;border-radius:16px;padding:16px 18px}
.mxb-otherline:hover{text-decoration:none;box-shadow:0 6px 24px rgba(18,32,47,.08)}

.mxb-hlinks{margin-top:10px!important;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:15px}
.mxb-hlinks a{font-weight:700;color:#1D5FD1;text-decoration:underline}

/* índice A–Z */
.mxb-az{columns:4 220px;column-gap:32px}
.mxb-az-group{break-inside:avoid;margin-bottom:18px}
.mxb-az-letter{font-size:22px!important;color:#C8102E;border-bottom:2px solid #E6EBF0;padding-bottom:4px;margin-bottom:6px!important}
.mxb-az li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;font-size:15px}
.mxb-az a{font-weight:500}
.mxb-dots{display:inline-flex;gap:4px;flex:none}
.mxb-dot{width:10px;height:10px;border-radius:50%}
.mxb-dot--l1{background:#1D5FD1}.mxb-dot--l2{background:#0A7C66}.mxb-dot--l3{background:#C8102E}.mxb-dot--l4{background:#E0A800}

/* página de estación */
.mxb-st-lines{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.mxb-st-linepill{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.92);color:#12202F;border-radius:999px;padding:5px 16px 5px 5px;font-weight:700}
.mxb-route-card{background:#fff;border-radius:18px;overflow:hidden;border:2px solid var(--c)}
.mxb-route-card[style*="#FFC845"]{border-color:#E0A800}
.mxb-route-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;background:var(--c);color:var(--c-ink);padding:14px 20px;font-size:14px;font-weight:700}
.mxb-route-head .mxb-h3{font-size:21px}
.mxb-route-body{padding:10px 20px 16px}
.mxb-route-dir{font-size:13px;font-weight:700;color:#4B5B6B;padding:8px 0 4px 38px}
.mxb-nodes li{margin:0}
.mxb-node{display:flex;align-items:center;gap:18px;min-height:54px;border-bottom:1px solid #EEF1F4;position:relative;padding-left:0}
.mxb-node::before{content:"";position:absolute;left:7px;top:0;bottom:0;width:6px;background:var(--c)}
.mxb-node-dot{position:relative;width:20px;height:20px;border-radius:50%;box-sizing:border-box;border:5px solid var(--c);background:#fff;flex:none}
.mxb-node--here .mxb-node-dot{width:26px;height:26px;border-width:7px;margin:0 -3px}
.mxb-node-name{flex:1;font-weight:500;font-size:16px;color:#33424F}
.mxb-node--here .mxb-node-name{font-weight:800;font-size:19px;color:#12202F}
.mxb-node:hover .mxb-node-name{text-decoration:underline}
.mxb-here{background:#FFC845;color:#12202F;font-size:13px;font-weight:700;border-radius:999px;padding:4px 12px}
.mxb-stchips{display:flex;flex-wrap:wrap;gap:8px}
.mxb-stchips li{margin:0}
.mxb-stchip{display:inline-flex;align-items:center;gap:8px;background:#fff;border-radius:999px;padding:7px 14px 7px 7px;font-size:15px;font-weight:500;min-height:40px}
.mxb-stchip span{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;border-radius:999px;background:var(--c-soft);color:var(--c-text);font-size:12px;font-weight:700;padding:0 4px}
.mxb-stchip--here{background:var(--c);color:var(--c-ink);font-weight:700}
.mxb-stchip--here span{background:rgba(255,255,255,.85);color:#12202F}

/* ---------- anuncios ---------- */
.mxb-ad-wrap{max-width:1164px;margin:0 auto;padding:40px 32px 0;box-sizing:border-box}
.mxb-ad{display:block;background:#fff;border-radius:16px;padding:10px 12px 14px;text-align:center;min-height:120px;overflow:hidden}
.mxb-ad-label{display:block;font-family:'Figtree',Arial,sans-serif;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#4B5B6B;margin-bottom:8px}
.mxb-ad--preview{border:2px dashed #BCC6D0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#4B5B6B;font-size:14px;background:#FAFBFC}
.mxb-card .mxb-ad-wrap,.mxb-prose .mxb-ad-wrap{padding:24px 0 0}
@media (max-width:640px){.mxb-ad-wrap{padding:32px 16px 0}}
.mxb-wrap .mxb-ad-wrap{padding-left:0;padding-right:0;max-width:none}

/* ---------- contacto ---------- */
.mxb-contact-grid{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.mxb-contact-form{flex:999 1 520px;min-width:0}
.mxb-contact-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:20px}
.mxb-contact-links{list-style:none!important;padding:0!important;margin:0!important}
.mxb-contact-links li{margin:0;border-bottom:1px solid #EEF1F4}
.mxb-contact-links li:last-child{border-bottom:0}
.mxb-contact-links a{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:46px;font-weight:700;color:#12202F}
.mxb-contact-links a span{color:#1D5FD1}

/* ---------- formularios de Contact Form 7 ---------- */
.wpcf7{font-family:'Figtree',Arial,sans-serif;font-size:16px}
.wpcf7 form p{margin:0 0 18px}
.wpcf7 label{display:block;font-weight:700;font-size:15px;color:#12202F}
.wpcf7 label br{display:none}
.wpcf7-form-control-wrap{display:block;margin-top:6px}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 input[type=url],.wpcf7 input[type=number],.wpcf7 input[type=date],.wpcf7 select,.wpcf7 textarea{
  width:100%;box-sizing:border-box;font:inherit;font-weight:400;color:#12202F;background:#fff;border:1px solid #BCC6D0;border-radius:12px;padding:12px 14px;min-height:50px;line-height:1.4;transition:border-color .15s,box-shadow .15s;-webkit-appearance:none;appearance:none}
.wpcf7 textarea{min-height:160px;resize:vertical}
.wpcf7 select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234B5B6B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}
.wpcf7 input::placeholder,.wpcf7 textarea::placeholder{color:#7A8896}
.wpcf7 input:hover,.wpcf7 textarea:hover,.wpcf7 select:hover{border-color:#8D9AA7}
.wpcf7 input:focus,.wpcf7 textarea:focus,.wpcf7 select:focus{outline:none;border-color:#1D5FD1;box-shadow:0 0 0 3px rgba(29,95,209,.22)}
.wpcf7 .wpcf7-list-item{margin:6px 16px 0 0;font-weight:500}
.wpcf7 input[type=checkbox],.wpcf7 input[type=radio]{width:18px;height:18px;accent-color:#1D5FD1;vertical-align:-3px;margin-right:6px}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item{margin:0;font-weight:500;font-size:15px}
.wpcf7 input[type=submit],.wpcf7 .wpcf7-submit{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-weight:700;font-size:16px;color:#fff;background:#1D5FD1;border:0;border-radius:12px;padding:14px 28px;min-height:50px;cursor:pointer;transition:background .15s,transform .05s;-webkit-appearance:none;appearance:none}
.wpcf7 input[type=submit]:hover{background:#174CA8}
.wpcf7 input[type=submit]:active{transform:translateY(1px)}
.wpcf7 input[type=submit]:focus-visible{outline:3px solid #12202F;outline-offset:2px}
.wpcf7 input[type=submit]:disabled{opacity:.6;cursor:not-allowed}
.wpcf7-spinner{vertical-align:middle;margin:0 0 0 12px}
/* validación */
.wpcf7 .wpcf7-not-valid{border-color:#C8102E!important;background:#FFF8F8}
.wpcf7 .wpcf7-not-valid:focus{box-shadow:0 0 0 3px rgba(200,16,46,.2)}
.wpcf7-not-valid-tip{display:block;color:#A50D26;font-size:14px;font-weight:700;margin-top:6px}
/* mensajes tras enviar */
.wpcf7 form .wpcf7-response-output{margin:8px 0 0;padding:14px 16px;border-radius:12px;border:0;font-size:15px;font-weight:500}
.wpcf7 form.sent .wpcf7-response-output{background:#E3F3EF;color:#075C4C}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.unaccepted .wpcf7-response-output,.wpcf7 form.payment-required .wpcf7-response-output{background:#FFF4D6;color:#5B4300}
.wpcf7 form.failed .wpcf7-response-output,.wpcf7 form.aborted .wpcf7-response-output,.wpcf7 form.spam .wpcf7-response-output{background:#FBE6E9;color:#8E0B21}
@media (max-width:640px){.wpcf7 input[type=submit]{width:100%}}
.wpcf7 form > p:last-of-type{margin-bottom:0}
.wpcf7 form.init .wpcf7-response-output,.wpcf7 form.resetting .wpcf7-response-output,.wpcf7 form.submitting .wpcf7-response-output,.wpcf7 form .wpcf7-response-output:empty{display:none}
