/* ===== Portada en feed vertical (tarjetas por destino) ===== */
:root{--fy:#ffc928;--fy2:#ffd84d;--fb:#1b53c9;--fn:#0e2a82}
body:has(#home:not([hidden])){padding:0}
body:has(#home[hidden]) #feedroot,body:has(#home[hidden]) .feed-seo{display:none}
body:has(#home:not([hidden])) .pf{margin:48px 0 0;width:auto}                    /* la portada no tiene margen del cuerpo: el pie azul ocupa todo el ancho */
#home{display:none!important}
html:has(#home:not([hidden])){scroll-snap-type:y mandatory}
#feedroot{position:relative;background:#0b1f63;color:#fff;font-family:var(--f-body)}
.fcol{position:relative;width:100%;margin:0 auto}
.fc{scroll-margin-top:0;position:relative;height:100vh;height:100svh;height:100dvh;min-height:520px;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always;background:#0b1f63}
.fm{position:absolute;inset:0;background:linear-gradient(160deg,#1b53c9,#0e2a82) center/cover no-repeat;transform-origin:50% 60%}
.fm.kb{animation:fkb 16s ease-in-out infinite alternate}
@keyframes fkb{from{transform:scale(1)}to{transform:scale(1.08)}}
.fm video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .12s}.fm video.on{opacity:1}
.fshade{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(6,14,40,.62) 0,rgba(6,14,40,0) 24%,rgba(6,14,40,0) 46%,rgba(6,14,40,.9) 100%);pointer-events:none}
.finfo{position:absolute;left:18px;right:76px;bottom:62px;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.fp{display:inline-flex;align-items:center;gap:8px;background:var(--fy);color:#161d26;border:0;border-radius:30px;padding:10px 18px;font:700 1.25rem/1.1 var(--f-display);box-shadow:0 5px 0 #d9a000;cursor:pointer;min-height:46px}
.fp span{font:600 .88rem var(--f-body)}
.fp:active{transform:translateY(2px);box-shadow:0 3px 0 #d9a000}
.fc .fc-t{font-family:var(--f-display);font-weight:800;font-size:clamp(1.9rem,9vw,2.4rem);line-height:1.05;letter-spacing:-.01em;margin:16px 0 8px;text-wrap:balance}
.fc .fc-t a{color:#fff;text-decoration:none}
.fd{margin:0;font-size:.98rem;line-height:1.35;color:#eaf0ff;text-shadow:0 1px 8px rgba(0,0,0,.5)}
/* barra superior */
.ftop{position:fixed;z-index:20;top:0;left:0;right:0;padding:14px 14px 0;display:flex;flex-direction:column;gap:12px;pointer-events:none}
.ftop>*{pointer-events:auto}
.fchips{display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.fchips::-webkit-scrollbar{display:none}
.fchip{flex:none;font:600 .95rem var(--f-body);padding:10px 17px;border-radius:30px;border:0;background:rgba(10,20,50,.72);color:#fff;cursor:pointer;min-height:42px;white-space:nowrap}
.fchip[aria-current="true"]{background:var(--fy);color:#161d26}
.fbar{display:flex;align-items:center;gap:7px}
.fib{flex:none;width:42px;height:42px;border-radius:13px;border:0;background:rgba(10,20,50,.72);color:#fff;display:grid;place-items:center;cursor:pointer}
.fhost{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:7px}
.farr{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.95);color:#161d26;font-size:21px;line-height:1;padding:0 0 3px;cursor:pointer;display:grid;place-items:center}
.farr:disabled{opacity:.4;cursor:default}
.fdate{flex:1;min-width:0;height:42px;border-radius:30px;border:0;background:rgba(255,255,255,.95);color:#161d26;font:600 .9rem var(--f-body);display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;white-space:nowrap;padding:0 6px}
.fhor{flex:none;height:42px;padding:0 16px;border-radius:30px;border:0;background:var(--fb);color:#fff;font:600 .95rem var(--f-body);cursor:pointer;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.fhost .cal,.fsel .cal{left:50%;transform:translateX(-50%);top:calc(100% + 8px);color:var(--fg);text-align:left;z-index:60}
/* acciones laterales */
.fsoc{position:fixed;z-index:15;right:12px;bottom:200px;display:flex;flex-direction:column;gap:18px;align-items:center}
.fsoc button{background:none;border:0;color:#fff;font:600 .75rem var(--f-body);display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;text-shadow:0 1px 6px rgba(0,0,0,.6);min-width:48px;min-height:48px;justify-content:center}
.fsoc svg{filter:drop-shadow(0 1px 4px rgba(0,0,0,.5))}
.fsoc .on svg path{fill:#ff4d6a;stroke:#ff4d6a}
.fhint{position:fixed;z-index:15;left:50%;bottom:16px;transform:translateX(-50%);background:rgba(10,20,50,.7);color:#fff;border-radius:20px;padding:7px 16px;font-size:.8rem;white-space:nowrap;pointer-events:none;transition:opacity .3s}
.fhint.off{opacity:0}
/* panel de horarios */
.fdrawer{position:fixed;z-index:40;top:0;right:0;bottom:0;width:min(330px,86vw);background:rgba(8,22,80,.36);color:#fff;padding:20px 16px;overflow-y:auto;border-left:1px solid rgba(255,255,255,.14);transform:translateX(105%);transition:transform .28s ease;visibility:hidden}
.fdrawer.open{transform:none;visibility:visible}
.fdim{position:fixed;z-index:39;inset:0;background:rgba(5,10,30,.15);display:none}
.fdim.on{display:block}
.fdh{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:6px}
.fdh .fdt{font:800 1.35rem/1.1 var(--f-display);margin:0;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.fdx{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:20px;cursor:pointer}
.fds{font-size:.82rem;color:#e0e8ff;margin:0 0 14px;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.fsel{position:relative;display:flex;gap:8px;align-items:center;margin-bottom:16px}
.fsel .fdate{font-size:.88rem}
.fsal{background:rgba(255,255,255,.9);color:#161d26;border-radius:16px;padding:11px 12px;margin-bottom:9px;display:flex;align-items:center;gap:10px}
.fsal .ft{font:800 1.3rem/1 var(--f-display);font-variant-numeric:tabular-nums;white-space:nowrap}
.fsal .fe{font-size:.74rem;color:#5b6784;margin-top:3px}
.fsal .fpr{margin-left:auto;text-align:right;font-weight:700;font-size:1rem;font-variant-numeric:tabular-nums}
.fsal .fpr small{display:block;font-weight:500;color:#5b6784;font-size:.7rem}
.fsal button{flex:none;background:var(--fy);color:#161d26;border:0;border-radius:11px;padding:9px 12px;font:700 .85rem var(--f-body);cursor:pointer;min-height:40px}
.fnota{color:#fff;font-size:.8rem;font-weight:600;text-align:center;padding:2px 0 8px;opacity:.9;animation:fnota 1.2s ease-in-out infinite alternate}
@keyframes fnota{from{opacity:.55}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.fnota{animation:none}}
.fvacio{background:rgba(255,255,255,.9);color:#161d26;border-radius:14px;padding:14px;font-size:.92rem}
.fvacio button{margin-top:10px;background:var(--fy);border:0;border-radius:10px;padding:9px 14px;font:700 .85rem var(--f-body);cursor:pointer}
.fnota{font-size:.72rem;color:#e0e8ff;margin-top:6px}
/* índice de destinos */
.fidx{position:fixed;z-index:50;inset:0;background:#f6f8fd;color:#161d26;overflow-y:auto;display:none;padding:18px 16px 40px}
.fidx.on{display:block}
.fidx-in{max-width:760px;margin:0 auto}
.fidx .fidt{font:800 1.6rem var(--f-display);color:var(--fn);margin:0}
.fidx-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.fidx .fdx{background:#e1e8f7;color:#161d26}
.fsch{margin:12px 0;width:100%;height:46px;border-radius:14px;border:2px solid #d5deef;background:#fff;padding:0 14px;font:inherit;font-size:1rem;color:#161d26}
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.ftile{position:relative;height:122px;border-radius:16px;overflow:hidden;border:0;padding:0;background:linear-gradient(150deg,#1b53c9,#0e2a82) center/cover;cursor:pointer;text-align:left;color:#fff}
.ftile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(6,14,40,.82),rgba(6,14,40,.05) 62%)}
.ftile b,.ftile small{position:absolute;left:11px;z-index:1}
.ftile b{bottom:20px;font:800 1rem/1.1 var(--f-display);right:8px}
.ftile small{bottom:6px;color:var(--fy2);font-weight:600;font-size:.76rem}
.ftoast{position:fixed;z-index:70;left:50%;bottom:70px;transform:translateX(-50%);background:#161d26;color:#fff;border-radius:20px;padding:9px 16px;font-size:.85rem;display:none}
.ftoast.on{display:block}
/* sección de contenido para Google (debajo del feed) */
.feed-seo{background:#fff;color:var(--fg);padding:30px 0 6px}
.feed-seo>div{width:min(920px,calc(100% - 32px));margin-inline:auto}
.feed-seo h1{font-size:clamp(1.8rem,7vw,2.6rem)}
.feed-seo .lead{margin:10px 0 0;max-width:62ch}
.feed-seo .sec{margin-top:30px}
.fbg,.fleft{display:none}
.fr-out .ftop,.fr-out .fsoc,.fr-out .fhint,.fr-out .fdrawer,.fr-out .fdim,.fr-out .fleft,.fr-out .fbg{display:none!important}
@media(prefers-reduced-motion:reduce){.fm.kb{animation:none}.fdrawer{transition:none}}
/* escritorio: marca a la izquierda, feed al centro, horarios a la derecha */
@media(min-width:1240px) and (min-height:640px){
  #feedroot{background:#0a1a55}
  .fbg{display:block;position:fixed;z-index:0;inset:-40px;background:center/cover;filter:blur(32px) brightness(.42);transition:background-image .4s}
  .fcol{width:430px;z-index:1;box-shadow:0 0 0 1px rgba(255,255,255,.1)}
  .fc{height:calc(100vh - 36px);height:calc(100svh - 36px);height:calc(100dvh - 36px);margin-top:0;border-radius:0}
  .fcol{padding:18px 0}
  .fc{border-radius:24px;margin-bottom:18px}
  .fcol .fc:last-child{margin-bottom:0}
  .ftop{left:calc(50% - 215px);right:auto;width:430px;top:18px;padding:14px 14px 0}
  .fsoc{right:calc(50% - 215px + 12px)}
  .fhint{left:calc(50% - 0px)}
  .fleft{display:block;position:fixed;z-index:5;left:max(32px,calc(50% - 215px - 380px));top:56px;width:310px;color:#fff}
  .fleft .flogo{display:block;background:#fff;border-radius:22px;padding:14px 20px;width:220px;box-shadow:0 14px 30px rgba(0,0,0,.35)}
  .fleft .flogo img{display:block;width:100%;height:auto}
  .fleft p.ft1{font:800 2.3rem/1.05 var(--f-display);margin:26px 0 20px;letter-spacing:-.01em}
  .fleft p.ft1 em{font-style:normal;color:var(--fy2)}
  .fleft ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;font-size:1.05rem}
  .fleft li{display:flex;gap:11px;align-items:center}
  .fleft li i{flex:none;width:28px;height:28px;border-radius:50%;background:var(--fy);color:#161d26;font-style:normal;font-weight:800;display:grid;place-items:center;font-size:.9rem}
  /* panel de horarios siempre visible */
  .fdrawer{left:calc(50% + 239px);right:auto;top:18px;bottom:18px;width:360px;border-radius:24px;border:1px solid rgba(255,255,255,.18);transform:none;visibility:visible;background:rgba(8,22,80,.46)}
  .fdx,.fdim{display:none!important}
  .fhor{display:none}
  .fsoc{bottom:170px}
}

/* modo clásico (?clasico=1): vuelve el buscador de siempre */
html.clasico #feedroot,html.clasico .feed-seo{display:none!important}
html.clasico #home:not([hidden]){display:flex!important}
html.clasico body:has(#home:not([hidden])){padding:24px 16px 40px}
.fc .fc-t a:focus-visible,.fchip:focus-visible,.fp:focus-visible,.fib:focus-visible,.farr:focus-visible,.fdate:focus-visible,.fhor:focus-visible{outline:3px solid #fff;outline-offset:2px}
.fsoc a{color:#fff;text-decoration:none;font:600 .75rem var(--f-body);display:flex;flex-direction:column;align-items:center;gap:3px;text-shadow:0 1px 6px rgba(0,0,0,.6);min-width:48px;min-height:48px;justify-content:center}
.fsoc button span,.fsoc a span{font-size:.75rem}
.fdrawer .flist{display:flex;flex-direction:column}
.fsal-top{display:flex;flex-direction:column}
/* tableta: columna centrada, panel de horarios encima */
@media(min-width:700px) and (max-width:1239px){
  .fcol{width:min(480px,100%)}
  .fc{border-radius:0}
  .ftop{left:calc(50% - 240px);right:auto;width:480px}
  .fsoc{right:calc(50% - 240px + 12px)}
  .fbg{display:block;position:fixed;z-index:0;inset:-40px;background:center/cover;filter:blur(32px) brightness(.42)}
  .fcol{z-index:1}
}

.dr-open .ftop,.dr-open .fsoc,.dr-open .fhint{visibility:hidden}
.fdrawer .fsel .cal{left:0;right:0;transform:none;width:auto;max-width:100%}
.fsal .fpr small{white-space:nowrap}
@media(min-width:1240px) and (min-height:640px){.dr-open .ftop,.dr-open .fsoc{visibility:visible}}
.feed-seo .otros a small{margin-left:8px;color:var(--muted);font-size:.8rem}
@media(min-width:1240px) and (min-height:640px){.fc{scroll-margin-top:18px}}

.feed-seo,body:has(#home:not([hidden])) .pf{scroll-snap-align:start}

.fc{scroll-snap-stop:always}
.feed-seo{scroll-snap-align:start}
body:has(#home:not([hidden])) .pf{scroll-snap-align:end}

.fchips{cursor:grab;user-select:none;-webkit-user-select:none}
.fchips.drag{cursor:grabbing}.fchips.drag .fchip{pointer-events:none}
.fchip{cursor:pointer}

html.dr-lock{overflow:hidden}
.fdrawer{overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.fdim{touch-action:none}
@media(min-width:1240px) and (min-height:640px){html.dr-lock{overflow:visible}}

.fidx{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* v67: la ruta va debajo de la barra de arriba; precio y próxima salida abajo donde estaban; sin efectos de espera */
.finfo{inset:0;left:0;right:0;bottom:0;padding:0 76px 62px 18px;justify-content:flex-end;pointer-events:none}
.finfo .fp,.finfo .fd,.finfo .fc-t a{pointer-events:auto}
.finfo .fp{order:1}.finfo .fd{order:2;margin-top:10px}
.fc .fc-t{position:absolute;left:18px;right:70px;top:calc(env(safe-area-inset-top,0px) + 126px);margin:0;font-size:clamp(2rem,9.6vw,2.5rem);text-shadow:0 2px 14px rgba(0,0,0,.45)}
.fshade{background:linear-gradient(to bottom,rgba(6,14,40,.7) 0,rgba(6,14,40,.28) 30%,rgba(6,14,40,0) 44%,rgba(6,14,40,0) 58%,rgba(6,14,40,.9) 100%)}
@media(min-width:1240px) and (min-height:640px){.fc .fc-t{top:144px}}
