/* =====================================================================
   GasteizBus — Asociación de servicios para el personal del Gobierno Vasco
   Sistema de diseño

   NOTA: los comentarios de CSS SÍ se ven desde internet, así que aquí no
   va documentación interna. Las dependencias de este fichero están
   explicadas en include/header.php.

   Paleta corporativa heredada, sin cambios:
     #1a3668 azul corporativo · #3498db azul vivo · #666666 gris
   ===================================================================== */

:root {
    /* Azules corporativos */
    --azul-900: #0f2246;
    --azul-800: #1a3668;
    --azul-700: #24457d;
    --azul-600: #2f5da5;
    --azul-500: #3498db;
    --azul-200: #b9d6ef;
    --azul-100: #e9f2fa;
    --azul-050: #f4f8fd;

    /* Neutros */
    --gris-900: #1c1f24;
    --gris-700: #3f454e;
    --gris-600: #666666;
    --gris-500: #7d8590;
    --gris-300: #d7dde5;
    --gris-200: #e7ebf1;
    --gris-100: #f4f6f9;
    --crema: #faf9f6;
    --blanco: #ffffff;

    /* Semánticos */
    --texto: var(--gris-900);
    --texto-suave: var(--gris-700);
    --borde: var(--gris-200);
    --fondo: var(--blanco);
    --fondo-alt: var(--gris-100);

    /* Medidas */
    --ancho: 1180px;
    --ancho-texto: 68ch;
    --radio: 12px;
    --radio-sm: 8px;
    --radio-lg: 20px;
    --sombra-sm: 0 1px 2px rgba(15, 34, 70, .06), 0 2px 8px rgba(15, 34, 70, .05);
    --sombra: 0 2px 6px rgba(15, 34, 70, .06), 0 12px 32px rgba(15, 34, 70, .08);
    --sombra-lg: 0 4px 12px rgba(15, 34, 70, .08), 0 24px 56px rgba(15, 34, 70, .12);
    --trans: 180ms cubic-bezier(.4, 0, .2, 1);

    --fuente-titulo: 'Raleway', 'Segoe UI', system-ui, sans-serif;
    --fuente-texto: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    font-family: var(--fuente-texto);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--texto);
    background: var(--fondo);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: var(--azul-700); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--azul-500); }

:focus-visible {
    outline: 3px solid var(--azul-500);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
    font-family: var(--fuente-titulo);
    font-weight: 700;
    line-height: 1.2;
    color: var(--azul-800);
    text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.13rem, 1.05rem + .4vw, 1.35rem); }
h4 { font-size: 1.02rem; }
p { text-wrap: pretty; }
strong { font-weight: 700; color: var(--azul-800); }

.kicker {
    display: inline-block;
    font-family: var(--fuente-titulo);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--azul-500);
}
.lead {
    font-size: clamp(1.05rem, 1rem + .35vw, 1.24rem);
    line-height: 1.6;
    color: var(--texto-suave);
    max-width: var(--ancho-texto);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section--alt { background: var(--fondo-alt); }
.section--tint { background: var(--azul-050); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem); }

.section__head { max-width: var(--ancho-texto); margin-bottom: 2.75rem; }
.section__head > .kicker { margin-bottom: .6rem; }
.section__head > h2 { margin-bottom: .85rem; }

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }

/* Se oculta recortándolo, no con left:-9999px: sacar un elemento fuera
   del lienzo ensancha el área de scroll y provoca barra horizontal. */
.skip-link {
    position: absolute; left: 0; top: 0; z-index: 999;
    width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    background: var(--azul-800); color: var(--blanco);
    padding: .8rem 1.4rem; border-radius: 0 0 var(--radio-sm) 0; font-weight: 600;
}
.skip-link:focus {
    width: auto; height: auto; overflow: visible;
    clip: auto; clip-path: none; color: var(--blanco);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .82rem 1.6rem;
    font-family: var(--fuente-titulo);
    font-size: .95rem; font-weight: 700; line-height: 1.2;
    border-radius: var(--radio-sm);
    border: 2px solid transparent;
    transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans), box-shadow var(--trans);
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--azul-800); color: var(--blanco); box-shadow: var(--sombra-sm); }
.btn--primary:hover { background: var(--azul-700); color: var(--blanco); box-shadow: var(--sombra); }

.btn--accent { background: var(--azul-500); color: var(--blanco); box-shadow: var(--sombra-sm); }
.btn--accent:hover { background: var(--azul-600); color: var(--blanco); box-shadow: var(--sombra); }

.btn--ghost { background: transparent; color: var(--azul-800); border-color: var(--gris-300); }
.btn--ghost:hover { background: var(--azul-050); border-color: var(--azul-200); color: var(--azul-800); }

.btn--light { background: var(--blanco); color: var(--azul-800); }
.btn--light:hover { background: var(--azul-050); color: var(--azul-800); }

.btn--outline-light { background: transparent; color: var(--blanco); border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: var(--blanco); border-color: var(--blanco); }

.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- Cabecera ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--borde);
}
.site-header__bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: .75rem; color: inherit; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand img { height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
    font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.16rem;
    color: var(--azul-800); letter-spacing: -.01em;
}
/* .brand__tag (el lema bajo la marca) se retiró de include/header.php:
   la cabecera lleva solo «GasteizBus». */

/* min-width:0 para que el menú pueda encoger dentro del flex de la
   cabecera. Sin él, los enlaces (que van con white-space:nowrap) empujan
   a los botones de la derecha fuera del contenedor y aparece scroll
   horizontal en pantallas de ~1000-1300 px. */
.nav { display: flex; align-items: center; gap: .15rem; min-width: 0; }
.nav__link {
    position: relative;
    padding: .55rem .8rem;
    font-size: .92rem; font-weight: 600; color: var(--gris-700);
    border-radius: var(--radio-sm);
    white-space: nowrap;
}
.nav__link:hover { color: var(--azul-800); background: var(--azul-050); }
.nav__link.is-active { color: var(--azul-800); }
.nav__link.is-active::after {
    content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .18rem;
    height: 2px; border-radius: 2px; background: var(--azul-500);
}

/* Desplegable de servicios */
.nav__item { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: .3rem; }
.nav__toggle svg { width: 12px; height: 12px; transition: transform var(--trans); }
.nav__item:hover .nav__toggle svg,
.nav__item:focus-within .nav__toggle svg { transform: rotate(180deg); }

.nav__menu {
    position: absolute; top: calc(100% + .4rem); left: 0; z-index: 20;
    min-width: 280px; padding: .5rem;
    background: var(--blanco); border: 1px solid var(--borde);
    border-radius: var(--radio); box-shadow: var(--sombra-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__menu-link { display: block; padding: .6rem .75rem; border-radius: var(--radio-sm); color: var(--gris-700); }
.nav__menu-link:hover { background: var(--azul-050); color: var(--azul-800); }
.nav__menu-link strong { display: block; font-size: .92rem; font-weight: 700; }
.nav__menu-link span { display: block; font-size: .78rem; color: var(--gris-600); }
.nav__menu-sep { height: 1px; margin: .4rem .25rem; background: var(--borde); }

/* z-index y fondo propio: RED DE SEGURIDAD del selector de idioma.
   Los enlaces del menú van con white-space:nowrap, así que si algún día un
   texto crece (pasó con el euskera) se salen de su caja y se meten por
   encima de esta zona. Sin esto, el enlace «ES» quedaba tapado y quien
   entraba en la web en euskera NO PODÍA VOLVER al castellano: es un
   callejón sin salida, no un defecto estético. */
   Solo z-index, sin fondo propio: la cabecera es translúcida con
   backdrop-filter y un parche blanco aquí se vería como un recuadro. Con
   quedar por encima basta para que «ES» siga siendo pulsable. */
.header-actions {
    display: flex; align-items: center; gap: .85rem;
    flex-shrink: 0;
    position: relative; z-index: 2;
}

.lang-switch {
    display: flex; align-items: center; gap: .1rem;
    padding-left: .85rem; border-left: 1px solid var(--borde);
}
.lang-switch a {
    padding: .3rem .5rem; font-size: .82rem; font-weight: 700;
    color: var(--gris-500); border-radius: 5px;
}
.lang-switch a:hover { background: var(--azul-050); color: var(--azul-700); }
.lang-switch a.is-active { color: var(--azul-800); background: var(--azul-100); }

.header-phone {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem 1.05rem; background: var(--azul-800); color: var(--blanco);
    border-radius: var(--radio-sm); font-weight: 700; font-size: .9rem;
    transition: background var(--trans);
}
.header-phone:hover { background: var(--azul-700); color: var(--blanco); }
.header-phone svg { width: 15px; height: 15px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: .6rem; border-radius: var(--radio-sm); }
.burger span { display: block; width: 24px; height: 2px; background: var(--azul-800); border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-nav {
    display: none; position: fixed; inset: 76px 0 0; z-index: 99;
    background: var(--blanco); overflow-y: auto;
    padding: 1.5rem 20px 3rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
    display: block; padding: .95rem .25rem;
    font-family: var(--fuente-titulo); font-weight: 600; font-size: 1.05rem;
    color: var(--gris-700); border-bottom: 1px solid var(--borde);
}
.mobile-nav a.is-active { color: var(--azul-800); }
.mobile-nav .mobile-nav__sub { padding-left: 1.1rem; font-size: .95rem; font-weight: 400; }
.mobile-nav__foot { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; }

/* Escalonado de la cabecera. Se va soltando lastre según se estrecha la
   ventana, en este orden: primero el lema de la marca, luego el botón de
   teléfono, y por último el menú entero da paso a la hamburguesa.
   El teléfono cae pronto (1200px) porque sigue estando en el pie y en el
   menú móvil: es lo que menos se echa en falta. */
@media (max-width: 1200px) {
    .nav__link { padding: .55rem .6rem; font-size: .88rem; }
}
@media (max-width: 1100px) {
    .header-phone { display: none; }
    .nav__link { padding: .5rem .45rem; font-size: .85rem; }
}
@media (max-width: 940px) {
    .nav { display: none; }
    .header-phone { display: none; }
    .burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(52, 152, 219, .16) 0%, rgba(52, 152, 219, 0) 55%),
        linear-gradient(180deg, var(--azul-050) 0%, var(--blanco) 100%);
    padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
    border-bottom: 1px solid var(--borde);
}
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center; }
.hero__kicker { margin-bottom: .85rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { margin-bottom: .4rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radio-lg); box-shadow: var(--sombra-lg); }

.hero__badge {
    position: absolute; left: -12px; bottom: -18px;
    display: flex; align-items: center; gap: .8rem;
    padding: .9rem 1.25rem;
    background: var(--blanco); border: 1px solid var(--borde);
    border-radius: var(--radio); box-shadow: var(--sombra-lg);
}
.hero__badge strong { display: block; font-family: var(--fuente-titulo); font-size: 1.5rem; line-height: 1; color: var(--azul-800); }
.hero__badge span { font-size: .78rem; color: var(--gris-600); }

/* Cabecera interior (páginas que no son la portada) */
.page-head {
    background: linear-gradient(180deg, var(--azul-050) 0%, var(--blanco) 100%);
    border-bottom: 1px solid var(--borde);
    padding-block: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
}
.page-head h1 { margin-bottom: .9rem; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1rem; font-size: .82rem; color: var(--gris-600); }
.breadcrumb a { color: var(--gris-600); }
.breadcrumb a:hover { color: var(--azul-700); }
.breadcrumb span[aria-hidden] { color: var(--gris-300); }
.breadcrumb [aria-current] { color: var(--azul-800); font-weight: 600; }

/* ---------- Tarjetas ---------- */
.card {
    display: flex; flex-direction: column;
    padding: clamp(1.4rem, 1.2rem + .6vw, 1.9rem);
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--azul-200); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--texto-suave); font-size: .96rem; }
.card__foot { margin-top: auto; padding-top: 1.25rem; }

.card__icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; margin-bottom: 1.1rem;
    background: var(--azul-100); color: var(--azul-700);
    border-radius: var(--radio-sm);
}
.card__icon svg { width: 26px; height: 26px; }

/* Tarjeta de servicio */
.service-card { position: relative; }
.service-card--soon { background: var(--gris-100); border-style: dashed; }
.service-card--soon .card__icon { background: var(--gris-200); color: var(--gris-500); }
.service-card--soon h3 { color: var(--gris-600); }

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .65rem; margin-bottom: .9rem;
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    border-radius: 100px;
}
.badge--active { background: var(--azul-100); color: var(--azul-700); }
.badge--soon { background: var(--gris-200); color: var(--gris-600); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.card__claim { font-family: var(--fuente-titulo); font-size: .84rem; font-weight: 700; color: var(--azul-500); margin-bottom: .3rem; }

.arrow-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .93rem; }
.arrow-link svg { width: 15px; height: 15px; transition: transform var(--trans); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Cifras ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1px; background: var(--borde); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.stat { padding: 1.9rem 1.5rem; background: var(--blanco); }
.stat__num { font-family: var(--fuente-titulo); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem); font-weight: 700; line-height: 1; color: var(--azul-800); }
.stat__label { display: block; margin-top: .3rem; font-family: var(--fuente-titulo); font-size: .95rem; font-weight: 700; color: var(--azul-500); }
.stat__desc { margin-top: .6rem; font-size: .86rem; color: var(--gris-600); }

/* ---------- Lista de valores / características ---------- */
.feature { display: flex; gap: 1.1rem; }
.feature__icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--azul-100); color: var(--azul-700); border-radius: var(--radio-sm);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.feature p { font-size: .94rem; color: var(--texto-suave); }

/* ---------- Línea de tiempo ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(180deg, var(--azul-500), var(--azul-200)); border-radius: 2px; }
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ''; position: absolute; left: -2rem; top: .45rem; width: 16px; height: 16px; background: var(--blanco); border: 3px solid var(--azul-500); border-radius: 50%; }
.timeline__when { font-family: var(--fuente-titulo); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-500); }
.timeline h3 { margin: .25rem 0 .45rem; }
.timeline p { color: var(--texto-suave); font-size: .96rem; }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--azul-800) 0%, var(--azul-700) 55%, var(--azul-600) 100%);
    color: var(--blanco);
}
.cta-band::after {
    content: ''; position: absolute; right: -80px; top: -80px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, .35) 0%, rgba(52, 152, 219, 0) 70%);
    pointer-events: none;
}
.cta-band h2, .cta-band h3 { color: var(--blanco); }
.cta-band p { color: rgba(255, 255, 255, .88); }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band__text { max-width: 58ch; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Tabla de datos ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--borde); }
.data-table th { width: 38%; font-family: var(--fuente-titulo); font-weight: 700; color: var(--azul-800); background: var(--azul-050); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--radio); }

/* ---------- Acordeón (FAQ) ---------- */
.accordion { border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.accordion__item { border-bottom: 1px solid var(--borde); }
.accordion__item:last-child { border-bottom: none; }
.accordion__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.35rem; cursor: pointer; list-style: none;
    font-family: var(--fuente-titulo); font-weight: 700; color: var(--azul-800);
    transition: background var(--trans);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover { background: var(--azul-050); }
.accordion__item summary::after {
    content: ''; flex-shrink: 0; width: 10px; height: 10px;
    border-right: 2px solid var(--azul-500); border-bottom: 2px solid var(--azul-500);
    transform: rotate(45deg) translateY(-2px); transition: transform var(--trans);
}
.accordion__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.accordion__body { padding: 0 1.35rem 1.35rem; color: var(--texto-suave); max-width: var(--ancho-texto); }

/* ---------- Aviso / estado vacío ---------- */
.notice {
    display: flex; gap: 1rem; padding: 1.35rem 1.5rem;
    background: var(--azul-050); border: 1px solid var(--azul-200);
    border-left: 4px solid var(--azul-500); border-radius: var(--radio-sm);
}
.notice svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--azul-600); margin-top: .15rem; }
.notice p { font-size: .95rem; color: var(--texto-suave); }
.notice strong { display: block; margin-bottom: .2rem; }

.empty-state { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 1.5rem; text-align: center; background: var(--gris-100); border: 1px dashed var(--gris-300); border-radius: var(--radio); }
.empty-state svg { width: 44px; height: 44px; margin: 0 auto 1.1rem; color: var(--gris-500); }
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p { max-width: 52ch; margin-inline: auto; color: var(--gris-600); }

/* ---------- Texto largo (legales) ---------- */
.prose { max-width: var(--ancho-texto); }
.prose h2 { margin: 2.5rem 0 .9rem; font-size: 1.45rem; }
.prose h3 { margin: 1.9rem 0 .65rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.05rem; color: var(--texto-suave); }
.prose ul { margin: 0 0 1.05rem 1.3rem; list-style: disc; color: var(--texto-suave); }
.prose ul li { margin-bottom: .45rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose__meta { margin-bottom: 2rem; font-size: .85rem; color: var(--gris-500); }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--gris-700); }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
    width: 100%; padding: .78rem .9rem;
    font-family: inherit; font-size: .96rem; color: var(--texto);
    background: var(--blanco);
    border: 1px solid var(--gris-300); border-radius: var(--radio-sm);
    transition: border-color var(--trans), box-shadow var(--trans);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--azul-500);
    box-shadow: 0 0 0 3px var(--azul-100);
}
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: .8rem; color: var(--gris-600); }

.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; color: var(--texto-suave); }
.check input { width: 18px; height: 18px; margin-top: .18rem; flex-shrink: 0; accent-color: var(--azul-500); }

.form-msg { padding: .95rem 1.2rem; border-radius: var(--radio-sm); font-size: .93rem; margin-bottom: 1.5rem; }
.form-msg--ok { background: #e8f6ef; border: 1px solid #a8ddc3; color: #1c6942; }
.form-msg--ko { background: #fdecea; border: 1px solid #f5b7b1; color: #a33025; }

/* ---------- Pasos numerados ---------- */
.steps { counter-reset: paso; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.5rem; }
.step { position: relative; padding-top: 3.25rem; }
.step::before {
    counter-increment: paso; content: counter(paso);
    position: absolute; top: 0; left: 0;
    display: grid; place-items: center; width: 44px; height: 44px;
    font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.15rem;
    color: var(--blanco); background: var(--azul-500); border-radius: 50%;
}
.step h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.step p { font-size: .92rem; color: var(--texto-suave); }

/* ---------- Nombres de ruta ----------
   Vienen en mayúsculas de la operadora («MARGEN IZQUIERDA», «BEGOÑA») y se
   arreglan aquí y no en PHP: mb_convert_case ataría el proyecto a la
   extensión mbstring, y el navegador pasa la Ñ a minúscula bien sin
   depender de nada. Queda «Margen izquierda», que además es como se
   escribe en castellano. */
.ruta-lista {
    margin-top: .45rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--azul-700);
}
.ruta-lista span { text-transform: lowercase; }
.ruta-lista span::first-letter { text-transform: uppercase; }
.ruta-lista span:not(:last-child)::after {
    content: ' · ';
    color: var(--gris-300);
    text-transform: none;
}

.ruta-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ruta-chips li {
    padding: .3rem .7rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--azul-700);
    background: var(--azul-100);
    border-radius: 100px;
    text-transform: lowercase;
}
.ruta-chips li::first-letter { text-transform: uppercase; }

/* ---------- Lista con marca ---------- */
.check-list { display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--texto-suave); }
.check-list svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: .18rem; color: var(--azul-500); }

/* ---------- Pie ---------- */
.site-footer { background: var(--azul-900); color: rgba(255, 255, 255, .78); padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0; }
.site-footer h3 { margin-bottom: 1.1rem; font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blanco); }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--blanco); }
/* Una sola columna en móvil y cuatro fijas a partir de 900px.
   NO volver a mezclar una primera columna con suelo en píxeles y
   repeat(auto-fit,…): esa combinación reservaba 300px para la marca y las
   demás columnas se salían de la pantalla en móviles de 360px. */
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .site-footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; }
}
.site-footer__brand img { height: 62px; width: auto; margin-bottom: 1.15rem; filter: brightness(0) invert(1); opacity: .95; }
.site-footer__brand p { font-size: .9rem; max-width: 40ch; }
.site-footer ul { display: grid; gap: .6rem; font-size: .9rem; }
.site-footer__contact { display: grid; gap: .55rem; font-size: .9rem; }
.site-footer__contact strong { display: block; color: var(--blanco); font-size: .82rem; font-weight: 600; letter-spacing: .03em; }

.site-footer__bottom {
    margin-top: 3rem; padding-block: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
    justify-content: space-between; align-items: center;
    font-size: .82rem; color: rgba(255, 255, 255, .6);
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-2 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media print {
    .site-header, .site-footer, .mobile-nav, .btn-row, .cta-band { display: none !important; }
    body { color: #000; }
}
