/* ==========================================================================
   Sitio público
   ========================================================================== */

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2rem); margin-inline: auto; }
@media (min-width: 720px) { .container, .container-narrow { width: min(1200px, 100% - 3rem); } .container-narrow { width: min(820px, 100% - 3rem); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1rem; }
.main-nav { margin-left: auto; display: none; align-items: center; gap: .15rem; }
.main-nav a { color: var(--text); text-decoration: none; padding: .5rem .75rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.main-nav .nav-track { margin-left: .5rem; }
.site-header .brand { flex-shrink: 0; }
/* el menú se ajusta al largo de los textos de cada idioma (ver app.js): primero se achica, después se pliega */
.site-header.nav-tight .main-nav a { padding-inline: .55rem; }
.site-header.nav-tight .nav-track span { display: none; }
.site-header.nav-compact .main-nav { display: none !important; }
.site-header.nav-compact .menu-toggle { display: inline-flex !important; }
.site-header.nav-compact .header-tools { margin-left: auto; }
.main-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.header-tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-shrink: 0; }
.site-header .brand { min-width: 0; }
.site-header .brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header .brand svg, .site-header .brand img { flex-shrink: 0; }
@media (max-width: 380px) { .site-header .container { gap: .5rem; } .header-tools { gap: 0; } }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; }
.lang-switch a { font-size: .75rem; font-weight: 700; text-transform: uppercase; text-decoration: none; color: var(--text-muted); padding: .3rem .55rem; border-radius: var(--radius); min-width: 34px; text-align: center; }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--bg); }
.menu-toggle { display: inline-flex; }
.mobile-langs { display: flex; gap: .5rem; margin-top: 1.5rem; }
.mobile-langs a { font-family: var(--font-body); font-size: 1rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem 1rem; justify-content: center; }
.mobile-langs a[aria-current="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 640px) {
  .header-tools .lang-switch { display: none; }
  .brand small { display: none; }
}
html, body { overflow-x: clip; }
.hero-grid > *, .detail-grid > *, .contact-grid > *, .map-explorer > *, .track-page > *, .track-band > *, .section-head > * { min-width: 0; }
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 1.25rem 2rem; }
  .today-band .item:last-child { margin-left: 0 !important; }
}
@media (min-width: 1000px) {
  .main-nav { display: flex; }
  .header-tools { margin-left: .5rem; }
  .menu-toggle { display: none; }
}
.mobile-nav:not(.mm) { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 499; padding: 1.5rem 1rem 2rem; overflow-y: auto; border-top: 1px solid var(--border); }
.mobile-nav:not(.mm) a { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 1.4rem; color: var(--text); text-decoration: none; }
.mobile-nav:not(.mm) .row { margin-top: 1.5rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { padding-top: 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.section.alt + .section { padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--text-muted); max-width: 60ch; font-size: 1.05rem; margin: 0; }
.section-head h2 { margin: 0; max-width: 22ch; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; }
}
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.hero h1 { overflow-wrap: break-word; font-size: clamp(2.1rem, 5.4vw, 4.1rem); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.hero-facts span { font-size: .85rem; color: var(--text-muted); }
.hero-visual { position: relative; }
.hero-visual .map, .hero-visual .hero-img { height: clamp(320px, 52vh, 520px); border-radius: var(--radius-lg); object-fit: cover; width: 100%; }
.port-card {
  position: absolute; left: -1rem; bottom: -1.5rem; width: min(360px, 92%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem 1.1rem .8rem; box-shadow: var(--shadow-lg); z-index: 5;
}
.port-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .6rem; }
.port-tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.port-tabs button { font: inherit; font-size: .78rem; font-weight: 700; padding: .25rem .55rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.port-tabs button small { font-size: .7rem; background: var(--surface-3); border-radius: var(--radius); padding: 0 .35rem; margin-left: .1rem; }
.port-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.port-tabs button[aria-selected="true"] small { background: color-mix(in srgb, var(--bg) 25%, transparent); }
.port-date { margin: .45rem 0 .2rem; font-size: .85rem; color: var(--text-muted); }
.port-ships { list-style: none; margin: 0; padding: 0; max-height: 210px; overflow-y: auto; }
.port-ships li { padding: .45rem 0; border-top: 1px solid var(--border); }
.port-ships li:first-child { border-top: 0; }
.port-ship-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.port-ship-head h3 { font-size: 1.1rem; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.port-ship-head .badge { flex-shrink: 0; }
.port-times { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .86rem; color: var(--text-muted); }
.port-times b { color: var(--text); }
.port-more { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.port-more:hover { text-decoration: underline; }
.hero-visual .leaflet-interactive { cursor: pointer; }
.hero-tip { font-size: .85rem; }
@media (max-width: 959px) { .port-card { left: .75rem; } }
@media (max-width: 600px) {
  .port-card { position: relative; left: auto; bottom: auto; width: auto; margin: -2.5rem .75rem 0; }
  .hero { padding-bottom: 2.5rem; }
}
.port-card .label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* ---------- Hoy ---------- */
.today-band { background: var(--text); color: var(--bg); }
.today-band .container { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; padding-block: 1.1rem; }
.today-band strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.today-band .item { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.today-band .muted { color: color-mix(in srgb, var(--bg) 70%, var(--text)); }
.today-band a { color: inherit; }

/* ---------- Tarjetas de recorrido ---------- */
.tour-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.tour-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s; position: relative; }
.tour-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tour-card .media { aspect-ratio: 16 / 10; position: relative; }
.tour-card .media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card .media .placeholder-img { width: 100%; height: 100%; }
.tour-card .tag { position: absolute; top: .8rem; left: .8rem; background: var(--surface); color: var(--text); font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--radius); display: inline-flex; gap: .35rem; align-items: center; }
.tour-card .body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.tour-card h3 { margin: 0; font-size: 1.3rem; }
.tour-card h3 a { color: var(--text); text-decoration: none; }
.tour-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tour-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.tour-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--text-muted); }
.tour-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.tour-foot { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.price small { font-family: var(--font-body); font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.times { display: flex; gap: .3rem; flex-wrap: wrap; }
.times span { font-size: .8rem; font-weight: 600; padding: .15rem .45rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }

/* ---------- Mapa de recorridos ---------- */
.map-explorer { --explorer-h: clamp(320px, 58vh, 480px); display: grid; gap: 1rem; }
@media (min-width: 960px) { .map-explorer { --explorer-h: clamp(420px, 66vh, 620px); grid-template-columns: 340px minmax(0, 1fr); gap: 1.5rem; } }
.map-explorer .map { height: var(--explorer-h); }
.explorer-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
@media (min-width: 960px) { .explorer-panel { height: var(--explorer-h); } }
/* sin «contain»: al llegar al final de la lista (o si no tiene más), el scroll sigue con la página */
.route-list { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-height: 0; overflow: auto; padding: 2px .25rem 2px 2px; }
@media (max-width: 959px) {
  .route-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: .5rem; }
  .route-list button { flex: 0 0 min(240px, 78%); scroll-snap-align: start; }
}
.route-list button {
  text-align: left; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: .2rem .75rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .9rem;
  color: var(--text); cursor: pointer; font: inherit; flex-shrink: 0; transition: border-color .15s, background .15s;
}
.route-list button:hover { border-color: var(--border-strong); }
.route-list button .dot { margin-top: .4rem; }
.route-list button strong { font-size: .98rem; overflow-wrap: anywhere; }
.route-list button small { grid-column: 2; color: var(--text-muted); }
.route-list button[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); background: var(--primary-soft); }

/* Detalle del recorrido: reemplaza a la lista en el mismo lugar */
.route-detail { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; animation: detail-in .22s ease; }
@media (max-width: 959px) { .route-detail { max-height: min(60vh, 460px); } }
.route-detail-head { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem .5rem .5rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.route-detail-head h3 { margin: 0; font-size: 1.15rem; min-width: 0; overflow-wrap: anywhere; }
.route-detail-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.15rem .25rem; }
.route-detail-body > p { margin: 0 0 .25rem; font-size: .94rem; }
.route-detail-foot { padding: .75rem 1rem; border-top: 1px solid var(--border); flex-shrink: 0; }
@keyframes detail-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Servicios ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--border); }
.service { padding: 1.6rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.service .icon-box { width: 44px; height: 44px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.service h3 { font-size: 1.1rem; margin: .1rem 0 .3rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.service p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- Llegada en crucero ---------- */
.arrival-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); counter-reset: st; }
.arrival-steps li { counter-increment: st; padding: 1.25rem 0 1.5rem; border-top: 2px solid var(--border); position: relative; min-width: 0; }
.arrival-steps li::before { content: counter(st, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; line-height: 1; color: var(--accent); margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
/* el tramo naranja arranca en el mismo borde que el número y mide lo mismo que él */
.arrival-steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 2.6rem; height: 2px; background: var(--accent); }
.arrival-steps h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin-bottom: .3rem; letter-spacing: 0; }
.arrival-steps p { margin: 0; color: var(--text-muted); font-size: .94rem; }

/* ---------- Lugares ---------- */
.place-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.place-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.place-card .media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: .75rem; }
.place-card .media img, .place-card .media .placeholder-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.place-card:hover .media img, .place-card:hover .media .placeholder-img { transform: scale(1.03); }
.place-card h3 { font-size: 1.15rem; margin: .15rem 0 .25rem; }
.place-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.place-card .cat { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.filter-bar { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; min-height: 38px; border-radius: var(--radius); border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; background: var(--surface); }
.chip[aria-current="true"], .chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Cruceros ---------- */
.calls { border-top: 1px solid var(--border); }
/* cada fila tiene aire a los costados: la fecha no queda pegada al borde (ni al resaltado de «hoy») */
.call { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .5rem 1rem; padding: 1rem clamp(.6rem, 2vw, 1.1rem); border-bottom: 1px solid var(--border); align-items: center; border-radius: var(--radius); }
@media (min-width: 760px) { .call { grid-template-columns: 68px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) 10.5rem; gap: 1.5rem; } }
.call > * { min-width: 0; }
.call .date { justify-self: start; width: 64px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); padding: .45rem .35rem .4rem; background: var(--surface); box-sizing: border-box; }
.call .date b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.call .date span { display: block; margin-top: .2rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call h3 { overflow-wrap: anywhere; }
.call .status { justify-self: start; }
@media (min-width: 760px) { .call .status { justify-self: end; } }
.call h3 { font-size: 1.15rem; margin: 0; }
.call .line { font-size: .88rem; color: var(--text-muted); }
.call .cell { font-size: .9rem; }
.call .cell small { display: block; color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
@media (max-width: 759px) { .call .cell, .call .status { grid-column: 2; } }
.call.is-cancelled h3 { text-decoration: line-through; color: var(--text-muted); }
.call.is-today { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); border-bottom-color: transparent; }
.call.is-today .date { border-color: var(--accent); }

/* ---------- Seguimiento QR (banda) ---------- */
.track-band { display: grid; gap: 2rem; align-items: center; background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); overflow: hidden; position: relative; }
@media (min-width: 860px) { .track-band { grid-template-columns: 1.3fr .7fr; } }
.track-band h2 { color: inherit; max-width: 20ch; }
.track-band p { opacity: .92; max-width: 55ch; }
.track-band .btn { --b-bg: var(--on-primary); --b-fg: var(--primary); --b-bd: var(--on-primary); }
.qr-art { width: 180px; height: 180px; background: #fff; border-radius: var(--radius); padding: 14px; justify-self: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: rotate(-3deg); }
.qr-art svg { width: 100%; height: 100%; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 1.25rem; color: var(--text-muted); max-width: 70ch; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.contact-list .icon { color: var(--primary); margin-top: .2rem; }
.contact-list a { color: var(--text); }
.hp { position: absolute; left: -9999px; }

/* ---------- Página de detalle ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.breadcrumb { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.detail-grid { display: grid; gap: 2.5rem; padding-bottom: 4rem; }
@media (min-width: 980px) { .detail-grid { grid-template-columns: 1fr 400px; gap: 3.5rem; align-items: start; } .detail-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.detail-hero { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: 2rem; }
.detail-hero img, .detail-hero .placeholder-img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0 2rem; }
.facts div { background: var(--surface); padding: .9rem 1rem; box-shadow: 0 0 0 .5px var(--border); }
.facts small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.facts strong { font-size: 1.02rem; }
.booking-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.booking-box h2 { font-size: 1.4rem; }
.pax-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.time-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.time-options label { position: relative; }
.time-options input { position: absolute; opacity: 0; }
.time-options span { display: inline-flex; flex-direction: column; align-items: center; min-width: 76px; padding: .45rem .7rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.time-options span small { font-weight: 500; font-size: .72rem; color: var(--text-muted); }
.time-options input:checked + span { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.time-options input:checked + span small { color: inherit; opacity: .85; }
.time-options input:focus-visible + span { box-shadow: var(--focus); }
.time-options input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Ticket de reserva ---------- */
.ticket { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ticket-head { background: var(--primary); color: var(--on-primary); padding: 1.5rem; }
.ticket-head h1 { font-size: 1.8rem; margin: .25rem 0 0; color: inherit; }
.ticket-ref { font-family: var(--font-mono); font-size: 1.3rem; letter-spacing: .08em; }
.ticket-body { padding: 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ticket-body small { display: block; color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ticket-cut { border-top: 2px dashed var(--border); margin: 0 1rem; }

/* ---------- Seguimiento en vivo ---------- */
.track-page { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-rows: auto 1fr; }
@media (min-width: 960px) { .track-page { grid-template-columns: 400px 1fr; grid-template-rows: none; } }
.track-panel { padding: 1.25rem; border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto; }
@media (min-width: 960px) { .track-panel { max-height: calc(100vh - var(--header-h)); } }
.track-map { position: relative; min-height: 55vh; }
.track-map .map { position: absolute; inset: 0; height: 100%; border-radius: 0; border: 0; }
.track-status { border-radius: var(--radius); padding: 1rem; margin: 1rem 0; background: var(--surface-2); }
.track-status h2 { font-size: 1.35rem; margin: .2rem 0; }
.track-status.live { background: var(--ok-soft); }
.track-status.boarding { background: var(--warn-soft); }
.track-status.waiting { background: var(--info-soft); }
.return-box { border: 2px solid var(--accent); border-radius: var(--radius); padding: .9rem 1rem; margin: 1rem 0; }
.return-box strong { font-family: var(--font-display); font-size: 1.6rem; display: block; color: var(--accent); }
.progress { height: 6px; background: var(--surface-3); border-radius: var(--radius); overflow: hidden; margin: .5rem 0; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: var(--radius); transition: width .6s; }
.scan-box { max-width: 520px; margin: 0 auto; }
#qr-reader { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border) !important; background: var(--surface); }
#qr-reader video { border-radius: var(--radius-lg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; font-size: .93rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--text-muted); font-size: .85rem; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(440px, 100%); }
.auth-card .card { padding: 2rem; }

/* ==========================================================================
   v1.1: reserva en 3 pasos, "Mi viaje", reportes, estados por hora
   ========================================================================== */
.book-step { display: flex; gap: .75rem; align-items: flex-start; padding-top: .9rem; margin-top: .4rem; border-top: 1px solid var(--border); }
.book-step:first-of-type { border-top: 0; padding-top: .2rem; }
.book-step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex-shrink: 0; margin-top: .1rem; }
.date-quick { display: flex; gap: .4rem; align-items: center; }
.date-quick input { flex: 1; min-width: 0; }
.date-quick .btn { min-height: 44px; }
.time-options label { animation: pop-in .3s ease both; }
.time-options .is-few span small { color: var(--accent); font-weight: 700; }
.time-options span { transition: background .15s, border-color .15s, transform .1s; }
.time-options label:active span { transform: scale(.96); }
.is-loading-slots { opacity: .5; transition: opacity .2s; }
.book-me { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .8rem; padding: .7rem .8rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.book-more { margin: 0 0 .4rem; }
.book-more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--primary); }

/* Acceso directo a "Mi viaje" */
.my-trip-btn { margin-right: .25rem; }
@media (max-width: 720px) { .my-trip-btn span { display: none; } .my-trip-btn { width: 44px; padding: 0; } }
.trip-bar { display: flex; align-items: center; gap: .8rem; max-width: var(--container, 1200px); margin: .75rem auto 0; width: calc(100% - 2rem); padding: .7rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; color: var(--text); animation: pop-in .4s ease; }
.trip-bar:hover { border-color: var(--primary); text-decoration: none; }
.trip-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.trip-bar-text > span { font-size: .86rem; color: var(--text-muted); }
.trip-bar-cta { font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; flex-shrink: 0; }
.trip-bar-text strong, .trip-bar-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .trip-bar-cta span { display: none; } }

/* Página "Mi viaje" */
.hub-head { padding: 2rem 0 1.25rem; }
.hub-head h1 { margin: .2rem 0 .4rem; }
.hub-when { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; color: var(--text-muted); }
.hub-when strong { color: var(--text); }
.hub-count { margin-left: .4rem; padding: .2rem .7rem; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .88rem; }
.hub-count.is-past { background: var(--surface-3); color: var(--text-muted); }
.hub-grid { display: grid; gap: 1.25rem; padding-bottom: 4rem; align-items: start; }
@media (min-width: 980px) { .hub-grid { grid-template-columns: minmax(0, 1fr) 360px; } .hub-aside { position: sticky; top: calc(var(--header-h) + 1rem); } }
.hub-h { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; letter-spacing: 0; }
.hub-done { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-radius: var(--radius-lg); background: var(--ok-soft); animation: pop-in .5s cubic-bezier(.2, .9, .3, 1.3); }
.hub-done strong { display: block; font-size: 1.15rem; }
.hub-done span { color: var(--text-muted); }
.check-anim { width: 52px; height: 52px; flex-shrink: 0; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check-anim circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease forwards; }
.check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Progreso por pasos: cada tramo une el centro de un círculo con el del anterior, sea cual sea la cantidad */
.hub-live-grid { display: grid; }
@media (min-width: 760px) { .hub-live-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.hub-live-info { padding: 1.25rem; }
.hub-live-map { min-height: 320px; position: relative; }
.hub-live-map .map { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; }
.track-status.cancelled { background: var(--danger-soft); }
.hub-ticket .ticket-ref { font-size: 1.1rem; }
.hub-actions { display: grid; gap: .5rem; }
.hub-more summary { cursor: pointer; font-weight: 600; margin-top: .6rem; }

/* Reportes */
.report-wrap { padding: 2rem 0 4rem; }
.report-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .report-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.report-status { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.thread { list-style: none; margin: 0; padding: 0; }
.thread li { padding: .8rem 1rem; border-radius: var(--radius); margin: .6rem 0; background: var(--surface-2); border-left: 3px solid var(--info); }
.thread li.is-reporter { border-left-color: var(--accent); }
.thread-meta { font-size: .84rem; margin-bottom: .3rem; color: var(--text-muted); }

/* Estados por hora en la portada */
.today-band .phase { display: inline-flex; align-items: center; gap: .35rem; }
.today-band .phase .dot { width: 8px; height: 8px; }
.phase-in_port .dot, .dot.phase-in_port { background: var(--ok); animation: pulse 1.8s infinite; }
.call.is-departed { opacity: .65; }

/* ==========================================================================
   v1.2: traslados particulares
   ========================================================================== */
.tr-how { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.tr-how li { display: flex; gap: .55rem; align-items: center; font-size: .94rem; color: var(--text-muted); max-width: 34ch; }
.tr-how span { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex-shrink: 0; }

.tr-layout { display: grid; gap: 1.5rem; padding-bottom: 4rem; align-items: start; }
.tr-layout > * { min-width: 0; }
@media (min-width: 980px) {
  .tr-layout { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
  .tr-map-wrap { position: sticky; top: calc(var(--header-h) + 1rem); }
}
.tr-map { height: clamp(320px, 52vh, 460px); }
@media (min-width: 980px) { .tr-map { height: calc(100vh - var(--header-h) - 2rem); max-height: 720px; } }
@media (max-width: 979px) { .tr-map-wrap { order: -1; } }
.tr-map-wrap { position: relative; }
.tr-map-hint { position: absolute; z-index: 500; left: 50%; top: .8rem; transform: translateX(-50%); margin: 0; background: var(--text); color: var(--bg); padding: .45rem .9rem; border-radius: var(--radius); font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg); white-space: nowrap; max-width: calc(100% - 1.5rem); overflow: hidden; text-overflow: ellipsis; }


/* Mi traslado */
.tr-hub-title { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.tr-hub-title span { min-width: 0; overflow-wrap: anywhere; }
.tr-hub-title .icon { color: var(--accent); }
.tr-hub-map { position: relative; }
.tr-hub-map .map { height: clamp(300px, 46vh, 460px); border: 0; border-radius: 0; }
.tr-eta { position: absolute; z-index: 500; left: .75rem; bottom: .75rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .6rem .9rem; display: grid; line-height: 1.2; }
.tr-eta small { color: var(--text-muted); font-size: .78rem; font-weight: 600; }
.tr-eta strong { font-family: var(--font-display); font-size: 1.5rem; }
.tr-eta span { font-size: .82rem; color: var(--text-muted); }
.tr-pin-card { text-align: center; border: 2px dashed var(--accent); }
.tr-pin-card small { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; color: var(--text-muted); }
.tr-pin-card strong { display: block; font: 600 2.6rem/1.15 var(--font-mono); letter-spacing: .35em; margin: .2rem 0 .4rem; padding-left: .35em; color: var(--accent); }
.tr-cancel summary { list-style: none; }
.tr-cancel summary::-webkit-details-marker { display: none; }

/* Sección de la portada */
.tr-band { display: grid; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 860px) { .tr-band { grid-template-columns: 1.3fr .7fr; } }
.tr-band h2 { max-width: 22ch; }
.tr-band .tr-how { margin-bottom: 1.5rem; }
.tr-band-art { position: relative; height: 160px; color: var(--primary); }
.tr-band-art svg { width: 100%; height: 100%; }
.tr-band-art .tr-mark { position: absolute; width: 34px; height: 34px; font-size: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.tr-band-art .tr-mark-a { left: 0; bottom: 0; }
.tr-band-art .tr-mark-b { right: 0; top: 0; }
@media (max-width: 859px) { .tr-band-art { display: none; } }

.track-eta { margin: .4rem 0; font-size: .92rem; }

/* ==========================================================================
   v1.3: reservas con fechas habilitadas, avisos al pasajero
   ========================================================================== */
.book-step > .grow { min-width: 0; }
.date-quick input { min-width: 8.5rem; }
.next-dates { display: flex; gap: .35rem; overflow-x: auto; padding: .1rem 0 .5rem; margin-bottom: .4rem; scrollbar-width: thin; }
.next-dates:empty { display: none; }
.date-chip { position: relative; flex: 0 0 auto; display: grid; justify-items: center; gap: 0; min-width: 52px; padding: .3rem .4rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; line-height: 1.1; }
.date-chip small { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.date-chip b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.date-chip span { font-size: .68rem; color: var(--text-muted); }
.date-chip i { color: var(--primary); line-height: 0; margin-top: .15rem; }
.date-chip:hover { border-color: var(--primary); }
.date-chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.date-chip.is-on small, .date-chip.is-on span, .date-chip.is-on i { color: inherit; opacity: .9; }
.book-status { display: flex; gap: .55rem; align-items: flex-start; padding: .6rem .75rem; border-radius: var(--radius-sm); margin: 0 0 .7rem; font-size: .9rem; }
.book-status p { margin: 0; }
.book-status .icon { flex-shrink: 0; margin-top: .1rem; }
.book-status.tone-ok { background: var(--ok-soft); color: var(--ok); }
.book-status.tone-ok p { color: var(--text); }
.book-status.tone-warn { background: var(--warn-soft); }
.book-status.tone-warn .icon { color: var(--warn); }
.book-next { display: block; margin-top: .25rem; font-weight: 600; }
button[type=submit]:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 440px) { .date-quick { flex-wrap: wrap; } .date-quick input { flex: 1 1 100%; } .date-quick .btn { flex: 1; } }

/* Traslados: datos ya conocidos y viaje vinculado */
.known { display: grid; gap: .45rem; margin-bottom: .7rem; }
.known-card { display: flex; gap: .65rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.known-card > .icon { color: var(--primary); flex-shrink: 0; }
.known-card { flex-wrap: wrap; }
.known-card .grow { min-width: 12rem; flex: 1; display: grid; }
.known-card [data-use] { margin-left: auto; }
.known-card small { overflow-wrap: anywhere; }
.known-card.is-on { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); background: var(--primary-soft); }
.known-card.is-on [data-use] { display: none; }
.known-tools { margin: 0; font-size: .86rem; color: var(--text-muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.tr-linked { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .8rem; border-radius: var(--radius); background: var(--ok-soft); margin-bottom: .7rem; }
.tr-linked p { margin: 0; display: grid; }
.tr-linked .icon { color: var(--ok); margin-top: .15rem; flex-shrink: 0; }
.tr-trip-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.tr-trip-presets .chip { cursor: pointer; font: inherit; font-size: .88rem; }
.tr-trip-presets .chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.hub-transfer { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .92rem; }
.hub-transfer:first-of-type { border-top: 0; }
.hub-transfer > span:first-child { display: grid; line-height: 1.15; }
.hub-transfer small { color: var(--text-muted); font-size: .76rem; }
.hub-transfers .btn { margin-top: .5rem; }

/* Mi cuenta: reportes (los solucionados quedan agrupados y fuera de los avisos) */
.acc-report-list { list-style: none; margin: 0 0 .8rem; padding: 0; }
.acc-report a { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; min-height: 44px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.acc-report a:hover .grow { color: var(--primary); }
.acc-report .grow { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.acc-report small { font-size: .78rem; }
.acc-done { margin: 0 0 .8rem; }
.acc-done summary { cursor: pointer; display: flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; color: var(--text-muted); list-style: none; }
.acc-done summary::-webkit-details-marker { display: none; }
.acc-done .acc-report a { opacity: .8; }

/* Reservas desde un lugar (hotel, local) */
.desk-banner { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; margin: 0 0 1rem; border-radius: var(--radius); background: var(--primary-soft); color: var(--text); font-size: .92rem; }
.desk-banner > .icon { color: var(--primary); flex-shrink: 0; }
.desk-banner p { margin: 0; flex: 1; min-width: 0; }
.desk-banner form { margin: 0; }
.desk-tour { position: relative; display: flex; flex-direction: column; }
.desk-tour > .tour-card { flex: 1; }
.desk-flag { position: absolute; z-index: 2; top: .7rem; right: .7rem; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: var(--radius); background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; box-shadow: var(--shadow); }
.desk-flag .icon { width: .9rem; height: .9rem; }
.desk-flag-open { background: var(--primary); }

/* Seguimiento: acceso del personal (el mismo QR abre su panel) */
.track-staff { margin: .9rem 0 0; font-size: .82rem; }
.track-staff a { color: var(--text-muted); }

/* ---------- Portada fuera de temporada: recorridos y traslados todo el año ---------- */
.hero-off h1 em { color: var(--accent); }
.off-panel { display: grid; gap: 1rem; min-width: 0; }
.off-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.off-card { display: grid; gap: .8rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.off-card h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin: 0; }
.off-card p { margin: .15rem 0 0; font-size: .92rem; }
.off-card-head { display: flex; gap: .8rem; align-items: center; }
.off-ico { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.off-card-tr { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; transition: border-color .15s, transform .15s; }
.off-card-tr .off-ico { background: var(--accent-soft); color: var(--accent); }
.off-card-tr:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 520px) { .off-card-tr { grid-template-columns: auto minmax(0, 1fr); } .off-card-tr .btn { grid-column: 1 / -1; justify-content: center; } }
.off-tours { list-style: none; margin: 0; padding: 0; display: grid; }
.off-tours li + li { border-top: 1px solid var(--border); }
.off-tours a { display: flex; align-items: center; gap: .65rem; padding: .6rem .2rem; color: var(--text); text-decoration: none; }
.off-tours a:hover strong { color: var(--primary); }
.off-tours .grow { display: grid; min-width: 0; }
.off-tours small { font-size: .82rem; }
.off-tours .icon:last-child { color: var(--text-muted); flex-shrink: 0; }
.off-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.off-price small { font-weight: 500; color: var(--text-muted); }
.off-more { font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }

/* Establecimientos */
.est-head { display: flex; gap: 1rem; align-items: center; }
.est-logo { width: 84px; height: 84px; object-fit: contain; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); padding: .4rem; flex-shrink: 0; }
@media (max-width: 520px) { .est-head { align-items: flex-start; } .est-logo { width: 60px; height: 60px; } }
.offer-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.offer-card { flex: 1 1 min(100%, 280px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.offer-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.offer-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.offer-body h3 { margin: 0; font-size: 1.12rem; }
.offer-body p { margin: 0; }
.offer-body .cat { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.offer-body .btn { margin-top: auto; align-self: flex-start; }
.offer-inc { list-style: none; margin: .2rem 0; padding: 0; font-size: .9rem; display: grid; gap: .15rem; }
.offer-facts { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; font-size: .9rem; margin: .3rem 0 .5rem !important; }
.offer-facts span { display: inline-flex; align-items: center; gap: .25rem; color: var(--text-muted); }

/* Accesos rápidos bajo el título (pedir, cómo llegar, llamar): lo que más se busca, sin bajar */
.quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.quick-actions .btn { min-height: 46px; }

/* Barra de acción del celular (partials/cta-bar): la acción principal siempre a mano */
.cta-bar { display: none; }
@media (max-width: 979px) {
  .cta-bar { display: flex; align-items: center; gap: .6rem; position: fixed; z-index: 400; left: 0; right: 0; bottom: 0; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgb(0 0 0 / .08); transition: transform .25s ease; }
  .cta-bar > .btn-accent { flex: 1; }
  .cta-bar .cta-note { display: flex; flex-direction: column; line-height: 1.15; font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
  .cta-bar .cta-note strong { font-size: 1.05rem; color: var(--text); }
  .cta-bar.is-away { transform: translateY(110%); }
  body:has(.cta-bar:not(.is-away)) .toast-stack { bottom: calc(5rem + env(safe-area-inset-bottom)); }
  body:has(.cta-bar) { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }

/* ---------- Directorio de establecimientos ---------- */
.est-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .9rem; }
.est-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 42px; padding: .35rem .5rem .35rem .9rem; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 .92rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.est-chip:not(:has(b)) { padding-right: .95rem; }
.est-chip .icon { width: 1.05em; height: 1.05em; color: hsl(var(--h, 200) 55% 45%); }
.est-chip b { min-width: 1.6rem; padding: .1rem .45rem; border-radius: var(--radius); background: var(--surface-2); font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.est-chip:hover { border-color: var(--text); text-decoration: none; }
.est-chip:active { transform: scale(.97); }
.est-chip:focus-visible { outline: 0; box-shadow: var(--focus); }
.est-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.est-chip[aria-pressed="true"] .icon { color: inherit; }
.est-chip[aria-pressed="true"] b { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.est-chip.is-smart { border-style: dashed; }
.est-chip.is-smart .icon { color: var(--accent); }
.est-chip.is-smart[aria-pressed="true"] { border-style: solid; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.est-chip.is-smart[aria-pressed="true"] .icon { color: inherit; }
.est-chips-sep { width: 1px; align-self: stretch; margin: .3rem .2rem; background: var(--border-strong); }
.est-count { margin: 0 0 1rem; color: var(--text-muted); font-size: .9rem; font-weight: 600; }
.est-map { height: 320px; margin-bottom: 1.75rem; border-radius: var(--radius-lg); }
@media (max-width: 640px) { .est-map { height: 220px; } .est-chips-sep { display: none; } }

.est-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.est-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.est-card[hidden] { display: none; }
.est-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); text-decoration: none; }
.est-card:focus-visible { outline: 0; box-shadow: var(--focus); }
.est-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.est-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.est-card:hover .est-media img { transform: scale(1.04); }
.est-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 20%, hsl(var(--h, 200) 55% 46%), hsl(calc(var(--h, 200) + 25) 50% 24%) 75%); }
.est-ph .icon { width: 3rem; height: 3rem; opacity: .9; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .25)); }
.est-badge, .est-deal { position: absolute; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: var(--radius); font-size: .75rem; font-weight: 700; line-height: 1.2; backdrop-filter: blur(6px); }
.est-badge { left: .65rem; top: .65rem; background: rgb(255 255 255 / .9); color: #14202a; }
.est-badge .icon { color: hsl(var(--h, 200) 55% 38%); }
.est-deal { right: .65rem; bottom: .65rem; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px rgb(0 0 0 / .2); }
.est-body { display: flex; flex-direction: column; gap: .35rem; padding: .95rem 1.05rem 1.05rem; flex: 1; }
.est-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.est-sum { margin: 0; color: var(--text-muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.est-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: auto 0 0; padding-top: .45rem; font-size: .82rem; color: var(--text-muted); }
.est-meta > span { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.est-meta .icon { color: var(--primary); flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .est-card, .est-media img, .est-chip { transition: none; } .est-card:hover { transform: none; } }

/* ==========================================================================
   v1.13: formularios de reserva y traslado más aireados, aviso de capacidad
   ========================================================================== */
.booking-box { padding: clamp(1.25rem, 3vw, 1.75rem); }
.booking-box > h2 { margin-bottom: .35rem; }
.booking-box > h2 + .muted { margin-bottom: 1.1rem; }
.book-step { gap: 1rem; padding-top: 1.35rem; margin-top: 1.1rem; }
.book-step:first-of-type { padding-top: .35rem; margin-top: .25rem; }
.book-step-n { width: 28px; height: 28px; margin-top: 0; }
.book-step .field:last-child, .book-step fieldset.field:last-child { margin-bottom: .2rem; }
.book-status { margin: .1rem 0 .9rem; }
.next-dates { gap: .45rem; padding: .15rem 0 .7rem; margin-bottom: .8rem; }
.date-quick { gap: .5rem; }
.time-options { gap: .6rem; }
.time-options span { min-width: 84px; padding: .55rem .8rem; gap: .1rem; }
.time-options .is-short span { border-color: var(--warn); }
.time-options .is-short span small { color: var(--warn); font-weight: 600; }
.pax-row { gap: 1rem; }
.book-cap { margin: -.3rem 0 1rem; padding: .65rem .8rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warn) 14%, transparent); border-left: 3px solid var(--warn); font-size: .88rem; line-height: 1.45; }
.book-more { margin: .2rem 0 .8rem; }
.book-more[open] summary { margin-bottom: .9rem; }
.booking-box .total-line { margin-top: 1rem; padding: 1.1rem 0; }
.tr-form .tr-points { gap: .5rem; margin-bottom: 1rem; }
.tr-form .tr-point { margin-bottom: .2rem; }
.tr-form .tr-quote { margin: .2rem 0 1.4rem; }
.tr-form .form-grid { gap: 0 1rem; }
.tr-form .tr-fare-rules { margin: -.2rem 0 1.25rem; }
.tr-form fieldset > legend { margin-bottom: .7rem !important; }
@media (max-width: 480px) { .book-step { gap: .7rem; } .booking-box { border-radius: var(--radius); } }

/* ---------- Opiniones (estilo Steam) y propinas ---------- */
.rev-page { max-width: 760px; padding-bottom: 3rem; }
.rev-card { display: grid; gap: .9rem; }
.rev-card-head { gap: .6rem; flex-wrap: wrap; }
.rev-card-head .hub-h { margin: 0; }
.rev-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rev-thumb { position: relative; cursor: pointer; }
.rev-thumb input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rev-thumb span { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px; padding: .6rem .8rem; border: 2px solid var(--border); border-radius: var(--radius-lg); font-weight: 600; text-align: center; background: var(--surface); transition: border-color .15s, background .15s, color .15s; }
.rev-thumb:hover span { border-color: var(--text-muted); }
.rev-yes input:checked + span { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.rev-no input:checked + span { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.rev-thumb input:focus-visible + span { box-shadow: var(--focus); }
.rev-reply { border-left: 3px solid var(--primary); padding: .4rem .8rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.rev-reply p { margin: .25rem 0 0; }
.rev-submit { position: sticky; bottom: 0; padding: .8rem 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.rev-submit .btn { width: 100%; }
.tip-rows { display: grid; gap: .55rem; }
.tip-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 6.5rem 8rem; gap: .5rem; align-items: center; }
.tip-who { display: flex; align-items: center; gap: .4rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .tip-row { grid-template-columns: 1fr 1fr 1fr; }
  .tip-who { grid-column: 1 / -1; }
}
/* resumen y lista en recorridos y establecimientos */
.rev-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; margin-bottom: .9rem; }
.rev-score { font-weight: 700; font-size: 1.15rem; }
.rev-score.ok { color: var(--ok); } .rev-score.warn { color: var(--warn); } .rev-score.danger { color: var(--danger); }
.rev-bar { flex-basis: 100%; height: 6px; border-radius: var(--radius); background: var(--danger-soft); overflow: hidden; }
.rev-bar > i { display: block; height: 100%; background: var(--ok); }
.rev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.rev-item { border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; }
.rev-item-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .92rem; }
.rev-item-head .yes { color: var(--ok); font-weight: 700; } .rev-item-head .no { color: var(--danger); font-weight: 700; }
.rev-item p { margin: .45rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.rev-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; }
.rev-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rev-cta .grow { min-width: 12rem; }
/* traslado en varios vehículos */
.tr-group-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tr-group-list li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); }
.tr-group-list li.is-this { border-color: var(--primary); background: var(--primary-soft); }
.tr-group-list li.is-off { opacity: .6; }
.tr-group-list .grow { min-width: 10rem; }
.tr-group-pin { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; padding: .2rem .6rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.tr-group-pin small { font-size: .7rem; color: var(--text-muted); }
.tr-group-pin strong { font-size: 1.15rem; letter-spacing: .08em; }

/* Reserva de recorrido: la tira de días es la forma principal de elegir; «Otra fecha» queda como escape */
.date-other { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-size: .9rem; }
.date-other label { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; margin: 0; }
.date-other input { flex: 1; min-width: 0; min-height: 40px; }
.book-meet { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin: .3rem 0 0; font-size: .88rem; color: var(--text-muted); }
.book-meet strong { color: var(--text); font-weight: 600; }

/* ---------- Portada genérica: «Quiénes somos» y llamado a la acción ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .about-grid.has-img { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.about-img { width: 100%; height: clamp(240px, 40vh, 420px); object-fit: cover; border-radius: var(--radius-lg); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--primary); color: var(--on-primary); }
.cta-band h2 { margin: 0 0 .4rem; color: inherit; }
.cta-band h2 em { color: inherit; }
.cta-band p { margin: 0; opacity: .9; max-width: 55ch; }

/* ------------------------------------------------------------------ */
/* Esqueletos de carga (skeleton.js)                                    */
/* ------------------------------------------------------------------ */
:root { --sk-a: color-mix(in srgb, var(--text) 7%, transparent); --sk-b: color-mix(in srgb, var(--text) 14%, transparent); }
.sk, .sk-img, .mv-map:empty, .acc-public.is-loading, .cal-fc.is-loading .fc-daygrid-day-frame::after, .cal-side.is-loading::after, .ltv-sk {
  background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%) 0 0 / 300% 100%;
  animation: sk-shine 1.5s ease-in-out infinite;
}
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk, .sk-img, .mv-map:empty, .acc-public.is-loading, .cal-fc.is-loading .fc-daygrid-day-frame::after, .cal-side.is-loading::after, .ltv-sk { animation: none; } }
.sk { border-radius: var(--radius); }
main.is-skel > :not(.page-skel) { display: none !important; }
.page-skel { animation: sk-in .25s ease both; padding-bottom: 4rem; }
@keyframes sk-in { from { opacity: 0; } to { opacity: 1; } }
.sk-body { padding-top: 2rem; display: grid; gap: 1.25rem; }
.sk-head { display: grid; gap: .7rem; }
.sk-line { height: .85rem; width: 100%; }
.sk-line + .sk-line { margin-top: .55rem; }
.sk-h { height: 1.1rem; margin-bottom: .9rem; }
.sk-kicker { height: .8rem; }
.sk-title { height: 2.4rem; }
.sk-hero { padding: 4rem 0 3rem; background: color-mix(in srgb, var(--text) 4%, transparent); border-bottom: 1px solid var(--border); }
.sk-hero .container { display: grid; gap: .9rem; }
.sk-hero-low { padding: 0; height: 9rem; }
.sk-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.sk-pad { padding: 1.1rem 1.2rem; }
.sk-img-box { height: 9rem; border-radius: 0; }
.sk-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.sk-grid2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.sk-stack { display: grid; gap: 1.25rem; align-content: start; }
.sk-cols { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1000px) { .sk-cols { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); } }
.sk-tabs { display: flex; gap: .5rem; padding: .4rem; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sk-tab { height: 2.2rem; width: 7.5rem; flex: none; }
.sk-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.sk-chip { height: 2.1rem; width: 6.5rem; }
.sk-map { height: 180px; margin-top: 1rem; }
.sk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.sk-cell { aspect-ratio: 1 / .8; border-radius: calc(var(--radius) * .6); }
.sk-row { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; }
.sk-row + .sk-row { border-top: 1px solid var(--border); }
.sk-row .grow { flex: 1; min-width: 0; }
.sk-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.sk-num { width: 1.6rem; height: 1rem; flex: none; }
.sk-avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none; }
.sk-avatar-xl { width: 6rem; height: 6rem; }
.sk-pill { width: 3.5rem; height: 1.4rem; flex: none; }
.sk-profile { margin-top: -3rem; }
.sk-prof-head { display: flex; align-items: flex-end; gap: 1rem; }
.sk-prof-head .grow { flex: 1; }
.sk-kpis { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
/* imágenes diferidas: brillo hasta que llegan */
img.sk-img { color: transparent; }
/* mapa: hasta que carga Leaflet */
.mv-map:empty { border-color: var(--border); }
/* «Mi cuenta» › perfil público embebido */
.acc-public.is-loading iframe { opacity: 0; }
.acc-public iframe { transition: opacity .25s; }
/* calendario: mientras llegan los eventos del mes */
.cal-fc.is-loading .fc-daygrid-day-frame { position: relative; }
.cal-fc.is-loading .fc-daygrid-day-frame::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: .55rem; border-radius: var(--radius); pointer-events: none; }
.cal-side { position: relative; }
.cal-side.is-loading [data-cal-side] { visibility: hidden; }
.cal-side.is-loading::after { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 4rem; height: 10rem; border-radius: var(--radius);
  -webkit-mask: repeating-linear-gradient(#000 0 2.4rem, transparent 2.4rem 3.2rem); mask: repeating-linear-gradient(#000 0 2.4rem, transparent 2.4rem 3.2rem); }
/* En Vivo: hasta el primer dibujo */
.ltv-sk { border-radius: var(--radius-lg); min-height: 11rem; }
.ltv-kpis .ltv-sk { min-height: 4.5rem; border-radius: var(--radius); }
