/*
 * Paco y Esther: diario de viajes. Pensado primero para móvil.
 * Las fotos mandan: portadas a sangre, fotos a todo el ancho en móvil y mosaicos en
 * escritorio. Papel cálido, tinta verde noche y un acento de atardecer.
 * Letras: Fraunces (títulos) e Inter (texto), servidas desde /assets/fonts (OFL).
 */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
    --bg: #f7f4ee;
    --paper: #fffdf9;
    --sand: #ece5d8;
    --line: #e1d9ca;
    --ink: #17211e;
    --muted: #5e6763;
    --deep: #14211e;
    --accent: #c8553d;
    --accent-dark: #a8432e;
    --teal: #2e6a63;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1180px;
    --read: 700px;
    --pad: clamp(18px, 5vw, 40px);
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 33, 30, .06), 0 8px 28px rgba(20, 33, 30, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.1rem, 7vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em; flex: none; }

.kicker { font: 600 .74rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7em; }
.kicker a { color: inherit; text-decoration: none; }
.kicker-light { color: rgba(255, 255, 255, .85); }
.lead { font: 400 clamp(1.15rem, 3.4vw, 1.35rem)/1.55 var(--serif); color: var(--ink); }
.section-sub { color: var(--muted); max-width: 60ch; }

/* --- Botones y fichas --- */
.button { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: 999px; background: var(--accent); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--bg); color: var(--ink); }
.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .5em .95em; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font: 500 .92rem/1 var(--sans); text-decoration: none; transition: border-color .2s, background .2s; }
.chip span { font-size: .78rem; color: var(--muted); }
.chip:hover, .chip[aria-current] { border-color: var(--ink); color: var(--ink); }
.chip[aria-current] { background: var(--ink); color: #fff; }
.chip-forma { background: transparent; }
.chips-small .chip { font-size: .84rem; padding: .42em .8em; }

/* --- Cabecera --- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 238, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.brand-name { font: 600 1.32rem/1 var(--serif); letter-spacing: -.01em; }
.brand-name em { font-weight: 400; color: var(--accent); }
.nav-desktop { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
.menu nav { position: fixed; left: 0; right: 0; top: 62px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 22px; display: grid; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
.menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 500 1.15rem/1.2 var(--serif); }
.menu nav a[aria-current] { color: var(--accent); }

/* Cabecera transparente sobre la foto de portada. */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; transition: background .3s, color .3s; }
.has-hero .brand, .has-hero .menu summary { color: #fff; }
.has-hero .brand-name em { color: #ffd3b5; }
.has-hero.scrolled .site-header { color: var(--ink); background: rgba(247, 244, 238, .94); border-color: var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.has-hero.scrolled .brand, .has-hero.scrolled .menu summary { color: var(--ink); }
.has-hero.scrolled .brand-name em { color: var(--accent); }
.menu[open] nav a { color: var(--ink); }

/* --- Portadas a sangre --- */
.hero { position: relative; min-height: min(92svh, 860px); display: flex; align-items: flex-end; color: #fff; background: var(--deep); overflow: hidden; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img img { animation: hero-in 1.4s ease-out both; }
@keyframes hero-in { from { transform: scale(1.06); opacity: .4; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 30%, rgba(10, 16, 14, .35) 55%, rgba(10, 16, 14, .85) 100%); }
.hero-text { position: relative; padding-top: 120px; padding-bottom: clamp(36px, 8vh, 80px); }
.hero h1 { font-size: clamp(2.4rem, 9vw, 5rem); max-width: 14ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero-summary { font: 400 clamp(1.05rem, 3vw, 1.3rem)/1.5 var(--serif); max-width: 46ch; color: rgba(255, 255, 255, .92); margin-bottom: 1.4em; }
.hero-trip { min-height: min(78svh, 720px); }
.hero-trip h1 { max-width: 18ch; }

/* --- Portada --- */
.intro { padding-top: clamp(44px, 9vw, 88px); padding-bottom: 12px; max-width: 820px; text-align: center; }
.intro-lead { font: 500 italic clamp(1.5rem, 5vw, 2.3rem)/1.25 var(--serif); color: var(--ink); margin-bottom: .6em; }
.intro p:last-child { color: var(--muted); font-size: 1.08rem; }
.section { padding-top: clamp(40px, 8vw, 72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }

/* Tarjetas de viaje */
.trip-grid { display: grid; gap: 22px; }
.trip-card a { display: block; height: 100%; background: var(--paper); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.trip-card a:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 33, 30, .06), 0 18px 40px rgba(20, 33, 30, .14); }
.trip-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.trip-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.trip-card a:hover .trip-card-img img { transform: scale(1.04); }
.trip-card-body { padding: 18px 20px 20px; }
.trip-card h3 { font-size: 1.35rem; margin-bottom: .35em; }
.trip-card-summary { color: var(--muted); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trip-card-meta { margin: 0; font: 600 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }

/* Desde que no tenemos tele */
.tele-band { margin-top: clamp(48px, 9vw, 96px); padding: clamp(44px, 8vw, 80px) 0; background: var(--deep); color: #f3efe6; }
.tele-band h2 { color: #fff; }
.tele-band .section-sub { color: rgba(243, 239, 230, .72); }
.tele-band .kicker { color: #f0a383; }
.tele-band .link-more { color: #fff; }
.tele-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
.tele-row::-webkit-scrollbar { display: none; }
.tele-row .tele-card { flex: 0 0 64%; scroll-snap-align: start; }
.tele-card a { display: block; color: inherit; text-decoration: none; }
.tele-card-img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .08); }
.tele-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tele-card a:hover img { transform: scale(1.05); }
.tele-card h3 { font: 500 1.05rem/1.3 var(--serif); margin: 12px 0 0; }
.tele-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.tele-grid .tele-card h3 { color: var(--ink); }

/* --- Cabecera de páginas sin foto --- */
.page-head { padding-top: clamp(36px, 8vw, 72px); padding-bottom: 26px; }
.page-head .chips { margin-top: 18px; }
.year { padding-top: 30px; }
.year-title { font-size: 1rem; font-family: var(--sans); font-weight: 700; letter-spacing: .14em; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.year-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --- Un viaje --- */
.trip-intro { max-width: calc(var(--read) + var(--pad) * 2); padding-top: 34px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.facts li { display: flex; align-items: center; gap: 7px; }
.trip-intro .chips { margin-bottom: 26px; }
.chapters { max-width: calc(var(--read) + 140px + var(--pad) * 2); padding-top: 52px; }
.chapter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.chapter-list a { display: grid; grid-template-columns: 34% 1fr; gap: 14px; align-items: center; position: relative; padding: 10px; background: var(--paper); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s; }
.chapter-list a:hover { transform: translateX(3px); }
.chapter-num { position: absolute; left: 18px; top: 18px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 .85rem/1 var(--sans); }
.chapter-img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sand); }
.chapter-img img { width: 100%; height: 100%; object-fit: cover; }
.chapter-body { display: grid; gap: 3px; min-width: 0; }
.chapter-title { font: 600 1.12rem/1.2 var(--serif); }
.chapter-sub { font-size: .85rem; color: var(--teal); font-weight: 600; }
.chapter-text { display: none; color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* --- Un capítulo --- */
.entry-head { max-width: calc(var(--read) + var(--pad) * 2); padding-top: clamp(28px, 6vw, 56px); padding-bottom: 8px; }
.entry-trip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-bottom: 22px; font-size: .95rem; }
.entry-meta { color: var(--muted); font-size: .93rem; }
.entry-head .lead { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.entry-layout { max-width: calc(var(--read) + var(--pad) * 2); }
.toc { position: sticky; top: 70px; z-index: 5; margin: 12px 0 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 600; font-size: .95rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.toc ol { list-style: none; margin: 0; padding: 4px 8px 10px; max-height: 60vh; overflow: auto; }
.toc li a { display: flex; gap: 12px; padding: 9px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.toc li a span { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc li a:hover { background: var(--bg); }
.toc li a[aria-current] { background: var(--ink); color: #fff; }
.toc li a[aria-current] span { color: rgba(255, 255, 255, .7); }

/* Bloques del cuerpo */
.blocks > * + * { margin-top: 1.6em; }
.prose { font-size: 1.09rem; line-height: 1.78; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.prose-page { max-width: calc(var(--read) + var(--pad) * 2); padding-bottom: 20px; }
.prose-page h2 { font-size: 1.4rem; margin-top: 1.4em; }
.block-title { font-size: clamp(1.45rem, 4.5vw, 1.9rem); padding-top: .6em; scroll-margin-top: 140px; }
.block-title + * { margin-top: .9em; }

/* Fotos: a todo el ancho de la pantalla en móvil; más anchas que el texto en escritorio. */
.photo { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.photo a, .mosaic a, .pano-open { display: block; cursor: zoom-in; background: var(--sand); overflow: hidden; }
.photo img { width: 100%; }
.photo-tall a { max-width: 520px; margin: 0 auto; }
.photo-small a { max-width: var(--w); margin: 0 auto; }
.photo-small figcaption { max-width: var(--w); margin: 0 auto; }
figcaption { font-size: .88rem; line-height: 1.45; color: var(--muted); padding: 9px var(--pad) 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.mosaic figure { margin: 0; position: relative; }
.mosaic a { aspect-ratio: 1; height: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic-odd figure:first-child { grid-column: 1 / -1; }
.mosaic-odd figure:first-child a { aspect-ratio: 3 / 2; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; color: #fff; font-size: .78rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); pointer-events: none; opacity: 0; transition: opacity .25s; }
.mosaic figure:hover figcaption { opacity: 1; }
@media (hover: none) { .mosaic figcaption { display: none; } }

/* Foto 360° */
.pano { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.pano-open { position: relative; cursor: pointer; }
.pano-open img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.pano-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 600 .95rem/1 var(--sans); box-shadow: 0 8px 30px rgba(0, 0, 0, .3); transition: transform .25s; }
.pano-open:hover .pano-badge { transform: translate(-50%, -50%) scale(1.05); }

/* Vídeo y mapa: no cargan nada de fuera hasta pulsar (site.js). */
.video { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
.video-link { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--deep); overflow: hidden; color: #fff; text-decoration: none; }
.video-link img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .6s; }
.video-link:hover img { opacity: .7; transform: scale(1.03); }
.video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s; }
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-link:hover .video-play { transform: scale(1.08); }
.video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; font: 600 1.05rem/1.3 var(--serif); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; }
.video iframe, .map-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.video-note { font-size: .8rem; }
.map-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px dashed var(--teal); border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--paper); }
.map-link span { display: grid; }
.map-link small { color: var(--muted); }
.map-icon { width: 30px; height: 30px; color: var(--teal); }
.map-card iframe { aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* Tablas (gastos del viaje) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
th { font: 700 .76rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
td:last-child, th:last-child { text-align: right; }
tr:last-child td { border-bottom: 0; font-weight: 700; }

/* Anterior / siguiente */
.pager { max-width: calc(var(--read) + var(--pad) * 2); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: clamp(40px, 8vw, 64px); }
.pager a { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s; }
.pager a:hover { transform: translateY(-2px); }
.pager small { display: flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pager strong { font: 600 1.02rem/1.3 var(--serif); }
.pager-next { text-align: right; }
.pager-next small { justify-content: flex-end; }

.entry-tele .entry-head { text-align: center; }
.entry-body-narrow { max-width: calc(var(--read) + var(--pad) * 2); }

/* Nosotros */
.about { display: grid; gap: 28px; padding-bottom: 20px; }
.about-img { border-radius: var(--radius); overflow: hidden; }

/* Contacto */
.contact-form { max-width: 620px; display: grid; gap: 18px; padding-bottom: 20px; }
.contact-form label { display: grid; gap: 7px; font-weight: 600; font-size: .95rem; }
.contact-form input:not([type=checkbox]), .contact-form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 400 1rem/1.4 var(--sans); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.contact-form .check { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
.contact-form .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.contact-form .button { justify-self: start; }
[data-form-status] { padding: 14px 18px; border-radius: 10px; font-weight: 700; font-size: 1rem; }
[data-form-status][data-state=success] { background: #e2f1e8; color: #1d5b3a; }
[data-form-status][data-state=error] { background: #fbe4df; color: #8c2a17; }

/* --- Pie --- */
.site-footer { margin-top: clamp(56px, 10vw, 110px); }
.gear { padding-bottom: 36px; }
.gear-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.gear-head h2 { font-size: 1.4rem; margin: 0; }
.gear-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.gear-icon { width: 38px; height: 38px; color: var(--accent); }
.gear-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gear-list a { display: grid; gap: 3px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.gear-list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.gear-name { font-weight: 650; line-height: 1.25; }
.gear-note { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.gear-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--accent); }
.gear-disclaimer { margin: 16px 0 0; font-size: .82rem; color: var(--muted); max-width: 80ch; }
.footer-main { background: var(--deep); color: rgba(243, 239, 230, .78); padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer-main a { color: #fff; text-decoration: none; }
.footer-main a:hover { color: #f0a383; }
.footer-grid { display: grid; gap: 30px; }
.footer-name { display: flex; align-items: center; gap: 14px; font: 600 1.6rem/1 var(--serif); color: #fff; margin-bottom: .7em; }
.footer-mark { width: 56px; height: 56px; }
.footer-name em { font-weight: 400; color: #f0a383; }
.footer-title { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 239, 230, .55); margin-bottom: 14px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s; }
.social a:hover { background: var(--accent); color: #fff; }
.social .icon { width: 19px; height: 19px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer-legal a { text-decoration: underline; text-underline-offset: .2em; }

.no-photo { display: block; width: 100%; height: 100%; min-height: 120px; background: linear-gradient(135deg, var(--sand), var(--line)); }

/* Galería y visor comunes con los colores de la web */
.sg-lightbox { --sg-accent: var(--accent); }

/* ================= Tableta y escritorio ================= */
@media (min-width: 640px) {
    .trip-grid { grid-template-columns: 1fr 1fr; }
    .trip-card-big { grid-column: 1 / -1; }
    .trip-card-big a { display: grid; grid-template-columns: 1.35fr 1fr; }
    .trip-card-big .trip-card-img { aspect-ratio: auto; min-height: 340px; }
    .trip-card-big .trip-card-body { padding: clamp(24px, 4vw, 44px); align-self: center; }
    .trip-card-big h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
    .tele-row .tele-card { flex-basis: 34%; }
    .tele-grid { grid-template-columns: repeat(3, 1fr); }
    .gear-list { grid-template-columns: repeat(3, 1fr); }
    .chapter-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .chapter-list a { grid-template-columns: 220px 1fr; gap: 22px; padding: 12px 22px 12px 12px; }
    .mosaic-3 { grid-template-columns: 1fr 1fr 1fr; }
    .mosaic-3.mosaic-odd figure:first-child { grid-column: auto; }
    .mosaic-3.mosaic-odd figure:first-child a { aspect-ratio: 1; }
}

@media (min-width: 900px) {
    body { font-size: 1.08rem; }
    .nav-desktop { display: flex; gap: 6px; }
    .nav-desktop a { padding: 8px 14px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 500; font-size: .98rem; transition: background .2s; }
    .nav-desktop a:hover { background: rgba(127, 127, 127, .14); }
    .nav-desktop a[aria-current] { background: var(--ink); color: #fff; }
    .has-hero:not(.scrolled) .nav-desktop a[aria-current] { background: rgba(255, 255, 255, .95); color: var(--ink); }
    .has-hero .nav-desktop a { color: inherit; }
    .menu { display: none; }
    .trip-grid:not(.trip-grid-even) { grid-template-columns: repeat(3, 1fr); }
    .trip-grid-even { grid-template-columns: repeat(3, 1fr); }
    .tele-row { overflow: visible; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; }
    .tele-grid { grid-template-columns: repeat(4, 1fr); }
    .gear-list { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .about { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }

    /* Capítulo: índice fijo a la izquierda y el cuerpo en columna de lectura. */
    .entry-head, .entry-layout, .pager { max-width: calc(var(--read) + 300px + var(--pad) * 2); }
    .entry-head { padding-left: calc(var(--pad) + 300px); }
    .entry-layout { display: grid; grid-template-columns: 240px minmax(0, var(--read)); gap: 60px; align-items: start; }
    .toc { margin-top: 6px; top: 86px; background: transparent; border: 0; box-shadow: none; }
    .toc summary { pointer-events: none; padding: 0 8px 10px; color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
    .toc summary .icon { display: none; }
    .toc summary span:first-of-type { white-space: normal; }
    .toc-count { display: none; }
    .toc ol { display: block !important; max-height: calc(100vh - 140px); padding: 0; }
    .pager { padding-left: calc(var(--pad) + 300px); }
    /* «Sin tele» no tiene índice: cabecera y cuerpo en la misma columna centrada. */
    .entry-tele .entry-head { max-width: calc(var(--read) + var(--pad) * 2); padding-left: var(--pad); }

    /* Fotos más anchas que el texto, sin salirse de la página. */
    .photo-wide, .pano, .video, .mosaic { margin-left: -36px; margin-right: -36px; }
    .photo-wide a, .pano-open, .video-link, .mosaic a { border-radius: 10px; }
    .photo-tall, .photo-small { margin: 0; }
    .photo-small a { border-radius: 10px; }
    .photo-tall a { border-radius: 10px; }
    figcaption { padding-left: 0; padding-right: 0; }
    .mosaic { gap: 10px; }
    .entry-body-narrow .photo-wide, .entry-body-narrow .mosaic { margin-left: 0; margin-right: 0; }
}

/* Sin el índice abierto por defecto en escritorio no se ve: se fuerza con site.js (open). */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
