/* Ruta de Anfitriones — landing */
:root {
    --tinta: #10324a; --tinta-suave: #4b6072; --verde: #198754; --verde-osc: #146c43; --celeste: #1d6fa5;
    --amarillo: #ffc107; --arena: #f6f8f3; --borde: #e3e9ef; --radio: 18px;
    --sombra: 0 10px 30px rgba(16, 50, 74, .10);
    --f-titulo: 'Poppins', system-ui, sans-serif; --f-texto: 'Inter', system-ui, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--f-texto); color: var(--tinta); background: #fff; overflow-x: hidden; }
h1, h2, h3, .ra-tit { font-family: var(--f-titulo); }
a { color: var(--celeste); }
.ra-hp { position: absolute; left: -5000px; }

/* Menú */
.ra-nav { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.ra-nav nav { min-height: 66px; }
.ra-marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinta); font-family: var(--f-titulo); font-size: 1.1rem; font-weight: 600; }
.ra-marca b { color: var(--verde); font-weight: 800; }
.ra-nav-links { gap: 1.4rem; }
.ra-nav-links a { color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ra-nav-links a:hover { color: var(--verde); }
.ra-idioma { display: flex; border: 1px solid var(--borde); border-radius: 999px; overflow: hidden; }
.ra-idioma a { padding: .25rem .65rem; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--tinta-suave); }
.ra-idioma a.activo { background: var(--tinta); color: #fff; }

/* Hero */
.ra-hero { position: relative; padding: 70px 0 90px; color: #fff; overflow: hidden; background: var(--tinta); }
.ra-hero-fotos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); opacity: .45; }
.ra-hero-fotos div { background: center/cover no-repeat; }
.ra-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, rgba(16,50,74,.97) 25%, rgba(16,50,74,.72) 60%, rgba(25,135,84,.55)); }
.ra-hero .container { z-index: 2; }
.ra-eyebrow { display: inline-flex; gap: .45rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; }
.ra-hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.05; letter-spacing: -.02em; margin: 1.1rem 0 1rem; }
.ra-hero h1 span { color: var(--amarillo); }
.ra-hero-sub { font-size: 1.15rem; opacity: .92; max-width: 600px; }
.ra-stats { display: flex; gap: 2rem; margin-top: 1.8rem; flex-wrap: wrap; }
.ra-stats div { display: flex; flex-direction: column; }
.ra-stats b { font-family: var(--f-titulo); font-size: 2.2rem; line-height: 1; color: var(--amarillo); }
.ra-stats span { font-size: .85rem; opacity: .85; }
.ra-buscador { background: #fff; color: var(--tinta); border-radius: 22px; padding: 1.6rem; box-shadow: 0 25px 60px rgba(0,0,0,.3); }

/* Secciones */
.ra-sec { padding: 80px 0; }
.ra-sec-arena { background: var(--arena); }
.ra-sec-oscura { background: linear-gradient(135deg, var(--tinta), #1d5c7a 60%, var(--verde)); color: #fff; }
.ra-tit { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.02em; }
.ra-sub { color: var(--tinta-suave); font-size: 1.05rem; max-width: 640px; }

/* Filtros */
.ra-filtros { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.ra-filtros button { border: 1.5px solid var(--tinta); background: #fff; color: var(--tinta); border-radius: 999px; padding: .3rem .9rem; font-weight: 600; font-size: .88rem; }
.ra-filtros button.activo { background: var(--tinta); color: #fff; }
.ra-solo { font-size: .88rem; margin-left: .4rem; display: inline-flex; gap: .35rem; align-items: center; }

/* Tarjetas */
.ra-card { height: 100%; display: flex; flex-direction: column; border-radius: var(--radio); overflow: hidden; background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra); transition: transform .18s ease, box-shadow .18s ease; }
.ra-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16,50,74,.16); }
.ra-card.destacada { border: 2px solid var(--amarillo); }
.ra-card-foto { position: relative; display: block; height: 210px; background: #dfe7ee center/cover no-repeat; }
.ra-card-foto .badge { position: absolute; top: 12px; left: 12px; font-size: .78rem; }
.ra-card-foto .ra-b2 { top: 40px; }
.ra-card-foto .ra-disp { left: auto; right: 12px; }
.ra-card-cuerpo { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.ra-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; }
.ra-card h3 a { color: var(--tinta); text-decoration: none; }
.ra-dato { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .85rem; color: var(--tinta-suave); }
.ra-zonas { font-size: .85rem; color: var(--tinta-suave); margin-top: .2rem; }
.ra-desc { font-size: .92rem; margin: .7rem 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ra-prob { font-size: .84rem; color: #b02a37; background: #fdecee; border-radius: 10px; padding: .55rem .7rem; margin-bottom: .8rem; }

/* Mapa */
.ra-mapa { height: 460px; border-radius: var(--radio); box-shadow: var(--sombra); z-index: 1; }
.ra-mapa-ruta { height: 320px; }
.ra-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.ra-pin span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: .75rem; }

/* Cómo funciona / por qué */
.ra-paso { position: relative; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 2rem 1.6rem; height: 100%; box-shadow: var(--sombra); }
.ra-paso .n { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--f-titulo); font-size: 3rem; font-weight: 800; color: #eef2f5; line-height: 1; }
.ra-paso > i { font-size: 2.2rem; color: var(--verde); }
.ra-paso h3 { font-size: 1.2rem; font-weight: 700; margin: .8rem 0 .4rem; }
.ra-paso p { color: var(--tinta-suave); margin: 0; }
.ra-pq { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radio); padding: 1.5rem; height: 100%; }
.ra-pq i { font-size: 2rem; color: var(--amarillo); }
.ra-pq h3 { font-size: 1.1rem; font-weight: 700; margin: .7rem 0 .3rem; color: #fff; }
.ra-pq p { margin: 0; opacity: .88; font-size: .95rem; }
.ra-agencias { background: linear-gradient(120deg, #0b2537, var(--celeste)); color: rgba(255,255,255,.92); border-radius: 26px; padding: 2.6rem; }
.ra-form { background: #fff; border-radius: 22px; padding: 2rem; box-shadow: var(--sombra); }
.accordion-button { font-weight: 600; }

/* Página de ruta */
.ra-ruta-cab { background-size: cover; background-position: center; color: #fff; padding: 46px 0 50px; }
.ra-ruta-cab h1 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .6rem 0; }
.ra-volver { color: #fff; text-decoration: none; font-weight: 600; opacity: .9; }
.ra-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ra-chips span { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .25rem .8rem; font-size: .88rem; }
.ra-ruta-desc { max-width: 760px; font-size: 1.05rem; opacity: .95; margin: 1rem 0 0; }
.ra-lateral { position: sticky; top: 86px; }
.ra-reserva-caja { background: #f3faf5; border: 1px solid #cfe8d8; border-radius: var(--radio); padding: 1.4rem; box-shadow: var(--sombra); }
.ra-timeline { position: relative; padding-left: 46px; }
.ra-timeline::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; border-left: 3px dashed #b9dcc6; }
.ra-parada { position: relative; margin-bottom: 1.4rem; }
.ra-num { position: absolute; left: -46px; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--verde); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff; }
.ra-parada.falla .ra-num { background: #dc3545; }
.ra-parada.falla .ra-parada-caja { border-color: #f1aeb5; }
.ra-parada-caja { border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; background: #fff; box-shadow: var(--sombra); }
.ra-parada-fotos { display: grid; gap: 3px; height: 220px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.ra-parada-fotos img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; display: block; }
.ra-parada-fotos img:first-child { grid-row: 1 / 3; }
.ra-parada-fotos.n1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.ra-parada-fotos.n1 img:first-child, .ra-parada-fotos.n2 img:first-child { grid-row: auto; }
.ra-parada-fotos.n2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.ra-nota { background: #fff8e6; border-left: 4px solid var(--amarillo); border-radius: 8px; padding: .5rem .75rem; font-size: .9rem; }
.ra-alt { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--borde); border-radius: 12px; padding: .4rem; margin-bottom: .35rem; background: #fff; }
.ra-alt img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.ra-mini { display: flex; flex-direction: column; text-decoration: none; color: var(--tinta); border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); box-shadow: var(--sombra); height: 100%; }
.ra-mini span { height: 140px; background: #dfe7ee center/cover; }
.ra-mini b { padding: .7rem .9rem 0; font-family: var(--f-titulo); }
.ra-mini small { padding: 0 .9rem .8rem; color: var(--tinta-suave); }

/* Pie */
.ra-pie { background: #0b2537; color: rgba(255,255,255,.85); padding: 50px 0 30px; }
.ra-pie a { color: rgba(255,255,255,.85); text-decoration: none; }
.ra-pie a:hover { color: #fff; }

@media (max-width: 991.98px) {
    .ra-lateral { position: static; }
    .ra-hero { padding: 40px 0 60px; }
    .ra-hero-fotos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .ra-sec { padding: 56px 0; }
    .ra-stats { gap: 1.2rem; }
    .ra-stats b { font-size: 1.7rem; }
    .ra-parada-fotos { height: 180px; }
    .ra-agencias, .ra-form { padding: 1.4rem; }
    .ra-marca span { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ra-card { transition: none; } }
