/* ==========================================================
   Fernando Sanz · pintor — estilos
   Estilo clásico y sobrio en blanco y negro: el color lo ponen los cuadros.
   ========================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f3;     /* fondos de apoyo muy suaves */
  --ink: #111111;         /* texto y botones */
  --muted: #6b6966;       /* texto secundario (contraste AA sobre blanco) */
  --line: #e4e2de;        /* filetes finos */
  --sold: #b3261e;        /* único color de la interfaz: el punto de «Vendido» */

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1320px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; }
.eyebrow { font: 500 .7rem/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

/* Datos pendientes de confirmar: ocultos; visibles con ?revisar. .tbc--fijo siempre visible. */
.tbc { display: none; }
.revisar .tbc, .tbc--fijo { display: inline; background: #fff; color: #111; outline: 1px dashed #8a8580; outline-offset: -1px; padding: 0 .3em; font-style: normal; }

/* Botones: negro sólido o contorno, esquinas rectas */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.8em; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  font: 500 .74rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: background .25s, color .25s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 1.2em; font-size: .68rem; }
.link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; font: 500 .74rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; gap: .6em; }
.link::after { content: "→"; transition: transform .3s var(--ease); }
.link:hover::after { transform: translateX(5px); }

/* ---------- Cabecera ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  transition: height .45s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .nav { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); } }
.nav__logo img { height: 46px; width: auto; transition: height .45s var(--ease); }
.nav__logo { margin-right: auto; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
  font: 500 1.35rem/1 var(--font-serif); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: font-size .45s var(--ease); }
.nav__toggle { flex: none; order: 3; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; display: grid; place-content: center; gap: 7px; color: inherit; }
.nav__toggle span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__cta { flex: none; order: 2; display: none; }
.nav__links {
  position: fixed; inset: var(--nav-h) 0 auto; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 8px var(--gutter) 24px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s, transform .3s, visibility .3s;
}
.nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__links a { text-decoration: none; padding: 15px 0; border-bottom: 1px solid var(--line); font: 500 .76rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav__links a[aria-current="page"] { color: var(--ink); }
/* Inicio: el nombre más grande arriba; se reduce al bajar */
.page-home { --nav-h-big: 96px; }
.page-home .nav:not(.is-compact) { height: var(--nav-h-big); }
.page-home .nav:not(.is-compact) .nav__logo img { height: 66px; }
.page-home .nav:not(.is-compact) .nav__links { top: var(--nav-h-big); }

main { padding-top: var(--nav-h); animation: pageIn .45s var(--ease) backwards; }
.page-home main { padding-top: var(--nav-h-big); }
.footer { animation: pageIn .45s var(--ease) backwards; }
body.is-leaving main, body.is-leaving .footer { animation: pageOut .17s ease-in forwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-4px); } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.page-head { padding: 56px 0 36px; }
.page-head h1 { font-size: clamp(2.8rem, 9vw, 5.4rem); margin-bottom: .3em; }

/* ---------- Inicio ---------- */
.hero { display: grid; gap: 36px; padding: 28px 0 72px; align-items: center; }
.hero__art { margin: 0; }
.hero__art a { display: block; background: var(--bg-soft); }
.hero__art img { width: 100%; height: auto; box-shadow: 0 30px 60px -38px rgba(0,0,0,.45); }
.hero__art figcaption { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: right; }
.hero__art figcaption b { font: italic 400 1.05rem/1 var(--font-serif); color: var(--ink); }
.hero__photo { margin: 0 0 36px; position: relative; }
.hero__mini { position: absolute; right: -10px; bottom: -36px; width: 38%; max-width: 230px; background: #fff; padding: 8px 8px 6px; text-decoration: none; color: var(--muted);
  box-shadow: 0 22px 40px -18px rgba(0,0,0,.45); transition: transform .4s var(--ease); }
.hero__mini:hover { transform: translateY(-4px) rotate(-1deg); }
.hero__mini img { width: 100%; height: auto; display: block; }
.hero__mini span { display: block; font-size: .68rem; margin-top: 6px; letter-spacing: .04em; }
.hero__photo > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); }
.destacada { display: grid; gap: 28px; padding: 64px 0 96px; border-top: 1px solid var(--line); align-items: center; }
.destacada__text h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: .3em; }
.destacada__text .lead { margin-bottom: 1.4rem; }
.hero__text h1 { font-size: clamp(2.3rem, 8vw, 4.6rem); line-height: 1.04; margin-bottom: .55em; }
.hero__text .lead { margin-bottom: 2rem; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 40px; }
.filter { background: none; border: 0; border-bottom: 1px solid transparent; padding: 10px 0; min-height: 44px; cursor: pointer; color: var(--muted);
  font: 500 .72rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; }
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-color: var(--ink); }
.gallery { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 36px; column-rule: 1px solid var(--line); }
.gallery:empty { min-height: 150vh; } /* hueco reservado mientras llega el catálogo: el pie no salta */
.work { break-inside: avoid; margin: 0 0 44px; }
.work[hidden] { display: none; }
.work__btn { all: unset; display: block; width: 100%; cursor: zoom-in; }
.work__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.work__frame { display: block; overflow: hidden; background: var(--bg-soft); }
.work__frame img { width: 100%; height: auto; transition: transform .9s var(--ease), opacity .6s; }
.work__btn:hover .work__frame img { transform: scale(1.025); }
.work__cap { display: block; text-align: right; margin-top: 12px; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.work__title { display: block; font: 600 .86rem/1.4 var(--font-sans); color: var(--ink); }
.work__tech { display: block; }
.work__state { display: block; margin-top: 2px; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: .45em; font-size: .8rem; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status--vendido::before { background: var(--sold); }
.status--disponible::before { background: var(--ink); }
.status--consultar::before { background: var(--muted); }

/* ---------- Ficha de obra (visor) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: #fff; animation: fade .25s ease; }
.lightbox__panel { position: relative; width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; animation: rise .35s var(--ease); }
.lightbox__media { position: relative; margin: 0; display: grid; place-items: center; padding: 64px 16px 8px; min-height: 50svh; }
.lightbox__media img { max-height: 62svh; width: auto; box-shadow: 0 30px 60px -35px rgba(0,0,0,.5); }
.lightbox__info { padding: 28px var(--gutter) 48px; max-width: 560px; }
.lightbox__info h2 { font-size: clamp(2.1rem, 6vw, 3rem); margin-bottom: .6em; }
.lightbox__desc { color: var(--muted); margin-top: 1.4em; }
.lightbox__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 1.8rem; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 300 2rem/1 var(--font-sans); display: grid; place-items: center; }
.lightbox__close { top: 8px; right: 8px; position: fixed; }
.lightbox__nav { top: calc(25svh + 32px); }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec dt { font: 500 .66rem/2.1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; }
body.no-scroll { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Ver en un espacio ---------- */
.espacio { position: fixed; inset: 0; z-index: 97; background: #0d0d0d; color: #fff; display: grid; grid-template-rows: auto 1fr auto; animation: fade .3s ease; }
.espacio[hidden] { display: none; }
.espacio__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px var(--gutter); }
.espacio__title { flex: 1; min-width: 0; margin: 0; font: 400 1.25rem/1.2 var(--font-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.espacio__close { flex: none; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; font: 300 2rem/1 var(--font-sans); cursor: pointer; }
.espacio__main { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.espacio__stage { position: relative; container-type: inline-size; overflow: hidden; background: #222; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); touch-action: pan-y; }
.espacio__room { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s; }
.espacio__paint { position: absolute; object-fit: cover; transition: opacity .35s, left .4s var(--ease), top .4s var(--ease), width .4s var(--ease), height .4s var(--ease);
  outline: .22cqw solid #141414; box-shadow: 0 .5cqw 1.4cqw rgba(0,0,0,.42), 0 .1cqw .3cqw rgba(0,0,0,.3); }
.espacio.is-loading .espacio__room, .espacio.is-loading .espacio__paint { opacity: 0; }
.espacio__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(13,13,13,.55); color: #fff; font: 300 1.8rem/1 var(--font-sans); cursor: pointer; display: grid; place-items: center; }
.espacio__arrow:hover { background: #fff; color: #111; }
.espacio__arrow--prev { left: 14px; }
.espacio__arrow--next { right: 14px; }
.espacio__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px var(--gutter) 16px; font-size: .8rem; color: #bdbdbd; }
.espacio__foot a { color: #bdbdbd; }
.espacio__hint { display: none; position: absolute; top: 14px; left: 0; right: 0; margin: 0; text-align: center; font-size: .78rem; color: #9a9a9a; }
@media (max-width: 599px) and (orientation: portrait) { .espacio__hint { display: block; } }
.espacio__dots { display: flex; gap: 8px; align-items: center; }
.espacio__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; }
.espacio__dots button[aria-current="true"] { background: #fff; }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 40px; align-items: start; padding: 40px 0 80px; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.about__text h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin-bottom: .6em; }
.about__text p { max-width: 58ch; }
.about__text .first { font: italic 400 1.55rem/1.4 var(--font-serif); color: var(--ink); }

/* Sobre mí: obras en subasta (Setdart) */
.subastas { border-top: 1px solid var(--line); padding: 56px 0 96px; }
.subastas__text { max-width: 640px; margin-bottom: 32px; }
.subastas h2 { font-size: clamp(2rem, 5.5vw, 3rem); margin-bottom: .4em; }
.subastas__text p:not(.eyebrow) { color: var(--muted); margin: 0; }
.subastas__text a { color: var(--ink); }
.subastas__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; align-items: start; }
.subasta a { display: block; color: var(--ink); text-decoration: none; }
.subasta__img { display: block; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 5; } /* mismo formato para todas: la cuadrícula queda alineada */
.subasta__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.subasta a:hover .subasta__img img { transform: scale(1.03); }
.subasta__t { display: block; font: 400 1.2rem/1.2 var(--font-serif); margin-top: 12px; }
.subasta__m { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.subasta__ir { display: inline-block; margin-top: 8px; font: 500 .66rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.subasta a:hover .subasta__ir, .subasta a:focus-visible .subasta__ir { border-bottom-color: transparent; }

/* ---------- Contacto ---------- */
.contact { padding: 40px 0 96px; max-width: 760px; }
.contact h1 { font-size: clamp(2.8rem, 9vw, 5rem); margin-bottom: .45em; }
.contact .lead { margin-bottom: 2.4rem; }
.facts { margin: 0 0 2.4rem; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 .68rem/2 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 1.05rem; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.facts a:hover { border-color: var(--ink); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }



/* ---------- Legal ---------- */
.legal { max-width: 760px; padding: 48px var(--gutter) 96px; } /* margen lateral propio: .legal sustituye el padding de .wrap */
.legal h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); margin-bottom: .6em; }
.legal h2 { font-size: 1.7rem; margin: 2.2em 0 .5em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal .facts > div { grid-template-columns: 110px 1fr; }
.legal .facts dd { font-size: .95rem; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 40px; text-align: center; font-size: .82rem; color: var(--muted); }
.footer__name { margin: 0 0 .6em; display: flex; justify-content: center; }
.footer__name img { width: 200px; height: auto; }
.footer__tag { margin: 0 0 1.6rem; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; margin-bottom: 1.2rem; }
.footer__nav a, .footer__legal a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer__nav a { font: 500 .7rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 0 0 .4rem; }
.footer__legal a:hover, .footer__nav a:hover { text-decoration: underline; }
.footer p { margin: 0 0 .4em; }

/* ---------- Burbuja flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; left: 0; top: 0; z-index: 95; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; text-decoration: none; border: 0;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.45); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  will-change: translate; visibility: hidden; padding: 0;
  transition: scale .3s cubic-bezier(.34,1.56,.64,1), rotate .3s var(--ease), box-shadow .25s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: waPulse 2.8s ease-out 1.6s infinite; }
@keyframes waPulse { from { transform: scale(1); opacity: .45; } 70%, to { transform: scale(1.55); opacity: 0; } }
.wa-float.is-ready { visibility: visible; animation: waIn .6s cubic-bezier(.34,1.56,.64,1) .5s backwards; }
.burbujas-vistas .wa-float.is-ready { animation: none; }
.wa-float.is-snapping { transition: translate .55s cubic-bezier(.34,1.4,.64,1), scale .3s var(--ease), rotate .4s var(--ease), box-shadow .25s; }
.wa-float:hover { scale: 1.07; }
.wa-float.is-dragging { cursor: grabbing; scale: 1.12; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); transition: scale .2s var(--ease), box-shadow .2s; }
.wa-float__tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); background: var(--ink); color: #fff; white-space: nowrap;
  padding: 8px 12px; font: 500 .74rem/1 var(--font-sans); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.wa-float.is-left .wa-float__tip { right: auto; left: calc(100% + 12px); transform: translate(-6px, -50%); }
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
.wa-float.is-dragging .wa-float__tip { opacity: 0; }
@keyframes waIn { from { opacity: 0; scale: .4; } }

/* ---------- Aviso de cookies ---------- */
.cookies { position: fixed; z-index: 98; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); font-size: .85rem; animation: rise .4s var(--ease); }
.cookies p { margin: 0; flex: 1 1 260px; color: var(--muted); }
.cookies a { color: var(--ink); }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  :root { --gutter: 36px; }
  .gallery { columns: 2; }
  .lightbox__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .gallery { columns: 3; column-gap: 44px; }
  .hero { grid-template-columns: 1.55fr 1fr; gap: 72px; padding: 56px 0 96px; }
  .hero--retrato { grid-template-columns: 1fr 1.15fr; gap: 88px; }
  .hero--retrato .hero__photo { justify-self: end; width: fit-content; max-width: 100%; }
  .hero--retrato .hero__photo > img { max-height: calc(100svh - 220px); width: auto; max-width: 100%; }
  .hero__mini { right: -64px; bottom: -40px; width: 42%; }
  .destacada { grid-template-columns: 1.6fr 1fr; gap: 72px; padding: 96px 0 120px; }
  .about { grid-template-columns: 5fr 6fr; gap: 80px; padding: 72px 0 120px; }
  .subastas { padding: 96px 0 120px; }
  .subastas__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
  .section { padding: 110px 0; }
}
/* ---------- Escritorio ---------- */
@media (min-width: 1000px) {
  :root { --nav-h: 80px; }
  .page-home { --nav-h-big: 120px; }
  .page-home .nav:not(.is-compact) .nav__logo img { height: 92px; }
  .nav__logo img { height: 54px; }
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 40px; }
  .nav__logo { justify-self: start; margin: 0; }
  .nav__toggle { display: none; }
  .nav__cta { display: inline-flex; justify-self: end; order: 0; }
  .nav__links { position: static; flex-direction: row; gap: 40px; padding: 0; background: none; border: 0; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__links a { border: 0; padding: 10px 0; position: relative; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
  .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
  .nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .lightbox__panel { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; overflow: hidden; }
  .lightbox__media { height: 100svh; padding: 56px 72px; }
  .lightbox__media img { max-height: calc(100svh - 112px); }
  .lightbox__info { overflow-y: auto; max-height: 100svh; padding: 80px 64px 64px 16px; }
  .lightbox__actions { flex-direction: column; align-items: stretch; }
  .lightbox__nav { top: 50%; transform: translateY(-50%); }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}
@media (min-width: 1200px) { .gallery { columns: 4; } }

/* Móvil: se deja aire al final para la burbuja de WhatsApp */
@media (max-width: 599px) {
  .footer { padding-bottom: 120px; }
  .lightbox__info { padding-bottom: 120px; }
  .espacio__arrow { width: 44px; height: 44px; top: auto; bottom: 10px; transform: none; }
  .espacio__arrow--prev { left: calc(50% - 60px); }
  .espacio__arrow--next { right: calc(50% - 60px); }
  .espacio__main { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
