/* Fuentes alojadas en el sitio (site/fonts, licencia SIL OFL; ver fonts/LICENCIAS.txt): solo los caracteres latinos, que incluyen á, ñ, ¿ y ¡.
   Bricolage Grotesque es variable: un solo archivo con todos los grosores y el tamaño óptico. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/bricolage-grotesque.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dm-mono-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/young-serif-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Paleta sacada de sus propias fotos: pino (edificio teal), vino (suéter), mostaza (fachada), hoja (otoño) */
:root {
  --hoja: #e9dfcb;
  --hoja-2: #ddd0b5;
  --tinta: #16231f;
  --apagado: #52594f;
  --pino: #1e5651;
  --vino: #6b2433;
  --mostaza: #c48a2b;
  --line: rgba(22, 35, 31, .2);
  --f-display: "Young Serif", Georgia, serif;
  --f-body: "Bricolage Grotesque", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --nav-h: 62px;
  --paper: #f6f1e6; --paper-hi: #fbf8f1; /* papel de las postales */
  --focus: var(--vino); /* sobre fondos oscuros se cambia por hoja */
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
section[id] { scroll-margin-top: var(--nav-h); }
body { background: var(--hoja); color: var(--tinta); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sessions, .lightbox, .hero-photo { --focus: var(--hoja); }
h1, h2, h3, .brand, .vtitle { font-family: var(--f-display); font-weight: 400; line-height: 1.06; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, min(5.6vw, 8.5vh), 5rem); font-size: clamp(2.2rem, min(5.6vw, 8.5svh), 5rem); margin-bottom: 1.5rem; }
h1 em { font-style: normal; color: var(--vino); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--mostaza) 55%, transparent) 62%); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
section { padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.tag { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; color: var(--apagado); }

/* Botones y enlaces */
.btn { display: inline-block; padding: .85rem 1.5rem; background: var(--vino); color: var(--hoja); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 4px; transition: background .2s; }
.btn:hover { background: var(--tinta); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-wa { display: inline-flex; align-items: center; gap: .45em; }
.btn-wa svg { width: 1.1em; height: 1.1em; flex: none; } /* el ícono de WhatsApp en el color del texto del botón, sin su verde */
.btn-lg { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn-light { background: var(--hoja); color: var(--tinta); }
.btn-light:hover { background: var(--mostaza); }
.link { margin-left: 1.4rem; text-underline-offset: 5px; }

/* Nav */
.nav { min-height: var(--nav-h); position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem var(--pad); background: color-mix(in srgb, var(--hoja) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.35rem; text-decoration: none; }
.nav nav { display: flex; gap: 1.6rem; font-size: .92rem; }
.nav nav a { text-decoration: none; color: var(--apagado); }
.nav nav a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 5px; }
/* la sección en la que estás (app.js pone aria-current), con la misma marca que el idioma actual */
.nav nav a[aria-current] { color: var(--tinta); text-decoration: underline 2px var(--mostaza); text-underline-offset: 5px; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.lang { background: none; border: 0; font: inherit; font-family: var(--f-mono); font-size: .76rem; color: var(--apagado); cursor: pointer; }
/* el idioma actual se marca (el <html lang> lo cambia app.js) */
:root[lang="es"] .lang [lang="es"], :root[lang="en"] .lang [lang="en"] { color: var(--tinta); font-weight: 500; text-decoration: underline 2px var(--mostaza); text-underline-offset: 4px; }

/* Hero: la foto sangra hasta el borde derecho */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr minmax(0, 44vw); gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch; height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 480px; padding: 0 0 0 var(--pad); }
.hero-text { align-self: center; padding: 1.5rem 0; }
.hero-text .tag { margin-bottom: 1.4rem; }
.lead { max-width: 28rem; color: var(--apagado); margin-bottom: 2rem; font-size: 1.12rem; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: reveal 1.2s cubic-bezier(.2,.7,.2,1) both; transition: opacity .35s; }
.hero-photo.swap img { opacity: 0; }
.hero-photo figcaption { position: absolute; left: 1rem; top: 1rem; display: flex; gap: .4rem; }
.hero-photo figcaption > * { color: var(--hoja); background: color-mix(in srgb, var(--tinta) 72%, transparent); padding: .3rem .7rem; border-radius: 2px; }
.hero-next { border: 0; cursor: pointer; }
.hero-next:hover { background: var(--vino); }
/* el fondo de la portada sale de la foto (app.js): sus colores, a la altura donde están; más presentes junto a la foto y casi papel a la izquierda */
.bleed canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.bleed canvas.on { opacity: 1; }
/* abajo también se disuelve, para que no corte en seco contra el portafolio */
.hero > .bleed { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 44vw, rgb(0 0 0 / .55) 72%, rgb(0 0 0 / .15)), linear-gradient(#000 70%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 44vw, rgb(0 0 0 / .55) 72%, rgb(0 0 0 / .15)), linear-gradient(#000 70%, transparent); mask-composite: intersect; }
@keyframes reveal { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* Portafolio */
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 2.5rem; }
.section-head p { max-width: 30rem; color: var(--apagado); }

/* Sobre mí: una foto impresa y una postal sobre la mesa, con una etiqueta de Instagram pegada en la esquina.
   Las inclinaciones van en `rotate` (no en `transform`) para no chocar con la animación de .reveal. */
.about { display: flex; justify-content: center; align-items: center; overflow-x: clip; } /* clip: mientras llegan, la postal y la foto pueden asomar más allá del borde */
.paper { background-color: var(--paper); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.lifted { box-shadow: 0 30px 50px -30px rgba(22,35,31,.6), 0 2px 6px -2px rgba(22,35,31,.2); }
.print { position: relative; flex: none; width: min(32vw, 27.5rem); padding: .85rem; border-radius: 2px; rotate: -3.5deg; }
.about .print { transition: rotate .5s cubic-bezier(.2,.7,.2,1), translate .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.print img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 80%; }
@media (hover: hover) { .about .print:hover { rotate: -1.5deg; translate: 0 -6px; box-shadow: 0 40px 60px -30px rgba(22,35,31,.65), 0 2px 6px -2px rgba(22,35,31,.2); } }
.postcard { position: relative; z-index: 1; width: min(48rem, 58vw); margin-left: -4rem; margin-top: 4.6rem; padding: 1.6rem 1.9rem 1.9rem; border-radius: 3px; rotate: 1.6deg; }
.postcard-head { text-align: center; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .4em; color: var(--apagado); margin-bottom: 1.3rem; }
.postcard-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0 1.9rem; }
.about-copy h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: .9rem; }
.about-copy p { font-size: clamp(1.12rem, 1.5vw, 1.28rem); }
.about-copy p.tools { margin-top: 1.3rem; font-size: clamp(.95rem, 1.2vw, 1.05rem); color: var(--apagado); }
.postcard-side { position: relative; display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 1.6rem; min-height: 16rem; }
/* estampilla con borde dentado (una máscara de medialunas alrededor del relleno) */
.stamp { --r: 3px; flex: none; align-self: flex-end; width: 7.1rem; padding: 6px; background: var(--paper-hi); rotate: 2deg; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15));
         -webkit-mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2 * var(--r) + 3px) calc(2 * var(--r) + 3px) round, linear-gradient(#000 0 0) content-box;
                 mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2 * var(--r) + 3px) calc(2 * var(--r) + 3px) round, linear-gradient(#000 0 0) content-box; }
.stamp img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.postmark { position: absolute; top: 2.8rem; right: clamp(2.2rem, 4vw, 3.6rem); width: clamp(9rem, 18vw, 12.6rem); aspect-ratio: 230 / 120; color: var(--tinta); opacity: .5; rotate: -10deg; pointer-events: none; }
.addr { list-style: none; padding: 0; margin-top: auto; font-family: var(--f-mono); font-size: clamp(.76rem, 1vw, .86rem); }
.addr li { padding: .55rem 0 .3rem; border-bottom: 1px solid var(--line); }
/* etiqueta de Instagram en dos partes; adentro todo va en em, así cambiando su font-size se escala entera */
.ig-label { position: absolute; z-index: 2; right: -1.4rem; top: -1.8rem; display: block; text-decoration: none; font-family: var(--f-mono); font-size: .92rem; color: var(--tinta);
            border-radius: calc(.7em + 3px); rotate: 4deg; transition: rotate .3s cubic-bezier(.2,.7,.2,1), scale .3s cubic-bezier(.2,.7,.2,1); }
.ig-label:hover { rotate: 1.5deg; scale: 1.04; }
.sticker { display: flex; align-items: stretch; padding: 3px; background: var(--paper-hi); border-radius: inherit; box-shadow: 0 8px 16px -8px rgba(0,0,0,.5); } /* el relleno es el borde blanco del sticker */
.ig-box { display: grid; place-items: center; padding: 0 .85em; background: var(--vino); color: var(--hoja); border-radius: .7em 0 0 .7em; }
.ig { width: 1.25em; height: 1.25em; }
.who { display: grid; padding: .5em 1.2em .55em .85em; line-height: 1.25; background: var(--paper-hi); border-radius: 0 .7em .7em 0; }
.who small { font-size: max(.76em, .56rem); letter-spacing: .12em; color: var(--apagado); }
.who span { font-family: var(--f-display); font-size: 1.28em; }
/* llegada en secuencia (una vez, cuando la sección entra en pantalla; app.js agrega .in):
   cae la foto, encima se desliza la postal, se timbra el matasellos y se pega la etiqueta.
   Las animaciones usan fill "backwards": al terminar, cada pieza vuelve a sus reglas normales (y al :hover). */
.stage:not(.in) :is(.print, .postcard, .postmark, .ig-label) { opacity: 0; }
.stage.in .print { animation: print-in .75s cubic-bezier(.2,.7,.2,1) backwards; }
.stage.in .postcard { animation: postcard-in .8s cubic-bezier(.2,.7,.2,1) .3s backwards; }
.stage.in .postmark { animation: postmark-in .35s cubic-bezier(.5,0,.75,0) 1s backwards; }
.stage.in .ig-label { animation: label-in .45s cubic-bezier(.3,1.5,.5,1) 1.25s backwards; }
@keyframes print-in { from { opacity: 0; translate: -1.5rem 2.5rem; rotate: -10deg; } }
@keyframes postcard-in { from { opacity: 0; translate: 3rem 3.5rem; rotate: 6deg; } }
@keyframes postmark-in { from { opacity: 0; scale: 1.35; } }
@keyframes label-in { from { opacity: 0; scale: 1.35; rotate: 14deg; } }
@media (prefers-reduced-motion: reduce) { .about .print, .ig-label { transition: none; } .stage.in :is(.print, .postcard, .postmark, .ig-label) { animation: none; } }

/* Sesiones: sobre pino; retratos es el servicio principal (dos planes en tarjetas claras), el resto va en filas */
.sessions { background: var(--pino); color: var(--hoja); padding-block: clamp(3rem, 5vw, 4.5rem); }
.sessions .section-head { align-items: center; margin-bottom: 1.6rem; }
.sessions .section-head h2 { color: var(--hoja); }
/* nota al pie del tarifario: letra chica en mono, más apagada que los precios; la flecha baja un poco al pasar el mouse */
.rates-note { margin-top: 1.3rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; }
.rates-note a { color: rgba(233,223,203,.78); text-decoration-color: rgba(233,223,203,.4); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.rates-note a:hover { color: var(--hoja); text-decoration-color: var(--mostaza); }
.rates-note span { display: inline-block; transition: translate .25s cubic-bezier(.2,.7,.2,1); }
.rates-note a:hover span { translate: 0 .15em; }
.rates { list-style: none; padding: 0; border-top: 1px solid rgba(233,223,203,.3); }
.rates li { display: grid; grid-template-columns: 1fr 2fr auto; gap: 1.5rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid rgba(233,223,203,.3); }
.rates h3 { font-size: 1.7rem; }
.rates p { color: rgba(233,223,203,.88); }
.rates .price { color: var(--hoja); text-align: right; white-space: nowrap; font-family: var(--f-mono); font-size: .85rem; }
.rates .rate-main { grid-template-columns: 1fr 2fr; align-items: start; }
.rate-main h3 { margin-bottom: .3rem; }
/* lista de precios: nombre y detalle, puntos guía y monto, como en una carta */
.plans { display: grid; gap: 1.1rem; }
.plan { display: flex; align-items: baseline; gap: .7rem; }
.plan b { flex: 0 0 7rem; font-weight: 500; font-size: 1.15rem; } /* ancho común: "1 hora" y "2 horas" quedan alineadas */
.plan-detail { color: rgba(233,223,203,.88); }
.leader { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted rgba(233,223,203,.45); transform: translateY(-.28em); }
/* la línea punteada se traza de izquierda a derecha (del detalle al precio) cuando el plan aparece; la segunda, un poco después */
.leader { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.4,0,.2,1) .5s; }
.reveal.in .leader { clip-path: inset(0); }
.plan + .plan .leader { transition-delay: .8s; }
@media (prefers-reduced-motion: reduce) { .leader { clip-path: none; transition: none; } }
.plan-price { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.plan-price small { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; opacity: .85; }

/* Vídeo */
/* Vídeo: como una sala de proyección: café casi negro con grano de película y bordes más oscuros,
   perforaciones de película arriba y abajo, y un halo cálido detrás del vídeo de YouTube, como la luz de la pantalla */
.video { position: relative; background-color: #2b211d; background-image: radial-gradient(ellipse 80% 70% at 50% 45%, transparent, rgba(0,0,0,.45)), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .95  0 0 0 0 .88  0 0 0 0 .75  0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); color: var(--hoja); --focus: var(--hoja); color: var(--hoja); --focus: var(--hoja); }
.video::before, .video::after { content: ""; position: absolute; left: 0; right: 0; height: 11px; pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(233,223,203,.14) 9px 23px, transparent 23px 32px); }
.video { padding-block: clamp(3.25rem, 5vw, 3.75rem); }
.video::before { top: 14px; }
.video::after { bottom: 14px; }
.video .section-head p { color: rgba(233,223,203,.8); }
.video .tag { color: rgba(233,223,203,.66); }
.video-lead .vframe { box-shadow: 0 0 110px 6px rgba(196,138,43,.2), 0 22px 40px -24px rgba(0,0,0,.8), 0 2px 5px -2px rgba(0,0,0,.4); }

/* cada vídeo va como una copia impresa: borde de papel, sombra, una cinta arriba y una leve inclinación */
.vframe { position: relative; padding: .55rem; background: var(--paper-hi); border-radius: 2px; box-shadow: 0 22px 40px -24px rgba(22,35,31,.7), 0 2px 5px -2px rgba(22,35,31,.25); rotate: var(--tilt, 0deg); }
.vframe::before { content: ""; position: absolute; z-index: 3; top: -.7rem; left: 50%; width: 5.2rem; height: 1.4rem; translate: -50% 0; rotate: calc(var(--tilt, 0deg) * -2 + 2deg);
                  background: color-mix(in srgb, var(--mostaza) 55%, transparent); clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 100% 0, 94% 50%, 100% 100%, 88% 92%, 82% 100%, 0 100%, 6% 50%); }
.video-lead .vframe { --tilt: .8deg; }
.video-row > .vitem:nth-child(2) .vframe { --tilt: -1.3deg; }
.video-row > .vitem:nth-child(3) .vframe { --tilt: .9deg; }
.video-row > .vitem:nth-child(4) .vframe { --tilt: -.6deg; }
.video .vcard { background: rgba(233,223,203,.06); } /* mientras carga la miniatura */

/* arriba la presentación y YouTube lado a lado; abajo los vídeos de Instagram en fila (3 en computador, 2 en pantallas medianas) */
.video-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 2rem; align-items: start; max-width: 74rem; margin-inline: auto; } /* en pantallas anchas no sigue creciendo */
.video-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 2rem 3rem; align-items: center; } /* YouTube hasta 27rem: que la sección quepa mejor en una pantalla */
.video .section-head { display: block; margin-bottom: 0; }
.video .section-head h2 { margin-bottom: .9rem; }
.video-row > .vitem { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; } /* etiqueta, título y vídeo alineados entre columnas aunque un título ocupe dos líneas */
.vitem .vtitle { align-self: end; }
@media (min-width: 1001px) { .video-row > .vitem .vframe { max-width: 19.5rem; } } /* las tarjetas de Instagram son altas: un poco más angostas para que la sección quepa en una pantalla */
.vitem .tag { margin-bottom: .35rem; }
.vitem .vtitle { margin-bottom: 1rem; }
@media (max-width: 1000px) { .video-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; aspect-ratio: 4/3; padding: 1.2rem; text-decoration: none; overflow: hidden; border-radius: 3px; background: var(--hoja-2); }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.7)); }
.vcard:has(img) { color: #fff; }
.vcard:has(img) .tag { color: rgba(255,255,255,.8); }
.vcard > *:not(img) { position: relative; z-index: 1; }
/* YouTube: en 16:9 (la proporción del vídeo), con un botón de play; al tocarlo se cambia por el reproductor */
.vcard-yt { aspect-ratio: 16 / 9; padding: 0; }
.vcard-yt::after { display: none; } /* sin texto encima, no hace falta oscurecer la base */
.play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.vcard > .play { position: absolute; }
.play svg { width: clamp(3.6rem, 8vw, 5rem); height: clamp(3.6rem, 8vw, 5rem); padding: .9rem; border-radius: 50%; color: var(--tinta); background: color-mix(in srgb, var(--hoja) 92%, transparent);
            box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: scale .25s cubic-bezier(.2,.7,.2,1), background .25s; }
.vcard-yt:hover .play svg, .vcard-yt:focus-visible .play svg, .vcard-ig:hover .play svg, .vcard-ig:focus-visible .play svg { scale: 1.08; background: var(--mostaza); }
.vcard-yt.is-playing { padding: 0; background: #000; }
.vcard-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* PROVISORIO (hasta tener los archivos): tarjetas de Instagram (el diseño interno es de Instagram y no se puede cambiar) */
/* Instagram: tarjeta vertical con el primer fotograma del reel, un play y "Ver en Instagram"; al tocarla se abre la publicación en otra pestaña.
   Sin imagen (.no-img) queda un fondo de color. */
.video .vcard-ig { aspect-ratio: 4 / 5; padding: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--vino) 70%, #2b211d), #2b211d); }
.vcard-ig::after { display: none; }
.vcard-ig:has(img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .65)); }
.vcard-ig .play { z-index: 2; }
.vcard > .vlink { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: .9rem; display: flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: #fff; }
.vlink .ig { width: 1.1rem; height: 1.1rem; }
.vcard:hover .vtitle { text-decoration: underline; text-underline-offset: 5px; }
.vtitle { font-size: 1.35rem; }

/* Contacto */
.contact { text-align: center; padding-block: clamp(5rem, 11vw, 9rem); }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin-bottom: 2.2rem; }
.contact-links p { margin-top: 1.8rem; color: var(--apagado); }
/* postal de vuelta: el mensaje de WhatsApp se arma completando la frase */
.reply { width: min(46rem, 100%); margin: 0 auto; padding: 1.6rem 1.9rem 1.9rem; border-radius: 3px; text-align: left; rotate: -1.2deg; }
.reply-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 1.9rem; }
.reply-msg { font-family: var(--f-display); font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.55; margin-bottom: 1.5rem; }
.reply-msg select, .reply-msg input { font: inherit; color: var(--vino); background: transparent; border: 0; border-bottom: 2px dotted color-mix(in srgb, var(--vino) 55%, transparent); border-radius: 0; padding: 0 .1em; max-width: 100%; }
.reply-msg select { -webkit-appearance: none; appearance: none; padding-right: 1.1em; cursor: pointer;
                     background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%236b2433' stroke-width='1.8'/></svg>") right .1em center / .6em no-repeat; }
.reply-msg input { width: 7.5em; } /* app.js ajusta el ancho de ambos campos a su texto */
.reply-msg input::placeholder { color: var(--apagado); opacity: .7; }
.reply-msg select.is-empty { color: color-mix(in srgb, var(--apagado) 70%, transparent); } /* "¿dónde?" sin elegir se ve como el texto de ejemplo de un campo */
.reply-msg select.is-empty option { color: var(--vino); }
.reply .postcard-side { min-height: 0; }
.reply .stamp { width: 5.2rem; }
footer { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; padding: 1.5rem var(--pad); border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .76rem; color: var(--apagado); }

/* Series del portafolio: una tarjeta por serie, con "hojas" detrás que sugieren que hay más fotos */
/* grilla por filas: el orden visual (izquierda a derecha, arriba a abajo) es el del HTML, igual en móvil y en el visor */
.portfolio { overflow-x: clip; isolation: isolate; } /* clip: por si una hoja abierta asoma más allá del borde; isolate: ver el halo, más abajo */
/* la serie que está al centro de la pantalla (o bajo el mouse) se enciende: detrás de la pila, un halo con los colores de su portada,
   cada uno cerca de donde está en la foto (app.js dibuja una cuadrícula diminuta que aquí se estira, se difumina y se disuelve en el papel) */
/* el halo queda debajo de todas las tarjetas y títulos (z-index negativo dentro del portafolio), pero se mueve con su serie.
   Por eso el artículo de la serie no puede tener opacidad ni transform (lo encerrarían): el revelado va en sus hijos.
   Las secciones vecinas se pintan encima, para que si el halo de la primera o la última fila se asoma, quede bajo su texto. */
.series { position: relative; }
.series.reveal { opacity: 1; transform: none; transition: none; }
.series.reveal > :not(.glow) { opacity: 0; transform: translateY(22px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.series.reveal.in > :not(.glow) { opacity: 1; transform: none; }
.hero { z-index: 1; }
.about { position: relative; }
.glow { position: absolute; inset: -40% -75%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent); mask-image: radial-gradient(closest-side, #000 50%, transparent); }
.glow canvas { display: block; width: 100%; height: 100%; filter: blur(28px); }
.series.is-lit .glow { opacity: 1; }
/* y se levanta del papel: la pila sube un poco y bajo ella aparece una sombra larga y suave, teñida con el tono de la foto
   (app.js fija --shade). Cae hacia abajo, como las demás sombras del sitio (la luz viene de arriba). */
.stack { transition: translate .7s cubic-bezier(.2,.7,.2,1); }
.series .stack::after { content: ""; position: absolute; inset: 0; z-index: -3; border-radius: 3px; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  box-shadow: 0 38px 50px -24px rgb(var(--shade, 22 35 31) / .7), 0 16px 24px -14px rgb(var(--shade, 22 35 31) / .45); }
.series.is-lit .stack { translate: 0 -6px; }
.series.is-lit .stack::after { opacity: 1; }
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.8rem 2.4rem; align-items: center; } /* al centro de la fila: las portadas horizontales (más bajas) quedan a media altura de las verticales */
@media (max-width: 1000px) { .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.series-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.stack { position: relative; display: block; margin: 0 14px 14px 0; isolation: isolate; }
.stack { --fan: 0; --ar: 1; --ay: 1; } /* --ar y --ay: cuánto se abre hacia el lado y hacia arriba */
/* las hojas de atrás: la 2.ª y 3.ª foto de la serie (app.js las agrega); --fan va de 0 (apiladas) a 1 (abiertas en abanico).
   Con mouse se abren al pasar por encima; en pantallas táctiles se abren a medida que la portada sube al hacer scroll. */
.sheet { position: absolute; inset: 0; z-index: -1; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--hoja-2); transform-origin: 50% 100%;
          box-shadow: 0 8px 16px -12px rgba(22,35,31,.55);
          transform: translate(calc(7px + var(--fan) * var(--ar) * 4px), calc(7px - var(--fan) * var(--ay) * 5px)) rotate(calc(var(--fan) * var(--ar) * 2.4deg)); }
.sheet + .sheet { z-index: -2; background: color-mix(in srgb, var(--hoja-2) 82%, var(--tinta));
                  transform: translate(calc(14px + var(--fan) * var(--ar) * 1px), calc(14px - var(--fan) * var(--ay) * 10px)) rotate(calc(var(--fan) * var(--ar) * 4.2deg)); }
.sheet img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .sheet { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .series-open:hover .stack, .series-open:focus-visible .stack { --fan: 1; }
}
.cover { display: block; width: 100%; height: auto; border-radius: 3px; position: relative; }
.series-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; }
/* cuántas fotos tiene la serie, sobre la portada (como las etiquetas de la foto de portada) */
.stack .count { position: absolute; left: .7rem; top: .7rem; z-index: 1; color: var(--hoja); background: color-mix(in srgb, var(--tinta) 72%, transparent); padding: .3rem .7rem; border-radius: 2px; }
.series-title { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.series-open:hover .series-title { text-decoration: underline; text-underline-offset: 5px; }

/* Galería de un álbum: sobre el papel, todas las fotos del álbum en columnas que respetan su proporción; al tocar una se abre el visor */
.gallery { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; background: var(--hoja); }
.gallery[hidden] { display: none; }
.gal-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem var(--pad); background: color-mix(in srgb, var(--hoja) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.gal-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; }
.gal-title { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; }
.gal-x { flex: none; background: none; border: 0; color: var(--tinta); font-size: 2.4rem; line-height: 1; padding: 0 .5rem; cursor: pointer; }
.gal-body { padding: clamp(1.2rem, 3vw, 2.4rem) var(--pad) 4rem; }
.gal-grid { display: grid; gap: 1.2rem; margin: 0 auto; max-width: calc(var(--cols, 3) * 24rem); }
.gal-row { display: grid; align-items: start; gap: 1.2rem; } /* las columnas de cada fila las fija app.js según la proporción de sus fotos */
.gal-item { display: block; width: 100%; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: var(--hoja-2); cursor: zoom-in; scroll-margin-block: 5rem 1.5rem; box-shadow: 0 12px 24px -16px rgba(22, 35, 31, .55); }
.gal-item img { display: block; width: 100%; height: auto; }
.gal-item.away { visibility: hidden; } /* la foto que se ve en el visor sale de su miniatura y vuelve a ella */
.gal-row { width: 100%; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  /* aparecen al entrar en pantalla (app.js agrega .in), una tras otra dentro de su fila (--d) */
  .gal-item:not(.in) { opacity: 0; transform: translateY(34px) scale(.97); }
  .gal-item { transition: opacity .7s ease var(--d, 0s), transform .85s cubic-bezier(.2,.7,.2,1) var(--d, 0s), translate .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
  .gal-item.instant { transition: none; }
  @media (hover: hover) { .gal-item:hover { translate: 0 -3px; box-shadow: 0 20px 30px -16px rgba(22, 35, 31, .6); } }
}
@media (max-width: 860px) {
  .gal-grid { max-width: none; gap: .8rem; }
  .gal-row { gap: .8rem; }
}

/* Lightbox: el fondo toma el tono de la foto; abajo, su paleta con el peso real de cada color */
@property --lb-bg { syntax: "<color>"; inherits: true; initial-value: #111; }
@property --lb-glow { syntax: "<color>"; inherits: true; initial-value: #2a2a2a; }
.lightbox { position: fixed; inset: 0; z-index: 50; overscroll-behavior: contain; touch-action: pinch-zoom; /* los arrastres los maneja app.js (la foto sigue al dedo) */ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lb-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 40%, var(--lb-glow), var(--lb-bg) 70%); transition: --lb-bg .6s, --lb-glow .6s; }
.lightbox figure { display: grid; justify-items: center; gap: .9rem; min-width: 0; }
.lb-head { display: flex; align-items: baseline; gap: .9rem; color: rgba(255,255,255,.8); }
.lb-head #lb-title { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: 0; color: #fff; }
.lb-head #lb-count { color: rgba(255,255,255,.5); }
.lightbox img { max-width: 100%; max-height: calc(100svh - 13rem); object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transition: opacity .25s; }
.lightbox.swap img { opacity: 0; }
/* solo la foto: al tocarla se esconde todo lo demás (visibility, para que el fundido del arrastre no lo vuelva a mostrar) */
.lb-fade { transition: opacity .25s, visibility .25s; }
.lightbox.clean .lb-fade { opacity: 0; visibility: hidden; }
.lightbox figcaption { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: end; width: min(100%, 40rem); }
.strip-wrap { display: grid; gap: .45rem; }
.strip-wrap .tag { color: rgba(255,255,255,.65); }
.strip { display: flex; height: 2.4rem; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.swatch { position: relative; border: 0; padding: 0; cursor: copy; min-width: 0; }
.swatch::after { content: attr(data-hex); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: .68rem; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .2s; }
.swatch:hover::after, .swatch:focus-visible::after { opacity: 1; }
.swatch:focus-visible { outline-offset: -3px; }
.lb-cta { background: var(--hoja); color: var(--tinta); white-space: nowrap; }
.lb-cta:hover { background: var(--mostaza); }
.lightbox > button { background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; padding: 1rem; cursor: pointer; }
.lb-x { position: absolute; top: .4rem; right: .8rem; z-index: 1; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-photo img, .btn, .lb-bg, .swatch::after, .sheet, .bleed canvas, .glow, .stack, .series .stack::after { transition: none; } .lightbox img, .lb-fade { transition: none; } .reveal, .series.reveal > :not(.glow) { opacity: 1; transform: none; transition: none; }
  .series.is-lit .stack { translate: none; } /* sin movimiento, la tarjeta encendida no se levanta (al hacer scroll en móvil saltaría): queda el halo y la sombra */ .hero-photo img { animation: none; } html { scroll-behavior: auto; } }

/* Preguntas frecuentes: en el orden en que pasa una sesión (antes, el día, después); una línea mostaza las une como línea de tiempo y se dibuja al aparecer.
   Fondo un tono más oscuro para que el contacto, que viene después, se lea como el cierre */
.faq { background: var(--hoja-2); }
.faq-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.faq-step { position: relative; padding-top: 1.7rem; }
.faq-step::before { content: ""; position: absolute; top: .3rem; left: 0; right: calc(clamp(1.5rem, 3vw, 3rem) * -1); height: 2px; background: color-mix(in srgb, var(--mostaza) 75%, transparent);
                    clip-path: inset(0 100% 0 0); transition: clip-path .6s linear .3s; }
.faq-step:nth-child(2)::before { transition-delay: .9s; }
.faq-step:nth-child(3)::before { transition-delay: 1.5s; right: 0; }
.faq-step.in::before { clip-path: inset(0); }
.faq-step::after { content: ""; position: absolute; top: 0; left: 0; width: .7rem; height: .7rem; border-radius: 50%; background: var(--mostaza); } /* el punto de cada etapa */
.faq-step:nth-child(2) { transition-delay: .12s; }
.faq-step:nth-child(3) { transition-delay: .24s; }
.faq-when { margin-bottom: 1.1rem; color: var(--tinta); text-transform: uppercase; }
.faq-q + .faq-q { margin-top: 1.6rem; }
.faq-q summary { list-style: none; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: .45rem; }
.faq-q p { color: var(--apagado); font-size: .98rem; max-width: 34rem; }
@media (prefers-reduced-motion: reduce) { .faq-step::before { clip-path: none; transition: none; } }
/* la respuesta se abre deslizándose (en navegadores que no lo soportan, aparece de golpe); .is-ready evita que se anime el cierre inicial al cargar */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .faq { interpolate-size: allow-keywords; }
  .faq.is-ready .faq-q::details-content { block-size: 0; overflow: clip; transition: block-size .35s cubic-bezier(.2,.7,.2,1), content-visibility .35s allow-discrete; }
  .faq.is-ready .faq-q[open]::details-content { block-size: auto; }
}

@media (max-width: 860px) {
  /* móvil: la línea de tiempo baja por la izquierda */
  .faq-steps { grid-template-columns: 1fr; gap: 0; }
  .faq-step { padding: 0 0 2.4rem 1.7rem; }
  .faq-step::before { top: .35rem; bottom: 0; left: calc(.35rem - 1px); right: auto; width: 2px; height: auto; clip-path: inset(0 0 100% 0); }
  .faq-step:nth-child(3)::before { display: none; }
  .faq-step::after { top: .12rem; }
  .faq-step:nth-child(n) { transition-delay: 0s; }
  .faq-step:nth-child(n)::before { transition-delay: .3s; } /* aquí cada etapa aparece sola al bajar */
  /* móvil: solo se ven las preguntas; la respuesta se despliega al tocar (un + mostaza que gira a ×) */
  .faq-when { margin-bottom: .3rem; }
  .faq-q + .faq-q { margin-top: 0; border-top: 1px solid var(--line); }
  .faq-q summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .faq-q summary::after { content: ""; flex: none; width: .85rem; height: .85rem; transition: rotate .3s cubic-bezier(.2,.7,.2,1);
      background: linear-gradient(var(--mostaza) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--mostaza) 0 0) center / 2px 100% no-repeat; }
  .faq-q[open] summary::after { rotate: 45deg; }
  .faq h3 { font-size: 1.15rem; margin-bottom: 0; }
  .faq-q p { padding-bottom: 1rem; }
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; padding: 0; }
  .hero-text { padding: 2.5rem var(--pad); }
  /* móvil: los colores de la foto siguen por detrás del texto y se disuelven en el papel */
  .hero > .bleed { -webkit-mask-image: linear-gradient(#000 120vw, transparent); mask-image: linear-gradient(#000 120vw, transparent); }
  /* móvil: foto a todo el ancho y sin recorte (todas son 2:3); su base se disuelve en el color de fondo y el titular sube sobre esa zona */
  .hero-photo { order: -1; }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; -webkit-mask-image: linear-gradient(#000 58%, transparent 96%); mask-image: linear-gradient(#000 58%, transparent 96%); }
  .hero-photo figcaption { top: .9rem; left: var(--pad); right: var(--pad); flex-wrap: wrap; }
  .hero-text { position: relative; margin-top: -5.5rem; padding-top: 0; }
  /* sobre mí: la foto se achica y la postal se monta encima, para que ambas quepan en una pantalla */
  .about { flex-direction: column; align-items: stretch; padding-block: 2.2rem 2.8rem; }
  .print { width: 58vw; align-self: flex-start; padding: .5rem; rotate: -4deg; }
  .postcard { width: auto; margin: -5.2rem 0 0 1.4rem; padding: 1rem 1.1rem 1.15rem; rotate: 1.2deg; }
  .postcard-head { font-size: .6rem; margin-bottom: .5rem; }
  .postcard-body { grid-template-columns: 1fr; gap: 0; }
  .about-copy h2 { font-size: 1.6rem; margin-bottom: .4rem; }
  .about-copy p { font-size: 1rem; line-height: 1.5; }
  .about-copy p.tools { font-size: .84rem; margin-top: .55rem; }
  .postcard-side { flex-direction: row; align-items: flex-end; gap: .9rem; border-left: 0; border-top: 1px solid var(--line); padding: .8rem 0 0; margin-top: .9rem; min-height: 0; }
  .stamp { order: 2; width: 3.7rem; }
  .addr { flex: 1; margin-top: 0; font-size: .7rem; }
  .addr li { padding: .35rem 0 .2rem; }
  .postmark { top: .55rem; right: 1.2rem; width: 6rem; opacity: .4; } /* sobre la esquina de la estampilla */
  .ig-label { right: .2rem; top: -2.15rem; font-size: .74rem; }
  .reply { padding: 1.1rem 1.1rem 1.3rem; rotate: -.8deg; }
  .reply-body { grid-template-columns: 1fr; }
  .reply-msg { font-size: 1.25rem; margin-bottom: 1.1rem; } /* 20 px: con menos de 16 px, iOS acerca la pantalla al tocar un campo */
  .reply .btn { display: block; text-align: center; }
  .reply .postcard-side { flex-direction: row; align-items: flex-end; gap: .9rem; border-left: 0; border-top: 1px solid var(--line); padding: .8rem 0 0; margin-top: 1.1rem; }
  .reply .stamp { order: 2; width: 3.4rem; }
  .rates li, .rates .rate-main { grid-template-columns: 1fr; gap: .6rem; }
  .rates .rate-main { gap: 1.4rem; }
  /* móvil: nombre, línea punteada y precio en una fila; el detalle va debajo */
  .plan { display: grid; grid-template-columns: auto 1fr auto; gap: .15rem .7rem; align-items: baseline; }
  .plan b { grid-column: 1; grid-row: 1; }
  .plan .leader { grid-column: 2; grid-row: 1; min-width: 1rem; }
  .plan-price { grid-column: 3; grid-row: 1; }
  .plan-detail { grid-column: 1 / -1; grid-row: 2; }
  .rates .price { text-align: left; }
  .video-row { grid-template-columns: 1fr; }
  .video-lead { display: block; }
  .video .section-head { margin-bottom: 2rem; }
  /* barra de secciones (reemplaza al menú): aparece desde Portafolio; un círculo con el color de la sección se desliza hasta la sección en la que estás */
  .where { display: block; position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 30;
           background-color: var(--paper); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); border-radius: 20px; /* papel con grano, como las postales */
           box-shadow: 0 14px 30px -14px rgba(22,35,31,.55), 0 0 0 1px var(--line);
           translate: 0 calc(100% + 1.5rem); transition: translate .45s cubic-bezier(.2,.7,.2,1); }
  .where.is-on { translate: 0 0; }
  .where.typing { translate: 0 calc(100% + 1.5rem); } /* con el teclado abierto (escribiendo en la postal) se esconde */
  .where ul { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: .4rem .25rem .45rem; }
  .where a { display: grid; justify-items: center; gap: .3rem; padding: .1rem 0; color: var(--apagado); text-decoration: none; font-size: .68rem; line-height: 1.1; white-space: nowrap; transition: color .3s; }
  .where a { -webkit-tap-highlight-color: transparent; }
  .where svg { width: 2.3rem; height: 2.3rem; padding: .5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transition: color .3s, scale .2s; }
  .where a:active svg { scale: .86; } /* se hunde un poco al apretarlo */
  .where a[aria-current] { color: var(--tinta); font-weight: 600; }
  .where a[aria-current] svg { color: var(--hoja); }
  .where-mark { position: absolute; left: 0; top: .5rem; width: 2.3rem; height: 2.3rem; margin-left: -1.15rem; border-radius: 50%; background: var(--where-c, var(--tinta)); /* el color de la sección (app.js) */
                 translate: var(--x, 0) 0; transition: translate .45s cubic-bezier(.2,.7,.2,1), background-color .6s ease; }
  .where:not(.has-current) .where-mark { opacity: 0; }

  footer { padding-bottom: 6.5rem; } /* que la barra no tape el pie */
  .link { margin-left: 0; }
  .brand { font-size: 1.15rem; white-space: nowrap; }
  .lang { white-space: nowrap; }
  .nav-actions { gap: .6rem; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox img { max-height: calc(100svh - 17rem); }
  .lightbox figcaption { grid-template-columns: 1fr; }
  .lb-cta { text-align: center; }
  .series-grid { grid-template-columns: minmax(0, 1fr); }
  .stack { --ar: .35; --ay: 2.6; } /* móvil: la portada ocupa casi todo el ancho, así que la pila se abre más hacia arriba que hacia el lado */
  /* flechas sobre los bordes de la foto, a media altura de ella (--lb-mid lo calcula app.js), para quien no desliza.
     Solo un trazo fino pegado al borde, para tapar lo mínimo; el área de toque sigue siendo de 44 px */
  .lightbox > button.lb-p, .lightbox > button.lb-n { position: absolute; top: var(--lb-mid, 50%); translate: 0 -50%; z-index: 1; width: 2.75rem; height: 2.75rem; padding: 0; display: grid; align-items: center;
    font-size: 0; opacity: .9; filter: drop-shadow(0 0 2px rgba(0,0,0,.55)) drop-shadow(0 0 6px rgba(0,0,0,.3)); }
  .lightbox > button.lb-p::before, .lightbox > button.lb-n::before { content: ""; width: .75rem; height: .75rem; border: solid #fff; border-width: 1.75px 0 0 1.75px; }
  .lightbox > button.lb-p { left: 1rem; justify-items: start; padding-left: .55rem; }
  .lightbox > button.lb-p::before { rotate: -45deg; }
  .lightbox > button.lb-n { right: 1rem; justify-items: end; padding-right: .55rem; }
  .lightbox > button.lb-n::before { rotate: 135deg; }
  .lightbox > button.lb-p:active, .lightbox > button.lb-n:active { opacity: 1; }
}

/* la pastilla de secciones solo existe en móvil */
@media (min-width: 861px) { .where { display: none; } }
@media (prefers-reduced-motion: reduce) { .where, .where-mark, .where a, .where svg { transition: none; } }

/* teléfonos: en el menú, el botón de WhatsApp queda solo con el ícono (con "Escríbeme" no cabe junto al nombre y el idioma);
   el nombre accesible sigue siendo "Escríbeme por WhatsApp", y el botón grande de la portada lo dice con todas sus letras */
@media (max-width: 420px) {
  .nav .btn-wa { padding: .5rem .6rem; }
  .nav .btn-wa span { display: none; }
  .nav .btn-wa svg { width: 1.3em; height: 1.3em; }
}

/* teléfonos muy angostos: el menú (nombre, idioma y WhatsApp) se aprieta (desde 375 px ya cabe; va al final para ganarle a las reglas de móvil) */
@media (max-width: 374px) {
  :root { --pad: 1rem; } /* el margen lateral de toda la página, para que el menú siga alineado con el contenido */
  .nav { gap: .5rem; }
  .brand { font-size: 1rem; }
  .nav-actions { gap: .5rem; }
  .nav .btn-sm { padding: .45rem .65rem; font-size: .8rem; }
}
