/*
Theme Name: Zanca Revista
Description: Blog con aire de revista de viajes — portada editorial con foto a sangre, bandas por tema con tarjetas deslizables, mosaico de entradas, lectura en columna serif con letra capital y paleta de mar y arena. Tipografías Fraunces y Lora propias (sin Google).
Preview: #0E4D5C,#FFFCF7,#C2410C
Version: 0.02
Site-Type: blog
Preload-Fonts: /css/fonts/fraunces-latin-600.woff2, /css/fonts/poppins-latin-400.woff2
*/

/* Fraunces (titulares), Lora (lectura) y Poppins (menús y detalles) — SIL OFL 1.1, servidas desde este sitio. */
@font-face { font-family: Fraunces; font-style: normal; font-weight: 600; font-display: swap; src: url('/css/fonts/fraunces-latin-600.woff2') format('woff2'); }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 600; font-display: swap; src: url('/css/fonts/fraunces-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: Lora; font-style: normal; font-weight: 400; font-display: swap; src: url('/css/fonts/lora-latin-400.woff2') format('woff2'); }
@font-face { font-family: Lora; font-style: italic; font-weight: 400; font-display: swap; src: url('/css/fonts/lora-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: Lora; font-style: normal; font-weight: 600; font-display: swap; src: url('/css/fonts/lora-latin-600.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url('/css/fonts/poppins-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url('/css/fonts/poppins-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }

:root {
  --fg: #1C2A2E;
  --bg: #FFFCF7;
  --muted: #566A70;
  --border: #E6DDCF;
  --accent: #0E4D5C;            /* mar profundo */
  --accent-fg: #ffffff;
  --accent2: #C2410C;           /* coral quemado: blanco encima = 5,2:1 */
  --accent2-fg: #ffffff;
  --accent2-hover: #9A3309;
  --green: #0E6B4F;
  --green-hover: #0A5640;
  --red: #C0352B;
  --amber: #B7791F;
  --sand: #F6EFE4;
  --sand-2: #EFE4D2;
  --soft: #E3F0F2;
  --hover: #F6EFE4;
  --navy: #0E4D5C;
  --header-bg: #FFFCF7;
  --field-bg: #ffffff;
  --field-border: #8A9A9E;
  --header-h: 3.25rem;
  --tap: 2.75rem;
  --font-heading: Fraunces, Georgia, "Times New Roman", serif;
  --font-body: Lora, Georgia, "Times New Roman", serif;
  --font-ui: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
}

html, body { overflow-x: hidden; }
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: var(--fg); background: var(--bg); padding-top: var(--header-h); accent-color: var(--accent2); }
h1, h2, h3, h4, .brand span { font-family: var(--font-heading); font-weight: 600; color: var(--fg); text-wrap: balance; letter-spacing: -.01em; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--accent2); color: #fff; }
.wrap { max-width: 1180px; }
.muted, .meta { color: var(--muted); font-family: var(--font-ui); font-size: .8125rem; }
.lead { font-style: italic; }
.btn, .chip, .pager-link, .main-nav a, .theme-toggle, input, select, button, textarea { font-family: var(--font-ui); }
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--accent2); border-color: var(--accent2); color: var(--accent2-fg); }
.btn-primary:hover { background: var(--accent2-hover); border-color: var(--accent2-hover); }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.chip { background: var(--soft); color: var(--accent); font-weight: 400; border-radius: 999px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent2); outline-offset: 2px; border-radius: 6px;
}
body.page-home:not(.scrolled) .site-header :focus-visible, body.page-post:not(.scrolled) .site-header :focus-visible { outline-color: #fff; }

/* ── Encabezado: barra fija crema; transparente sobre la foto en la portada y en cada entrada ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; min-height: var(--header-h); background: var(--header-bg); border-bottom: 0; box-shadow: 0 1px 0 var(--border); transition: background .25s ease, box-shadow .25s ease; }
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; min-height: var(--header-h); }
.brand { margin-right: 24px; min-height: var(--tap); }
.brand img { height: 32px; width: auto; }
.brand span { font-size: 1.1875rem; color: var(--accent); white-space: nowrap; }
.main-nav { gap: 4px; }
.main-nav a { color: var(--fg); font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px; text-decoration: none; position: relative; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px; background: var(--accent2); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav a:hover::after { transform: scaleX(1); }
.theme-toggle { border-color: var(--border); width: var(--tap); height: var(--tap); }
.nav-toggle { min-width: var(--tap); min-height: var(--tap); color: var(--accent); }

body.page-home, body.page-post { padding-top: 0; }
body.page-home main.wrap, body.page-post main.wrap { padding-top: 0; }
body.page-home .site-header, body.page-post .site-header { background: transparent; box-shadow: none; }
body.page-home .site-header::before, body.page-post .site-header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(6, 28, 34, .62), rgba(6, 28, 34, 0)); transition: opacity .25s ease; }
body.page-home .site-header .brand span, body.page-post .site-header .brand span,
body.page-home .site-header .main-nav a, body.page-post .site-header .main-nav a { color: #fff; text-shadow: 0 1px 5px rgba(0, 0, 0, .55); }
body.page-home .site-header .nav-toggle, body.page-post .site-header .nav-toggle { color: #fff; }
body.page-home.scrolled .site-header, body.page-post.scrolled .site-header { background: var(--header-bg); box-shadow: 0 1px 0 var(--border); }
body.page-home.scrolled .site-header::before, body.page-post.scrolled .site-header::before { opacity: 0; }
body.page-home.scrolled .site-header .brand span, body.page-post.scrolled .site-header .brand span { color: var(--accent); text-shadow: none; }
body.page-home.scrolled .site-header .main-nav a, body.page-post.scrolled .site-header .main-nav a { color: var(--fg); text-shadow: none; }
body.page-home.scrolled .site-header .nav-toggle, body.page-post.scrolled .site-header .nav-toggle { color: var(--accent); }
@media (max-width: 45em) {
  .main-nav { background: var(--header-bg); }
  .main-nav a { width: 100%; color: var(--fg); }
  .site-header:has(.main-nav.is-open) { background: var(--header-bg); box-shadow: 0 1px 0 var(--border); }
  .site-header:has(.main-nav.is-open)::before { opacity: 0; }
  body .site-header:has(.main-nav.is-open) .brand span,
  body .site-header:has(.main-nav.is-open) .main-nav a,
  body .site-header:has(.main-nav.is-open) .nav-toggle { color: var(--accent); text-shadow: none; }
}

/* ── Portada: foto a sangre con ola al pie ── */
.hero-band { width: 100vw; position: relative; left: 50%; right: 50%; margin: 0 -50vw; border-radius: 0; min-height: min(86vh, 41rem); padding: 6rem 1rem 7rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-band.has-cover::before { background: linear-gradient(180deg, rgba(6, 28, 34, calc(var(--cover-overlay, .3) + .1)), rgba(6, 28, 34, var(--cover-overlay, .3)) 55%, rgba(6, 28, 34, .62)); }
.hero-band .center { width: 100%; max-width: 52rem; position: relative; z-index: 2; }
.rv-kicker { font-family: var(--font-ui); font-size: .8125rem; letter-spacing: .28em; text-transform: uppercase; color: #fff; opacity: .92; margin: 0 0 1rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.hero-band h1 { color: #fff; font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.2rem); line-height: 1.04; margin: 0 0 1rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.hero-band .lead { color: #fff; font-size: clamp(1.0625rem, .9rem + .7vw, 1.5rem); margin: 0 auto; max-width: 38rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.rv-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(2.5rem, 6vw, 5rem); z-index: 3; display: block; pointer-events: none; }
.rv-wave path { fill: var(--bg); }
.rv-scroll { position: absolute; z-index: 4; left: 50%; bottom: clamp(3.25rem, 7vw, 6rem); translate: -50% 0; width: var(--tap); height: var(--tap); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.rv-scroll::before { content: ""; width: 18px; height: 18px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); animation: rvBob 1.8s ease-in-out infinite; }
@keyframes rvBob { 0%, 100% { translate: 0 -4px; } 50% { translate: 0 4px; } }

/* Buscador flotante bajo la portada */
.rv-find { position: relative; z-index: 5; max-width: 46rem; margin: -2.25rem auto 2.5rem; padding: 0 1rem; }
.rv-find form { display: flex; gap: .5rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .4rem .4rem .4rem 1.25rem; box-shadow: 0 14px 38px rgba(14, 77, 92, .16); }
.rv-find input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1rem; color: var(--fg); min-height: var(--tap); }
.rv-find input:focus-visible { outline: none; }
.rv-find form:focus-within { outline: 3px solid var(--accent2); outline-offset: 2px; }
.rv-find .btn { min-height: var(--tap); }
.rv-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.rv-tags a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .9rem; border-radius: 999px; background: var(--sand); color: var(--accent); font: 600 .8125rem var(--font-ui); text-decoration: none; border: 1px solid var(--sand-2); }
.rv-tags a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Encabezados de sección ── */
.rv-eyebrow { font: 600 .75rem var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--accent2); margin: 0 0 .5rem; }
.rv-section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.1; margin: 0 0 1.5rem; }
.rv-section-title::after { content: ""; display: block; width: 3.5rem; height: 4px; border-radius: 4px; background: var(--accent2); margin-top: .9rem; }

/* ── Destacadas: una grande y cuatro más ── */
.rv-feature { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 17rem 17rem; gap: 1rem; margin: 0 0 4rem; }
.rv-feature .rv-tile:first-child { grid-row: 1 / 3; }
.rv-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--accent); color: #fff; text-decoration: none; isolation: isolate; }
.rv-tile img, .rv-tile .rv-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .7s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.rv-tile .rv-noimg { background: linear-gradient(135deg, var(--accent), #1D7C8C 60%, var(--accent2)); }
.rv-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 28, 34, 0) 38%, rgba(6, 28, 34, .82)); }
.rv-tile:hover img { scale: 1.06; }
.rv-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.25rem 1.2rem; }
.rv-label { display: inline-block; font: 600 .6875rem var(--font-ui); letter-spacing: .16em; text-transform: uppercase; background: var(--accent2); color: #fff; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .55rem; }
.rv-tile h3 { color: #fff; font-size: 1.125rem; line-height: 1.2; margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.rv-tile:first-child h3 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); line-height: 1.1; }
.rv-tile:first-child .rv-excerpt { display: block; }
.rv-excerpt { display: none; font-size: .9375rem; line-height: 1.5; margin: .6rem 0 0; opacity: .92; max-width: 34rem; }
.rv-date { display: block; font: 400 .75rem var(--font-ui); opacity: .85; margin-top: .5rem; }

/* ── Bandas por tema ── */
.rv-band { width: 100vw; position: relative; left: 50%; right: 50%; margin: 0 -50vw; padding: 4rem 0 4.25rem; background: var(--sand); }
.rv-band-alt { background: var(--accent); }
.rv-band-alt .rv-band-head { color: #fff; --fg: #fff; --muted: #CFE3E7; }
.rv-band-alt .rv-band-head h2, .rv-band-alt .rv-eyebrow { color: #fff; }
.rv-band-alt .rv-section-title::after { background: #FFB38E; }
.rv-band-inner > :not(.rv-band-head) { grid-column: 2; }
.rv-band-head { grid-row: 1 / 3; }
.rv-band-inner { max-width: 1180px; margin: 0 auto; padding: 0 1rem; display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.rv-band-head p { color: var(--muted); font-family: var(--font-ui); font-size: .875rem; margin: 0 0 1.25rem; }
.rv-band-head .btn { background: transparent; border: 2px solid currentColor; color: inherit; }
.rv-band:not(.rv-band-alt) .rv-band-head .btn { color: var(--accent); }
.rv-band-head .btn:hover { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.rv-rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1.25rem; margin: 0 -.25rem; scrollbar-width: thin; scrollbar-color: var(--accent2) transparent; list-style: none; }
.rv-rail > li { flex: 0 0 min(16rem, 78vw); scroll-snap-align: start; }
.rv-rail-pause { margin: -.4rem 0 0 auto; display: flex; align-items: center; min-height: var(--tap); padding: 0 1rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: var(--accent); font: 600 .75rem var(--font-ui); cursor: pointer; }
.rv-band-alt .rv-rail-pause { color: #fff; }
.rv-rail-pause:hover { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.rv-rail:focus-visible { outline: 3px solid var(--accent2); outline-offset: 4px; }

/* Tarjetas */
.rv-card { display: block; text-decoration: none; color: var(--fg); background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 100%; transition: translate .25s ease, box-shadow .25s ease; }
.rv-card:hover { translate: 0 -4px; box-shadow: 0 16px 34px rgba(14, 77, 92, .16); }
.rv-card-img { display: block; overflow: hidden; background: var(--soft); }
.rv-card img, .rv-card .rv-noimg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: scale .6s ease; }
.rv-card .rv-noimg { background: linear-gradient(135deg, var(--soft), var(--sand-2)); }
.rv-card:hover img { scale: 1.05; }
.rv-card-body { display: block; padding: .95rem 1.1rem 1.15rem; }
.rv-card .rv-label { margin-bottom: .5rem; background: var(--soft); color: var(--accent); }
.rv-card h3 { font-size: 1.1875rem; line-height: 1.22; margin: 0 0 .4rem; color: var(--fg); }
.rv-card:hover h3 { color: var(--accent2); }
.rv-card p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.rv-card .rv-date { color: var(--muted); opacity: 1; margin-top: .65rem; }

/* ── Mosaico de lo más reciente ── */
.rv-mosaic { column-count: 3; column-gap: 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.rv-mosaic > li { break-inside: avoid; margin: 0 0 1.25rem; }
.rv-mosaic > li:nth-child(4n+2) .rv-card img { aspect-ratio: 3 / 4; }
.rv-mosaic > li:nth-child(4n+3) .rv-card img { aspect-ratio: 1 / 1; }
.rv-mosaic > li:nth-child(5n+1) .rv-card img { aspect-ratio: 16 / 10; }
.rv-more { text-align: center; margin: 1.5rem 0 4rem; }

/* ── Listados (etiqueta, búsqueda, archivo) ── */
.rv-head { padding: 7rem 0 1.5rem; text-align: center; }
.rv-head h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); margin: 0; }
.rv-head .rv-sub { color: var(--muted); font-family: var(--font-ui); font-size: .875rem; margin: .6rem 0 0; }
.rv-list-wrap { padding-top: 0; }
body.page-list main.wrap { padding-top: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 2rem 0 3rem; flex-wrap: wrap; }
.pager-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 1.2rem; border: 2px solid var(--accent); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--accent); }
.pager-link:hover { background: var(--accent); color: #fff; }
.pager-state { color: var(--muted); font-size: .8125rem; font-family: var(--font-ui); }

/* ── Entrada ── */
.rv-post-hero { width: 100vw; position: relative; left: 50%; right: 50%; margin: 0 -50vw 2.5rem; min-height: min(72vh, 36rem); display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: linear-gradient(135deg, var(--accent), #1D7C8C 60%, var(--accent2)); }
.rv-post-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rv-post-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 28, 34, .45), rgba(6, 28, 34, .08) 35%, rgba(6, 28, 34, .86)); }
.rv-post-hero-inner { width: 100%; max-width: 52rem; margin: 0 auto; padding: 8rem 1rem 3rem; }
.rv-post-hero.no-img { min-height: 20rem; }
.rv-post-hero h1 { color: #fff; font-size: clamp(2rem, 1.1rem + 3.8vw, 3.8rem); line-height: 1.07; margin: 0 0 .8rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.rv-post-hero .lead { color: #fff; opacity: .95; font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem); margin: 0 0 1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.rv-post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font: 400 .8125rem var(--font-ui); letter-spacing: .04em; }
.rv-post-meta .rv-label { margin: 0; }
.rv-post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.rv-post-tags a { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 .75rem; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); color: #fff; font: 600 .6875rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(255, 255, 255, .45); }
.rv-post-tags a:hover { background: var(--accent2); border-color: var(--accent2); }
.rv-progress { display: none; }
.breadcrumb { max-width: 40rem; margin-left: auto; margin-right: auto; font-family: var(--font-ui); }

.post-meta { display: none; }
main .post-body, main .post-share, main .author-box, main .post-nav, main .comments { max-width: 40rem !important; margin-left: auto; margin-right: auto; }
.post-body { font-family: var(--font-body); font-size: 1.1875rem; line-height: 1.85 !important; color: var(--fg); }
.post-body p { margin: 0 0 1.35em; text-wrap: pretty; }
.post-body > p:first-of-type::first-letter { float: left; font: 600 4.1rem/.82 var(--font-heading); padding: .3rem .6rem 0 0; color: var(--accent2); }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--font-heading); margin: 2.2em 0 .6em; line-height: 1.2; }
.post-body h2 { font-size: 1.75rem; }
.post-body h2::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--accent2); margin-bottom: .6rem; border-radius: 3px; }
.post-body a { color: var(--accent2); text-decoration-thickness: 2px; }
.post-body img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14, 77, 92, .14); }
.post-body blockquote { margin: 2em 0 2em -1rem; padding: .4rem 0 .4rem 1.6rem; border-left: 4px solid var(--accent2); font: italic 600 1.45rem/1.4 var(--font-heading); color: var(--accent); }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 0 0 1.35em; }
.post-body li::marker { color: var(--accent2); }
.post-body hr { border: 0; text-align: center; margin: 2.5rem 0; }
.post-body hr::before { content: "~ ~ ~"; color: var(--accent2); letter-spacing: .5em; font-size: 1.25rem; }
.post-share .btn { min-width: var(--tap); min-height: var(--tap); }
.author-box { background: var(--sand); border: 0 !important; border-radius: var(--radius) !important; font-family: var(--font-ui); }
.post-nav a { font-family: var(--font-heading); font-size: 1.0625rem; }
main section[style*="Te puede"], main section:has(> h2) .grid .card { border-radius: var(--radius); }

/* ── Pie ── */
.site-footer { border-top: 0; margin-top: 4rem; padding: 2.5rem 1rem; text-align: center; color: var(--muted); font-family: var(--font-ui); font-size: .8125rem; background: var(--sand); }
.site-footer a { color: var(--accent); }

/* ── Modo oscuro (manual, botón del encabezado) ── */
:root[data-theme="dark"] {
  --fg: #EAF1F2; --bg: #0E181B; --muted: #A9BDC2; --on-muted: #0E181B; --border: #25373C;
  --accent: #6FCBD8; --accent-fg: #06262C; --accent2: #FF9C73; --accent2-fg: #3A1203; --accent2-hover: #FFB38E; --navy: #6FCBD8;
  --sand: #14242A; --sand-2: #1B3038; --soft: #17303A; --hover: #14242A; --header-bg: #0E181B; --field-bg: #14242A; --field-border: #6B8288;
  --green: #4ADE80; --on-green: #04210F; --red: #F87171; --on-red: #2A0606; --amber: #FBBF24; --on-amber: #1F1300;
}
:root[data-theme="dark"] .rv-rail-pause:hover { color: #3A1203; }
:root[data-theme="dark"] .rv-card, :root[data-theme="dark"] .rv-find form { background: #12232A; }
:root[data-theme="dark"] .rv-band-alt { background: #0A2A32; }
:root[data-theme="dark"] .rv-label { color: #3A1203; }
:root[data-theme="dark"] .rv-tile .rv-label { background: var(--accent2); color: #3A1203; }
:root[data-theme="dark"] .post-body img { box-shadow: none; }

/* ── Movimiento con medida: nada se mueve si se pidió reducir movimiento ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
  .site-header { view-transition-name: site-header; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-scroll::before { animation: none; }
  .rv-tile img, .rv-card img, .rv-card, .main-nav a::after { transition: none; }
  .rv-card:hover, .rv-tile:hover img, .rv-card:hover img { translate: none; scale: 1; }
}
/* Aparecer al desplazarse y barra de progreso de lectura: solo con animation-timeline (CSS puro, sin JavaScript). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rvIn { from { opacity: 0; translate: 0 2rem; } to { opacity: 1; translate: 0 0; } }
    .rv-reveal, .rv-tile, .rv-band-head { animation: rvIn linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rvProg { to { transform: scaleX(1); } }
    .rv-progress { display: block; position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 4px; background: var(--accent2); transform: scaleX(0); transform-origin: 0 50%; animation: rvProg linear both; animation-timeline: scroll(root block); }
  }
}
@property --hdr { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes rvHdr { to { --hdr: 1; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body.page-home, body.page-post { animation: rvHdr linear both; animation-timeline: scroll(root block); animation-range: 0 4rem; }
    body.page-home .site-header, body.page-post .site-header { background: color-mix(in srgb, var(--header-bg) calc(var(--hdr) * 100%), transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--border) calc(var(--hdr) * 100%), transparent); transition: none; }
    body.page-home .site-header::before, body.page-post .site-header::before { opacity: calc(1 - var(--hdr)); transition: none; }
    body.page-home .site-header .brand span, body.page-post .site-header .brand span,
    body.page-home .site-header .nav-toggle, body.page-post .site-header .nav-toggle { color: color-mix(in srgb, var(--accent) calc(var(--hdr) * 100%), #fff); text-shadow: 0 1px 5px rgb(0 0 0 / calc(.55 * (1 - var(--hdr)))); }
    body.page-home .site-header .main-nav a, body.page-post .site-header .main-nav a { color: color-mix(in srgb, var(--fg) calc(var(--hdr) * 100%), #fff); text-shadow: 0 1px 5px rgb(0 0 0 / calc(.55 * (1 - var(--hdr)))); }
  }
}

/* Lo que queda bajo el pliegue no se pinta hasta que se acerca. */
.rv-band, .rv-mosaic-wrap, #comentarios { content-visibility: auto; contain-intrinsic-size: auto 30rem; }

/* ── Pantallas medianas y pequeñas ── */
@media (max-width: 62em) {
  .rv-feature { grid-template-columns: 1fr 1fr; grid-template-rows: 22rem 14rem 14rem; }
  .rv-feature .rv-tile:first-child { grid-column: 1 / 3; grid-row: 1; }
  .rv-band-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .rv-band-inner > :not(.rv-band-head) { grid-column: 1; }
  .rv-band-head { grid-row: auto; }
  .rv-mosaic { column-count: 2; }
}
@media (max-width: 40em) {
  body { font-size: 1rem; }
  .hero-band { min-height: 32rem; padding: 5.5rem 1rem 6rem; }
  .rv-feature { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; }
  .rv-tile { min-height: 15rem; }
  .rv-feature .rv-tile:first-child { grid-column: auto; grid-row: auto; min-height: 23rem; }
  .rv-mosaic { column-count: 1; }
  .rv-band { padding: 3rem 0; }
  .rv-find { margin-top: -1.75rem; }
  .rv-find .btn { padding-left: 1rem; padding-right: 1rem; }
  .post-body { font-size: 1.0625rem; }
  .post-body blockquote { margin-left: 0; font-size: 1.25rem; }
  .rv-post-hero-inner { padding: 6.5rem 1rem 2rem; }
}
