/* ==========================================================================
   TRANSPORTES CFL — hoja de estilos del sitio público
   Sin frameworks: CSS propio para que la página cargue rápido.
   El estudio del rubro mostró que la lentitud es el error más común del sector
   (un competidor medía 10,4 s de LCP, cuando el umbral bueno es 2,5 s).
   ========================================================================== */

:root {
    --azul-900: #0b1220;
    --azul-800: #111c33;
    --azul-700: #1b2b4b;
    --acento: #f59e0b;
    --acento-oscuro: #b45309;
    --texto: #1f2937;
    --texto-suave: #4b5563;
    --borde: #e5e7eb;
    --fondo: #ffffff;
    --fondo-suave: #f8fafc;
    --sombra: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --radio: 14px;
    --ancho: 1160px;
    --transicion: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--texto);
    background: var(--fondo);
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--azul-700); text-decoration-color: rgba(27, 43, 75, .35); text-underline-offset: 3px; }
a:hover { color: var(--acento-oscuro); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.centrado { text-align: center; }
.oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Accesibilidad ---------------------------------------------------------- */
.saltar-contenido {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--azul-900); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.saltar-contenido:focus { left: 0; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 4px; }

/* Botones ---------------------------------------------------------------- */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
    transition: background var(--transicion), color var(--transicion), border-color var(--transicion);
    min-height: 44px;
}
.boton-grande { padding: 14px 26px; font-size: 1rem; }
.boton-primario { background: var(--acento); color: #1a1200; }
.boton-primario:hover { background: var(--acento-oscuro); color: #fff; }
.boton-wa { background: #25d366; color: #06301a; }
.boton-wa:hover { background: #1eb257; color: #04220f; }
.boton-fantasma { border-color: var(--borde); color: var(--texto); background: #fff; }
.boton-fantasma:hover { border-color: var(--azul-700); color: var(--azul-700); }
.boton-claro { background: #fff; color: var(--azul-900); }
.boton-claro:hover { background: var(--acento); color: #1a1200; }

/* Barra de administrador -------------------------------------------------- */
.barra-admin {
    background: var(--azul-900); color: #cbd5e1; font-size: .82rem;
    padding: 6px 20px; text-align: center;
}
.barra-admin a { color: var(--acento); }

/* Cabecera --------------------------------------------------------------- */
.cabecera {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--borde);
}
.cabecera-fila { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--azul-900); font-weight: 700; }
.marca-icono {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    background: var(--azul-900); color: var(--acento); font-size: .78rem; letter-spacing: .04em;
}
.marca-texto { font-size: 1.02rem; }

.menu { margin-left: auto; }
.menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
    display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none;
    color: var(--texto); font-size: .93rem; font-weight: 500;
}
.menu a:hover { background: var(--fondo-suave); }
.menu a[aria-current="page"] { color: var(--azul-900); font-weight: 700; background: var(--fondo-suave); }

.cabecera-acciones { display: flex; gap: 8px; align-items: center; }

.menu-boton { display: none; background: none; border: 1px solid var(--borde); border-radius: 8px; padding: 9px 12px; font: inherit; cursor: pointer; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; background: var(--azul-900); color: #fff; overflow: hidden; }
.hero-con-imagen .hero-fondo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .35;
}
.hero-contenido { position: relative; padding: 72px 20px 64px; max-width: 780px; }
.hero h1 { color: #fff; }
.hero-bajada { font-size: 1.12rem; color: #dbe3f0; max-width: 60ch; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-garantias {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin: 26px 0 0; padding: 0; color: #cbd5e1; font-size: .92rem;
}
.hero-garantias li::before { content: "✓"; color: var(--acento); margin-right: 7px; font-weight: 700; }

/* Secciones -------------------------------------------------------------- */
.seccion { padding: 60px 0; }
.seccion-suave { background: var(--fondo-suave); }
.seccion-oscura { background: var(--azul-800); color: #e2e8f0; }
.seccion-oscura h2 { color: #fff; }
.seccion-cotizar { background: var(--fondo-suave); }
.seccion-cierre { background: var(--azul-900); color: #e2e8f0; }
.seccion-cierre h2 { color: #fff; }

.encabezado-pagina { background: var(--fondo-suave); padding: 44px 0; border-bottom: 1px solid var(--borde); }
.encabezado-pagina p { color: var(--texto-suave); max-width: 70ch; }
.migas { font-size: .85rem; color: var(--texto-suave); margin-bottom: 10px; }
.migas a { color: var(--texto-suave); }
.contenido-largo { max-width: 800px; }

/* Pasos ------------------------------------------------------------------ */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pasos li { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); }
.paso-numero {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--acento); color: #1a1200; font-weight: 700; margin-bottom: 12px;
}

/* Contadores ------------------------------------------------------------- */
.contadores { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); text-align: center; }
.contadores strong { display: block; font-size: 2rem; color: var(--azul-900); line-height: 1.1; }
.contadores span { color: var(--texto-suave); font-size: .92rem; }

/* Rejillas y tarjetas ---------------------------------------------------- */
.rejilla { display: grid; gap: 22px; }
.rejilla-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tarjeta {
    background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
    padding: 22px; box-shadow: var(--sombra); display: flex; flex-direction: column;
}
.tarjeta h2, .tarjeta h3 { margin-bottom: .4em; }
.tarjeta h2 a, .tarjeta h3 a { text-decoration: none; color: var(--azul-900); }
.tarjeta h2 a:hover, .tarjeta h3 a:hover { color: var(--acento-oscuro); }
.tarjeta-imagen { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.tarjeta-enlace { margin-top: auto; margin-bottom: 0; font-weight: 600; font-size: .92rem; }

/* Listas ----------------------------------------------------------------- */
.lista-zonas, .lista-servicios { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lista-zonas li a, .lista-servicios li a {
    display: inline-block; padding: 7px 13px; border: 1px solid var(--borde);
    border-radius: 999px; background: #fff; text-decoration: none; font-size: .88rem;
}
.lista-zonas li a:hover, .lista-servicios li a:hover { border-color: var(--acento); background: #fffbeb; }
.etiqueta-zona { color: var(--texto-suave); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

/* Testimonios ------------------------------------------------------------ */
.testimonio { margin: 0; background: #fff; border: 1px solid var(--borde); border-left: 4px solid var(--acento); border-radius: 10px; padding: 20px; }
.testimonio p { font-style: italic; }
.testimonio footer { color: var(--texto-suave); font-size: .88rem; }

/* Acordeón (preguntas) --------------------------------------------------- */
.acordeon { display: grid; gap: 10px; max-width: 850px; }
.acordeon details { background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: 4px 18px; }
.acordeon summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: "+"; float: right; color: var(--acento-oscuro); font-weight: 700; }
.acordeon details[open] summary::after { content: "–"; }
.acordeon-cuerpo { padding-bottom: 16px; color: var(--texto-suave); }

/* Cierre y formulario ---------------------------------------------------- */
.cierre-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.formulario { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); color: var(--texto); }
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.campo input, .campo textarea, .campo select {
    width: 100%; padding: 11px 12px; border: 1px solid var(--borde); border-radius: 9px;
    font: inherit; color: var(--texto); background: #fff;
}
.campo input:focus, .campo textarea:focus { border-color: var(--acento); }
.campo-doble { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.ayuda { font-size: .82rem; color: var(--texto-suave); margin: 6px 0 0; }
.aviso { padding: 11px 14px; border-radius: 9px; font-size: .9rem; margin-bottom: 14px; }
.aviso-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.aviso-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.datos-contacto { list-style: none; padding: 0; }
.datos-contacto li { margin-bottom: 8px; }

/* Aviso interno para administradores ------------------------------------- */
.falta-contenido {
    background: #fffbeb; border: 1px dashed var(--acento-oscuro); color: #78350f;
    padding: 10px 14px; border-radius: 9px; font-size: .85rem; margin: 10px 0;
}
.falta-contenido code { background: #fff; padding: 1px 5px; border-radius: 4px; }

/* Pie -------------------------------------------------------------------- */
.pie { background: var(--azul-900); color: #cbd5e1; padding: 52px 0 20px; font-size: .93rem; }
.pie-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pie-titulo { color: #fff; font-size: 1rem; margin-bottom: .7em; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: 6px; }
.pie a { color: #cbd5e1; text-decoration: none; }
.pie a:hover { color: var(--acento); }
.pie-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-top: 18px; font-size: .85rem; color: #94a3b8; }

/* Botón flotante de WhatsApp --------------------------------------------- */
.boton-flotante-wa {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    display: inline-flex; align-items: center; gap: 9px;
    background: #25d366; color: #06301a; text-decoration: none; font-weight: 700;
    padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(6, 48, 26, .3);
}
.boton-flotante-wa:hover { background: #1eb257; color: #04220f; }

/* Adaptación a pantallas pequeñas ---------------------------------------- */
@media (max-width: 900px) {
    .menu-boton { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
    .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--borde); padding: 10px 20px 18px; margin: 0; }
    .menu.abierto { display: block; }
    .menu ul { flex-direction: column; }
    .menu a { padding: 12px 10px; }
    .cabecera-fila { position: relative; flex-wrap: wrap; }
    .cabecera-acciones { order: 3; width: 100%; padding-bottom: 12px; }
    .cabecera-acciones .boton { flex: 1; }
    .campo-doble { grid-template-columns: 1fr; }
    .boton-flotante-texto { display: none; }
    .boton-flotante-wa { padding: 14px; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
