/* Escapadas Cortas · diseño Tablón (versión definitiva de la maqueta).
   Claro, azul señal, datos en mono, destinos como filas de un tablón de salidas, fotos como protagonistas. */
:root {
  --bg: #F1F4F6; --surface: #FFFFFF; --ink: #10222B; --muted: #4F6670; --line: #D3DCE1;
  --accent: #17688F; --accent-ink: #FFFFFF; --cut: #B3261E;
  --coral: #E9695C; /* solo para acentos gráficos (pin, marcadores); nunca para texto */
  --board: #0E1B22; --board-fg: #E7D8AE; --board-muted: #A9BDC6; --board-line: #24373F; /* arena del logo sobre fondo oscuro */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0B161C; --surface: #12222B; --ink: #E8EFF2; --muted: #9DB2BC; --line: #263741; --accent: #79BCE0; --accent-ink: #0B161C; --cut: #FF8A80; --coral: #FF7F70; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0B161C; --surface: #12222B; --ink: #E8EFF2; --muted: #9DB2BC; --line: #263741; --accent: #79BCE0; --accent-ink: #0B161C; --cut: #FF8A80; --coral: #FF7F70; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; letter-spacing: -.02em; margin: 0; }

.mock { background: var(--ink); color: var(--bg); font: 500 12px/1.4 var(--f-mono); padding-block: 8px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; max-width: 100%; }
nav.main { display: flex; gap: 6px 20px; font: 500 14px/1 var(--f-body); flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--muted); padding-block: 6px; }
nav.main a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* portada */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 44px 28px; }
@media (min-width: 900px) { .hero { padding-block: 64px 36px; } }
.hero-txt { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.02; font-weight: 800; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; margin-top: .15em; }
.hero p.lead { margin: 20px 0 0; max-width: 46ch; color: var(--muted); font-size: 1.05rem; }
.hero-tira { position: relative; z-index: 1; margin-top: 34px; }

/* Fondo animado del banner: el símbolo del logo en línea fina y translúcido */
.hero-bg { position: absolute; z-index: 0; right: -6%; top: 10px; width: min(940px, 84%); height: auto; opacity: .2; pointer-events: none; color: var(--accent); }
@media (max-width: 700px) { .hero-bg { width: 150%; right: -45%; top: 120px; opacity: .13; } }
.hero-bg * { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero-bg .hb-borde { stroke-width: 5; }
.hero-bg .hb-costa { stroke-width: 5; }
.hero-bg .hb-nivel { stroke-width: 3; stroke-dasharray: 16 14; animation: hb-flujo 18s linear infinite; }
.hero-bg .hb-pliegue { stroke-width: 3; opacity: .6; }
.hero-bg .hb-caja { stroke-width: 5; }
.hero-bg .hb-linea { stroke-width: 6; opacity: .7; }
.hero-bg .hb-ruta { stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hb-ruta 8s ease-in-out infinite; }
.hero-bg .hb-check { stroke: var(--coral); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hb-check 8s ease-in-out infinite; }
.hero-bg .hb-pin path, .hero-bg .hb-pin circle { fill: var(--coral); stroke: none; }
.hero-bg .hb-pin circle { fill: var(--bg); }
.hero-bg .hb-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: hb-pin 8s ease-in-out infinite; }
@keyframes hb-flujo { to { stroke-dashoffset: -300; } }
@keyframes hb-ruta { 0% { stroke-dashoffset: 1; opacity: 1; } 55% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hb-check { 0%, 6% { stroke-dashoffset: 1; opacity: 1; } 16% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hb-pin { 0%, 52% { opacity: 0; transform: translateY(-26px); } 62% { opacity: 1; transform: translateY(0); } 67% { transform: translateY(-7px); } 72% { transform: translateY(0); } 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg .hb-nivel { animation: none; }
  .hero-bg .hb-ruta, .hero-bg .hb-check { animation: none; stroke-dashoffset: 0; }
  .hero-bg .hb-pin { animation: none; opacity: 1; }
}

/* Tira horizontal de destinos: scroll lateral, fondo transparente */
.tira-cab { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 12px/1.4 var(--f-mono); color: var(--muted); margin-bottom: 8px; }
.tira-cab .desliza { color: var(--accent); }
.tira { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding: 4px 2px 14px; background: transparent; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.tira::-webkit-scrollbar { height: 6px; }
.tira::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
.tira::-webkit-scrollbar-track { background: transparent; }
.ficha { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; min-width: 250px; border: 1px solid var(--line); border-radius: 8px; background: transparent; text-decoration: none; }
.ficha:hover, .ficha:focus-visible { border-color: var(--accent); }
.ficha img { width: 64px; height: 50px; object-fit: cover; border-radius: 4px; background: var(--line); }
.ficha .ft { display: grid; gap: 1px; }
.ficha b { font: 700 1rem/1.2 var(--f-display); letter-spacing: -.01em; }
.ficha small { font: 400 12px/1.3 var(--f-mono); color: var(--muted); }
.ficha em { font: 500 12px/1.3 var(--f-mono); font-style: normal; color: var(--accent); }
.tira-sig { margin-top: 28px; }


section.bloque { padding-block: 36px; border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
.sec-head span { font: 400 13px/1.4 var(--f-mono); color: var(--muted); }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
/* 4 guías de un destino: 2 x 2 */
@media (min-width: 640px) { .cards.cuatro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 5 destinos: el primero ocupa dos columnas (2 + 1, y luego 3) */
@media (min-width: 900px) {
  .cards.destacado { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.destacado > a.card:first-child { grid-column: span 2; }
  .cards.destacado > a.card:first-child .ph { aspect-ratio: 16 / 7; }
}
a.card { display: grid; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; align-content: start; }
.card .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .ph img { transform: scale(1.03); }
.card .tx { padding: 14px 16px 18px; display: grid; gap: 6px; align-content: start; }
.card .meta { font: 500 12px/1.4 var(--f-mono); color: var(--accent); }
.card h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.18; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: reduce) { .card .ph img { transition: none; } }

.lists { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
a.list-item { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 4px; text-decoration: none; align-content: start; }
a.list-item:hover b { text-decoration: underline; text-underline-offset: 4px; }
.list-item b { font: 700 1.1rem/1.2 var(--f-display); }
.list-item span { color: var(--muted); font-size: 14.5px; }

/* migas y cabeceras de página */
.crumbs { font: 400 13px/1.5 var(--f-mono); color: var(--muted); padding-top: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.art-head { padding-block: 12px 22px; }
.art-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.06; font-weight: 800; max-width: 22ch; }
.art-url { font: 400 12px/1.5 var(--f-mono); color: var(--muted); margin-top: 14px; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font: 500 12px/1 var(--f-mono); border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; color: var(--muted); text-decoration: none; background: var(--surface); }
a.tag:hover { color: var(--accent); border-color: var(--accent); }

figure.photo { margin: 0; }
figure.photo img { width: 100%; border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
figure.photo figcaption { font: 400 12px/1.5 var(--f-mono); color: var(--muted); padding-top: 8px; }
figure.photo figcaption a { color: var(--muted); }
.art-body figure.photo { margin-block: 32px; }

.verdict { border-left: 5px solid var(--accent); background: var(--surface); padding: 18px 22px; border-radius: 0 6px 6px 0; max-width: 72ch; margin-top: 26px; }
.verdict small { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.verdict p { margin: 0; font: 600 1.2rem/1.4 var(--f-display); letter-spacing: -.01em; }

/* cuerpo del artículo */
.art-grid { display: grid; gap: 28px; padding-block: 28px 20px; }
@media (min-width: 980px) { .art-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 52px; align-items: start; } }
.toc { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 16px 18px; font-size: 14.5px; }
@media (min-width: 980px) { .toc { position: sticky; top: 16px; } }
.toc b { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.art-body { min-width: 0; max-width: 72ch; }
.art-body p { margin: 0 0 1em; }
.art-body a { color: var(--accent); text-underline-offset: 3px; }
.art-body .intro p { font-size: 1.1rem; }
.art-sec { padding-top: 34px; margin-top: 8px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.art-sec > h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); font-weight: 700; margin-bottom: 16px; }
.art-sec h3 { font: 700 1.2rem/1.25 var(--f-display); margin: 26px 0 10px; }
.art-sec ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 8px; }
.art-sec ul.sched { padding-left: 0; }

dl.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
dl.facts div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -1px -1px 0 0; }
dl.facts dt { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
dl.facts dd { margin: 0; font-weight: 500; font-size: 15.5px; line-height: 1.5; }

.sched { list-style: none; margin: 10px 0 0; }
.sched li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }
.sched li:last-child { border-bottom: 1px solid var(--line); }
.sched li.solo { grid-template-columns: 1fr; }
.sched time { font: 500 13.5px/1.75 var(--f-mono); color: var(--accent); }
.sched p { margin: 0; }
@media (max-width: 440px) { .sched li { grid-template-columns: 1fr; gap: 2px; } }


.faq h3 { margin-top: 22px; }
.faq p { margin-bottom: 0; }

.reserve { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px; }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.res b { font: 700 1.05rem/1.25 var(--f-display); }
.res span { color: var(--muted); font-size: 15px; }
.btn { display: inline-block; justify-self: start; background: var(--accent); color: var(--accent-ink) !important; border: 0; border-radius: 6px; padding: 11px 18px; font: 600 15px/1 var(--f-body); cursor: pointer; text-decoration: none !important; }
.btn:hover { filter: brightness(1.08); }
.res .hint { font: 400 12px/1.4 var(--f-mono); color: var(--muted); min-height: 1.4em; }

.mapa { display: grid; grid-template-columns: 5.5rem 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; margin-block: 36px; }
.mapa h2 { font-size: 1.25rem; margin-bottom: 4px; }
.mapa p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.mapa .coord { font: 400 12px/1.4 var(--f-mono); }
.pin { width: 5.5rem; height: 5.5rem; border-radius: 50%; background:
  radial-gradient(circle at 50% 42%, var(--coral) 0 10px, transparent 11px),
  repeating-linear-gradient(0deg, transparent 0 17px, var(--line) 17px 18px),
  repeating-linear-gradient(90deg, transparent 0 17px, var(--line) 17px 18px), var(--bg); border: 1px solid var(--line); }
@media (max-width: 480px) { .mapa { grid-template-columns: 1fr; } .pin { width: 3.5rem; height: 3.5rem; } }

.related { display: grid; gap: 0; }
.related a { display: grid; gap: 2px; padding-block: 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; }
.related a:last-child { border-bottom: 1px solid var(--line); }
.related a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.related b { font: 700 1.1rem/1.25 var(--f-display); }
.related span { font: 400 12px/1.4 var(--f-mono); color: var(--muted); }

/* hub y aterrizajes */
.hub-top { display: grid; gap: 22px; margin-top: 26px; }
@media (min-width: 900px) { .hub-top { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; } }
.hub-intro p { margin: 0 0 1em; max-width: 62ch; font-size: 1.08rem; }
.land-intro { margin-top: 4px; }
.hub-facts { grid-template-columns: 1fr !important; }
.hero-foto { margin-top: 6px; }

footer.site { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: grid; gap: 8px; }
footer.site b { color: var(--ink); font-family: var(--f-display); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Para ahorrar tiempo */
.ahorro-l { list-style: none; padding: 0 !important; display: grid; gap: 14px !important; max-width: 66ch; }
.ahorro-l li { display: grid; grid-template-columns: 1.6rem 1fr; }
.ahorro-l li::before { content: "\2192"; font: 700 1.25rem/1.35 var(--f-display); color: var(--accent); }

/* Botón secundario y valoración */
.btn.sec { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }
.util .util-btn { display: flex; gap: 10px; flex-wrap: wrap; }
.util-form { display: grid; gap: 10px; margin-top: 16px; max-width: 52ch; }
.util-form label { font-weight: 600; font-size: 15px; }
.util-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); resize: vertical; }
.util-ok { margin: 14px 0 0; color: var(--muted); }

/* Aviso de analítica: corto y pequeño */
.cookies { position: fixed; left: 12px; bottom: 12px; z-index: 50; max-width: 340px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 13px; line-height: 1.45; }
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 10px; }
.cookies a { color: var(--accent); }
.cookies .cb { display: flex; gap: 8px; }
.cookies button { flex: 1; font: 600 13px/1 var(--f-body); padding: 9px 10px; border-radius: 6px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.cookies button[data-ck="si"] { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 480px) { .cookies { right: 12px; max-width: none; } }

/* Páginas de texto (cookies) */
.legal { max-width: 66ch; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.legal p { margin: 0 0 1em; }
.nota-maqueta { color: var(--muted); font: 400 13px/1.5 var(--f-mono); border-left: 3px solid var(--line); padding-left: 12px; }
footer.site a { color: var(--muted); }

/* "Desde tu ciudad": categoría de origen */
.origenes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.origen { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 4px; text-decoration: none; align-content: start; }
a.origen:hover b { text-decoration: underline; text-underline-offset: 4px; }
.origen b { font: 700 1.2rem/1.2 var(--f-display); }
.origen span { color: var(--accent); font: 500 13px/1.4 var(--f-mono); }
.origen.pronto { background: transparent; border-style: dashed; }
.origen.pronto b { color: var(--muted); }
.origen.pronto span { color: var(--muted); }
.desde-box { margin-top: 14px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--surface); padding: 14px 18px; font-size: 15.5px; }
.desde-box b { display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.desde-box p { margin: 0 0 8px; }
.desde-box ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.desde-box a { color: var(--accent); text-underline-offset: 3px; }
.hub-lado { display: grid; gap: 0; align-content: start; }
.hub-lado .desde-box { margin-top: 12px; }
.cab-llegar { margin-top: 36px; }
.tag.origen-tag { border-color: var(--accent); color: var(--accent); }
