/* ────────────────────────────────────────────────────────────────────────────
   Alejandro Rodríguez Simón — hoja de estilos (v14, dirección «Taller»)

   Idea: el estudio de un pintor que trabaja por encargo para familias.
   Lo primero que se lee es qué se puede encargar; el nombre firma.
   Color sacado de los propios cuadros: lino de fondo, tela cruda para las
   superficies, tinta parda para el texto y un único acento almagre (el rojo
   de la toalla y de la falda asturiana) reservado para encargar.

   Tipografía  Bricolage Grotesque (titulares) + Instrument Sans (texto).
               Sin serifas ni cursivas.
   Composición rejilla de 12 columnas, alineada a la izquierda, cada sección
               con su propio ritmo. Sin tarjetas, sombras ni degradados.
   ──────────────────────────────────────────────────────────────────────────── */
:root {
  --lino: #efebe4;
  --tela: #e3ddd2;
  --campo: #fbf9f5;
  --tinta: #231f1b;
  --tinta-2: #5d554c;
  --raya: #cbc3b6;
  --borde: #857b6f;
  --almagre: #9a3a24;
  --almagre-2: #7d2d1b;
  --pardo: #2a2420;
  --pardo-texto: #efe8dd;
  --pardo-2: #bdb3a5;
  --ok: #2f6b3a;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --d-hero: clamp(2.35rem, 1.3rem + 3.9vw, 5.1rem);
  --d-1: clamp(2.5rem, 1.4rem + 4.4vw, 5.6rem);
  --d-2: clamp(2.05rem, 1.3rem + 2.8vw, 3.9rem);
  --d-3: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  --d-4: clamp(1.25rem, 1.1rem + 0.55vw, 1.55rem);
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lead: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);

  --g: clamp(20px, 5vw, 72px);
  --gap: clamp(16px, 2.2vw, 36px);
  --max: 1480px;
  --measure: 34rem;
  --sec: clamp(4.5rem, 2.5rem + 7vw, 10rem);
  --sec-s: clamp(3rem, 2rem + 4vw, 6rem);
  --head: 68px;
  --r: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-pintor: cubic-bezier(0.65, 0, 0.15, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 1rem); }
body {
  margin: 0;
  background: var(--lino);
  color: var(--tinta);
  font: 400 var(--t-base)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 700; font-stretch: 90%; font-optical-sizing: auto;
  line-height: 1.04; letter-spacing: -0.008em; margin: 0; text-wrap: balance; color: inherit;
}
h1 a, h2 a, h3 a { text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
em, i, cite { font-style: normal; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 2px; }
.dark-band :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--pardo-texto); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--g); top: -4rem; z-index: 300; background: var(--tinta); color: var(--lino); padding: 0.75rem 1rem; }
.skip:focus { top: 0.5rem; }

main { display: block; }
main > * { padding-inline: var(--g); max-width: var(--max); margin-inline: auto; }
main > .dark-band, main > .shelf-section, main > .tiles-section, main > .block--flush,
main > .process, main > .project, main > .service, main > .filters { max-width: none; }

/* ── Botones ─────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; max-width: 100%; padding: 0.75em 1.45em;
  font: 600 1rem/1.2 var(--text); text-align: center; text-decoration: none; overflow-wrap: anywhere;
  color: var(--lino); background: var(--tinta); border: 1px solid var(--tinta); border-radius: var(--r);
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pill:hover { background: #000; border-color: #000; text-decoration: none; }
.pill--accent { background: var(--almagre); border-color: var(--almagre); color: #fff; }
.pill--accent:hover { background: var(--almagre-2); border-color: var(--almagre-2); }
.pill--ghost { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.pill--ghost:hover { background: var(--tinta); color: var(--lino); }
.pill--small { min-height: 44px; padding: 0.6em 1.1em; font-size: 0.95rem; }
.pill--big { min-height: 56px; padding: 0.9em 1.8em; font-size: 1.05rem; }
.pill--light { background: var(--pardo-texto); border-color: var(--pardo-texto); color: var(--pardo); }
.pill--light:hover { background: #fff; border-color: #fff; }
.pill--ghost-light { background: transparent; border-color: var(--pardo-2); color: var(--pardo-texto); }
.pill--ghost-light:hover { background: var(--pardo-texto); border-color: var(--pardo-texto); color: var(--pardo); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.98rem; color: var(--tinta); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }

/* ── Cabecera ────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--lino); transition: box-shadow 0.3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--raya); }
.bar { height: var(--head); max-width: var(--max); margin: 0 auto; padding: 0 var(--g); display: flex; align-items: center; gap: 1.5rem; }
.brand { color: var(--tinta); display: flex; align-items: center; min-width: 0; flex: 1; text-decoration: none; min-height: 44px; }
.brand-name { font: 700 1.25rem/1 var(--display); font-stretch: 90%; letter-spacing: -0.008em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { height: 34px; width: auto; }
.nav, .nav-cta { display: none; }
.bar-end { display: contents; }
.menu-toggle { position: relative; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; cursor: pointer; flex: none; padding: 0; }
.menu-toggle span { position: absolute; left: 12px; width: 24px; height: 2px; background: var(--tinta); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle[aria-expanded='true'] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { top: 23px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--head) 0 0; z-index: 99; overflow-y: auto; background: var(--lino); padding: 1rem var(--g) 3rem; }
.mobile-menu nav > ul { list-style: none; }
.mobile-menu nav > ul > li { padding: 0.5rem 0 0.6rem; border-top: 1px solid var(--raya); }
.mm-top { display: block; font: 700 2.1rem/1.1 var(--display); font-stretch: 90%; letter-spacing: -0.008em; color: var(--tinta); text-decoration: none; padding: 0.2rem 0; }
.mm-top[aria-current='page'] { color: var(--almagre); }
.mm-sub { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.mm-sub a { color: var(--tinta-2); font-size: 1rem; display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.mm-cta { margin: 1.75rem 0 1.5rem; }
.mm-cta .pill { width: 100%; background: var(--almagre); border-color: var(--almagre); color: #fff; }
.mobile-channels { list-style: none; display: grid; gap: 0.25rem; font-size: 1rem; }
.mobile-channels a { color: var(--tinta-2); display: inline-flex; align-items: center; min-height: 40px; }
body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .menu-toggle, .mobile-menu { display: none !important; }
  .nav { display: block; flex: none; }
  .nav > ul { list-style: none; display: flex; gap: 0.15rem; }
  .nav > ul > li > a { display: block; padding: 0 0.85rem; line-height: var(--head); font-size: 0.98rem; color: var(--tinta); text-decoration: none; }
  .nav > ul > li > a:hover, .nav > ul > li.is-active > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
  .nav > ul > li.is-active > a { text-decoration-color: var(--almagre); }
  .bar-end { flex: 1; display: flex; justify-content: flex-end; }
  .nav-cta { display: inline-flex; }
  .sub {
    position: absolute; left: 0; right: 0; top: var(--head); background: var(--lino); border-bottom: 1px solid var(--raya);
    visibility: hidden; opacity: 0; transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { visibility: visible; opacity: 1; transition-delay: 0.06s, 0s; }
  .sub-in { max-width: var(--max); margin: 0 auto; padding: 2.25rem var(--g) 3rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
  .sub-h { grid-column: 1 / 4; font: 700 var(--d-3)/1 var(--display); font-stretch: 90%; letter-spacing: -0.008em; margin: 0; }
  .sub ul { grid-column: 5 / 13; list-style: none; display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); justify-content: start; gap: 0.2rem 3.5rem; }
  .sub a { display: inline-flex; align-items: center; min-height: 40px; font-size: 1.1rem; color: var(--tinta); text-decoration: none; }
  .sub a:hover { text-decoration: underline; }
}

/* Botón de encargo siempre a mano en el móvil */
.cta-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0.6rem var(--g) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--lino); border-top: 1px solid var(--raya); }
.cta-movil .pill { width: 100%; }
body:has(.cta-movil) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
body.menu-open .cta-movil { display: none; }
@media (min-width: 1024px) { .cta-movil { display: none; } body:has(.cta-movil) { padding-bottom: 0; } }

/* ── Aparición al desplazarse (discreta) ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .rv.is-in { opacity: 1; transform: none; }

  /* Obras e imágenes de encargo: se descubren de arriba abajo, como una pasada de pincel,
     y la pintura se asienta con un leve zoom. Solo imágenes grandes, nunca textos. */
  .js .unveil { clip-path: inset(0 0 100% 0); transition: clip-path 1.25s var(--ease-pintor); }
  .js .unveil img { transform: scale(1.06); transition: transform 1.8s var(--ease-pintor); }
  .js .unveil.is-in { clip-path: inset(0); }
  .js .unveil.is-in img { transform: none; }
  .works .work:nth-child(even) .unveil { transition-delay: 0.12s; }
  .works .work:nth-child(even) .unveil img { transition-delay: 0.12s; }

  /* Proceso: la línea de cada paso se traza de izquierda a derecha */
  .js .step.rv { border-top-color: transparent; position: relative; transform: none; }
  .js .step.rv::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--tinta); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-pintor); }
  .js .step.rv.is-in::before { transform: none; }
  .js .step.rv:nth-child(2), .js .step.rv:nth-child(2)::before { transition-delay: 0.12s; }
  .js .step.rv:nth-child(3), .js .step.rv:nth-child(3)::before { transition-delay: 0.24s; }
  .js .step.rv:nth-child(4), .js .step.rv:nth-child(4)::before { transition-delay: 0.36s; }

  /* Al pasar el ratón por una obra, la imagen se acerca muy despacio */
  @media (hover: hover) {
    .work-img, .svc-img { overflow: hidden; }
    .work-link .unveil.is-in img, .svc-img.is-in img { transition: transform 1.2s var(--ease); }
    .work-link:hover .unveil.is-in img, .svc-img.is-in:hover img { transform: scale(1.025); }
  }
}

/* Encargos en la portada: al bajar, cada imagen crece y se desvanece al salir por arriba,
   dejando paso a la siguiente (y, tras la última, a la sección de obra). Ligado al scroll. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .svc-list .svc-img { animation: crecer-salir linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; transform-origin: 50% 35%; will-change: transform, opacity; }
    .svc-list .svc { position: relative; }
    .svc-list .svc-copy { position: relative; z-index: 1; }
  }
}
@keyframes crecer-salir {
  0% { transform: scale(1); opacity: 1; }
  55% { opacity: 0.85; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Menú: el subrayado se dibuja en lugar de aparecer de golpe */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .nav > ul > li > a { text-decoration: none !important; background: linear-gradient(currentColor, currentColor) no-repeat 0.85rem calc(50% + 0.85em) / 0 2px; transition: background-size 0.45s var(--ease-pintor); }
  .nav > ul > li > a:hover, .nav > ul > li.is-active > a { background-size: calc(100% - 1.7rem) 2px; }
  .nav > ul > li.is-active > a { background-image: linear-gradient(var(--almagre), var(--almagre)); }
}

/* ── Bloques y títulos de sección ────────────────────────────────────────── */
.block { padding-block: var(--sec); }
.block--tight { padding-block: 0 var(--sec-s); }
.block--flush { padding: 0 0 var(--sec); }
.section-head { max-width: var(--max); margin: 0 auto clamp(2.25rem, 1.5rem + 2.5vw, 4rem); padding-inline: var(--g); display: grid; gap: 0.9rem var(--gap); }
.section-head h2 { font-size: var(--d-2); }
.section-head p { font-size: var(--t-lead); color: var(--tinta-2); max-width: var(--measure); margin: 0; line-height: 1.5; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .section-head h2 { grid-column: 1 / 7; }
  .section-head p { grid-column: 7 / 12; }
}

/* ── Portada: qué encargar, firma y la obra ──────────────────────────────── */
.hero { padding: clamp(1.75rem, 1rem + 3vw, 4rem) var(--g) var(--sec); max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(2rem, 1rem + 3vw, 3rem); }
.hero-name { font: 600 1.05rem/1.3 var(--text); letter-spacing: 0; color: var(--tinta-2); margin: 0 0 1rem; }
.hero-lede { font: 700 var(--d-hero)/1.0 var(--display); font-stretch: 90%; letter-spacing: -0.012em; margin: 0; max-width: 15ch; text-wrap: balance; }
.hero-intro { font-size: var(--t-lead); color: var(--tinta-2); max-width: 30rem; margin: 1.5rem 0 0; line-height: 1.5; }
.hero-copy .actions { margin-top: 2rem; }
.hero-stage { margin-inline: calc(-1 * var(--g)); }
.hero-slides { position: relative; display: grid; background: var(--tela); }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease), visibility 0s; }
.slide-link { display: block; text-decoration: none; height: min(112vw, 70vh); padding: clamp(1rem, 4vw, 2.5rem); }
.slide-link picture { height: 100%; }
.slide-link img { width: 100%; height: 100%; object-fit: contain; }
.slide figcaption { padding: 0 var(--g) 1.25rem; }
.slide figcaption .cartela { align-items: center; text-align: center; }
.car-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem var(--g) 0; }
.dots { display: flex; gap: 0.25rem; }
.dot { min-width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font: 600 0.95rem/1 var(--text); color: var(--tinta-2); padding: 0 0.5rem; border-bottom: 2px solid transparent; font-variant-numeric: tabular-nums; }
.dot:hover { color: var(--tinta); }
.dot.is-on { color: var(--tinta); border-bottom-color: var(--almagre); }
.car-pause { min-height: 44px; background: none; border: 0; padding: 0 0.25rem; cursor: pointer; font-size: 0.95rem; color: var(--tinta); text-decoration: underline; text-underline-offset: 0.3em; }
.hero-empty { display: grid; place-items: center; min-height: 50vh; background: var(--tela); color: var(--tinta-2); margin: 0; padding: 2rem; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); min-height: calc(100vh - var(--head)); }
  .hero-copy { grid-column: 1 / 7; padding-bottom: 2rem; }
  .hero-stage { grid-column: 7 / 13; margin: 0; }
  .slide-link { height: max(440px, calc(100vh - var(--head) - 12rem)); }
  .car-ctrl { padding-inline: 0; }
}
.hero-lede .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-lede .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  /* Portada: la frase sube palabra a palabra como trazos y la obra se descubre,
     como cuando se retira la tela de un cuadro. Es el único momento orquestado. */
  .hero-name { animation: aparecer 0.8s var(--ease) both; }
  .hero-lede .w > span { animation: trazo 1s var(--ease-pintor) both; animation-delay: calc(0.15s + var(--i, 0) * 0.055s); }
  .hero-intro, .hero-copy .actions { animation: entrar 0.9s var(--ease) 0.75s both; }
  .hero-stage { animation: descubrir 1.5s var(--ease-pintor) 0.2s both; }
  .hero-stage .slide.is-on img { animation: asentar 2.2s var(--ease-pintor) both; }
}
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes trazo { from { transform: translateY(110%) rotate(2deg); } }
@keyframes descubrir { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes asentar { from { transform: scale(1.05); } }

/* ── Cartela de obra ─────────────────────────────────────────────────────── */
.cartela { display: flex; flex-direction: column; gap: 0.1rem; }
.cartela-t { font: 600 1.02rem/1.35 var(--text); color: var(--tinta); }
.cartela-m { font-size: var(--t-sm); color: var(--tinta-2); }

/* ── Encargos: cada uno compuesto a su manera ────────────────────────────── */
.tiles-section { padding-inline: 0; }
.svc-list { list-style: none; max-width: var(--max); margin: 0 auto; padding-inline: var(--g); display: grid; gap: var(--sec-s); }
.svc { display: grid; gap: 1.5rem; align-items: start; }
.svc-img { display: block; text-decoration: none; }
.svc-img img { width: auto; max-width: 100%; max-height: 76vh; }
.svc-copy h3 { font-size: var(--d-3); }
.svc-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.svc-copy p { font-size: var(--t-lead); color: var(--tinta-2); line-height: 1.5; max-width: 28rem; margin: 0.75rem 0 0; }
.svc-copy .actions { margin-top: 1.25rem; }
.svc:first-child .svc-img { margin-inline: calc(-1 * var(--g)); }
.svc:first-child .svc-img img { width: 100%; max-height: none; }
.svc:nth-child(even) .svc-img { justify-self: end; width: 84%; }
.svc:nth-child(even) .svc-img img { margin-left: auto; }
.svc--text .svc-copy { background: var(--tela); padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); border-left: 3px solid var(--almagre); }
@media (min-width: 900px) {
  .svc { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .svc:first-child .svc-img { margin: 0; }
  .svc:first-child .svc-img img { width: auto; max-height: 84vh; }
  .svc:nth-child(even) .svc-img { width: auto; justify-self: stretch; }
  .svc:nth-child(4n+1) .svc-img { grid-column: 1 / 8; }
  .svc:nth-child(4n+1) .svc-copy { grid-column: 9 / 13; align-self: end; }
  .svc:nth-child(4n+2) .svc-img { grid-column: 7 / 12; grid-row: 1; }
  .svc:nth-child(4n+2) .svc-copy { grid-column: 2 / 6; grid-row: 1; align-self: center; }
  .svc:nth-child(4n+2) .svc-img img { margin-left: 0; }
  .svc:nth-child(4n+3) .svc-img { grid-column: 2 / 6; }
  .svc:nth-child(4n+3) .svc-copy { grid-column: 7 / 12; align-self: center; }
  .svc:nth-child(4n+4) .svc-img { grid-column: 8 / 13; grid-row: 1; }
  .svc:nth-child(4n+4) .svc-copy { grid-column: 1 / 7; grid-row: 1; align-self: end; }
  .svc--text .svc-copy { grid-column: 2 / 9 !important; grid-row: auto !important; align-self: start !important; }
}

/* ── Obra destacada: los cuadros en fila, a la misma altura ──────────────── */
.shelf-section { padding-inline: 0; background: var(--tela); }
.shelf-section .section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.shelf-wrap { position: relative; }
.shelf {
  list-style: none; display: flex; align-items: flex-start; gap: clamp(24px, 3.5vw, 56px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 0 var(--g) 1rem; scroll-padding-inline: var(--g); max-width: none;
}
@media (min-width: 1580px) { .shelf { padding-inline: calc((100vw - var(--max)) / 2 + var(--g)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--g)); } }
.shelf::-webkit-scrollbar { display: none; }
.shelf:focus-visible { outline-offset: -2px; }
.card { scroll-snap-align: start; flex: none; }
.card-link { display: flex; flex-direction: column; color: var(--tinta); text-decoration: none; }
.card-img { display: block; height: clamp(320px, 56vh, 620px); }
.card-img picture, .card-img img { height: 100%; width: auto; max-width: none; }
.card-img img { object-fit: contain; }
.card-text { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.9rem; max-width: 22rem; }
.card-t { font-weight: 600; }
.card-m { font-size: var(--t-sm); color: var(--tinta-2); }
.card-link:hover .card-t { text-decoration: underline; text-underline-offset: 0.22em; }
.card--end { align-self: stretch; }
.card-all { height: clamp(320px, 56vh, 620px); width: clamp(220px, 24vw, 320px); justify-content: flex-end; gap: 0.5rem; border-left: 2px solid var(--almagre); padding: 0 0 0 1.5rem; }
.card-all .card-t { font: 700 var(--d-3)/1 var(--display); font-stretch: 90%; letter-spacing: -0.008em; }
.card-all .pill { margin-top: 1rem; align-self: flex-start; }
.shelf-nav { display: flex; justify-content: flex-end; gap: 1.25rem; max-width: var(--max); margin: 1rem auto 0; padding-inline: var(--g); }
.round { min-height: 44px; background: none; border: 0; padding: 0 0.25rem; cursor: pointer; font-size: 0.98rem; color: var(--tinta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.round:hover { text-decoration-thickness: 2px; }
@media (max-width: 899px) {
  .shelf-nav { display: none; }
  .card-img, .card-all { height: clamp(300px, 60vh, 500px); }
  .card-img, .card-img picture, .card-img img { max-width: 80vw; }
}

/* ── Proceso: el corazón del encargo, con más peso ───────────────────────── */
.process { padding-inline: 0; }
.process .section-head h2 { grid-column: 1 / 8; }
.steps { list-style: none; display: grid; gap: 0; max-width: var(--max); margin: 0 auto; padding-inline: var(--g); }
.step { border-top: 1px solid var(--tinta); padding: 1.25rem 0 2rem; display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem; }
.step-n { grid-row: span 2; font: 700 2.4rem/0.95 var(--display); font-stretch: 90%; color: var(--almagre); font-variant-numeric: tabular-nums; }
.step h3 { font: 700 var(--d-4)/1.15 var(--display); font-stretch: 90%; }
.step p { color: var(--tinta-2); margin: 0.5rem 0 0; max-width: 24rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); column-gap: var(--gap); }
  .step { display: block; padding-bottom: 0; }
  .step-n { display: block; font-size: 3rem; margin-bottom: 1.25rem; }
}

/* ── Sobre mí en la portada ──────────────────────────────────────────────── */
.dark-band { background: var(--pardo); color: var(--pardo-texto); padding: 0 0 var(--sec-s); }
.dark-in { max-width: var(--max); margin: 0 auto; display: grid; }
.dark-band .section-head { display: block; order: 2; margin: 0; padding-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.dark-band h2 { font-size: var(--d-1); }
.dark-band .section-head p { color: var(--pardo-2); font-size: var(--t-lead); margin-top: 1.25rem; max-width: 30rem; }
.dark-band .actions { margin-top: 2rem; }
.dark-img { order: 1; margin: 0; padding: 0; }
.dark-img img { width: 100%; }
@media (min-width: 900px) {
  .dark-band { padding-top: var(--sec-s); }
  .dark-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--g); align-items: end; }
  .dark-img { grid-column: 1 / 8; grid-row: 1; }
  .dark-band .section-head { grid-column: 9 / 13; grid-row: 1; padding: 0; }
}

/* ── Testimonios ─────────────────────────────────────────────────────────── */
.quotes { display: grid; gap: var(--sec-s) var(--gap); max-width: var(--max); margin: 0 auto; }
.quote { margin: 0; border-top: 1px solid var(--tinta); padding-top: 1.5rem; }
.quote blockquote { margin: 0; font: 600 var(--d-4)/1.35 var(--text); }
.quote figcaption { margin-top: 1.25rem; font-size: var(--t-sm); font-weight: 600; }
.quote figcaption span { display: block; color: var(--tinta-2); font-weight: 400; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(12, minmax(0, 1fr)); } .quote:nth-child(odd) { grid-column: 1 / 7; } .quote:nth-child(even) { grid-column: 7 / 13; margin-top: 4rem; } }

/* ── Cierre ──────────────────────────────────────────────────────────────── */
.closing { padding-inline: var(--g); max-width: var(--max); margin: 0 auto; }
.closing-in { display: grid; gap: 1.5rem var(--gap); background: var(--tela); padding: clamp(2rem, 1.25rem + 4vw, 5rem) clamp(1.5rem, 1rem + 4vw, 5rem); border-radius: var(--r); }
.closing h2 { font-size: var(--d-1); max-width: 13ch; }
.closing p { font-size: var(--t-lead); color: var(--tinta-2); margin: 0; max-width: 26rem; }
.closing .pill { background: var(--almagre); border-color: var(--almagre); color: #fff; }
.closing .pill:hover { background: var(--almagre-2); border-color: var(--almagre-2); }
.channels { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; font-size: 1rem; }
.channels a { color: var(--tinta-2); display: inline-flex; align-items: center; min-height: 40px; }
.channels a:hover { color: var(--tinta); }
@media (min-width: 900px) {
  .closing-in { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .closing h2 { grid-column: 1 / 8; grid-row: 1 / 4; }
  .closing p, .closing .actions, .closing .channels { grid-column: 8 / 13; }
  .closing .channels { flex-direction: column; gap: 0; }
}
.channels--stack { flex-direction: column; gap: 0; font-size: var(--t-base); }
.channels--stack a { color: var(--tinta); }

/* ── Cabecera de página interior ─────────────────────────────────────────── */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 6rem) clamp(2rem, 1.25rem + 2.5vw, 4rem); display: grid; gap: 1.1rem var(--gap); }
.page-head h1 { font-size: var(--d-1); }
.page-intro { font-size: var(--t-lead); color: var(--tinta-2); max-width: var(--measure); margin: 0; line-height: 1.5; }
.cv-name { color: var(--tinta-2); margin: 0; }
@media (min-width: 900px) {
  .page-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .page-head h1 { grid-column: 1 / 8; }
  .page-head .page-intro, .page-head .cv-name, .page-head .actions { grid-column: 8 / 13; }
}
.empty { padding-block: 2rem var(--sec-s); }
.empty p { font-size: var(--t-lead); color: var(--tinta-2); max-width: var(--measure); }
.empty .actions { margin-top: 1.25rem; }
.empty-h { font-size: var(--d-3); margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem); }

/* Filtros de la obra */
.filters { padding-inline: 0; margin: 0 auto clamp(2.25rem, 1.5rem + 2.5vw, 4rem); }
.chips { list-style: none; display: flex; gap: 0 1.5rem; overflow-x: auto; scrollbar-width: none; padding: 0 var(--g); max-width: var(--max); margin: 0 auto; border-bottom: 1px solid var(--raya); }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filters .chips { flex-wrap: wrap; } }
.chips a { display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; min-height: 48px; color: var(--tinta-2); text-decoration: none; font-size: 1rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.chips a:hover { color: var(--tinta); }
.chips a[aria-current='page'] { color: var(--tinta); border-bottom-color: var(--almagre); font-weight: 600; }
.chips a span { font-size: 0.85rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.chips--static { padding: 0; flex-direction: column; gap: 0; overflow: visible; border: 0; }
.chips--static li { padding: 0.65rem 0; border-top: 1px solid var(--raya); }

/* ── Obra (portfolio): composición irregular ─────────────────────────────── */
.works { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(2.75rem, 2rem + 3.5vw, 6rem); max-width: var(--max); padding-inline: var(--g); margin: 0 auto; }
.work { grid-column: 1 / -1; }
.work-link { display: block; color: var(--tinta); text-decoration: none; }
.work-img { display: block; }
.work-img img { width: 100%; }
.work .cartela { padding-top: 0.85rem; }
.work-link:hover .cartela-t { text-decoration: underline; text-underline-offset: 0.22em; }
.work.is-new { animation: entrar 0.6s var(--ease) both; }
@media (max-width: 699px) {
  .work:nth-child(3n+1) { margin-inline: calc(-1 * var(--g)); }
  .work:nth-child(3n+1) .cartela { padding-inline: var(--g); }
  .work:nth-child(3n+2) { grid-column: 3 / -1; }
  .work:nth-child(3n+3) { grid-column: 1 / 11; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .work:nth-child(4n+1) { grid-column: 1 / 8; }
  .work:nth-child(4n+2) { grid-column: 9 / 13; margin-top: 28%; }
  .work:nth-child(4n+3) { grid-column: 2 / 7; }
  .work:nth-child(4n+4) { grid-column: 8 / 13; margin-top: 16%; }
}
@media (min-width: 1100px) {
  .work:nth-child(6n+1) { grid-column: 1 / 7; }
  .work:nth-child(6n+2) { grid-column: 8 / 11; margin-top: 20%; }
  .work:nth-child(6n+3) { grid-column: 3 / 7; }
  .work:nth-child(6n+4) { grid-column: 8 / 13; margin-top: 8%; }
  .work:nth-child(6n+5) { grid-column: 1 / 5; margin-top: 5%; }
  .work:nth-child(6n+6) { grid-column: 6 / 12; }
}
.more { padding: clamp(3rem, 2rem + 3vw, 5rem) var(--g) var(--sec); }

/* ── Ficha de obra ───────────────────────────────────────────────────────── */
.project { padding-inline: 0; }
.project-head { max-width: var(--max); margin: 0 auto; padding: clamp(1.75rem, 1.25rem + 3vw, 4rem) var(--g) clamp(1.75rem, 1.25rem + 2vw, 3rem); display: grid; gap: 1rem var(--gap); }
.crumbs { font-size: var(--t-sm); color: var(--tinta-2); }
.crumbs a { color: var(--tinta-2); display: inline-block; padding-block: 0.6rem; }
.crumbs--page { max-width: var(--max); margin: 0 auto; padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.project-head h1 { font-size: var(--d-1); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin: 0.5rem 0 0; }
.facts div { border-top: 1px solid var(--raya); padding: 0.6rem 0 0.75rem; }
.facts dt { font-size: 0.85rem; color: var(--tinta-2); }
.facts dd { margin: 0; font-size: 1.02rem; }
@media (min-width: 900px) {
  .project-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .project-head .crumbs { grid-column: 1 / -1; }
  .project-head h1 { grid-column: 1 / 9; }
  .project-head .facts { grid-column: 9 / 13; grid-template-columns: 1fr; margin: 0; }
}
.project-media { padding: 0; }
.project-main { margin: 0; background: var(--tela); padding: clamp(1.5rem, 1rem + 5vw, 5.5rem) var(--g); display: grid; place-items: center; }
.project-main a { display: block; cursor: zoom-in; }
.project-main img { max-height: 82vh; width: auto; max-width: 100%; }
.project-main figcaption, .project-rest figcaption, .ed-fig figcaption { font-size: var(--t-sm); color: var(--tinta-2); margin-top: 0.9rem; }
.project-rest { display: grid; gap: var(--sec-s) var(--gap); max-width: var(--max); margin: var(--sec-s) auto 0; padding-inline: var(--g); }
.project-rest figure { margin: 0; }
.project-rest a { display: block; cursor: zoom-in; }
.project-rest img { width: 100%; }
@media (min-width: 900px) {
  .project-rest { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .project-rest figure:nth-child(odd) { grid-column: 1 / 7; }
  .project-rest figure:nth-child(even) { grid-column: 8 / 13; margin-top: 16%; }
}
.project-info { max-width: var(--max); margin: 0 auto; padding: var(--sec-s) var(--g) 0; display: grid; gap: 2.5rem var(--gap); }
.project-info .prose { max-width: var(--measure); }
.project-cta { background: var(--tela); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-left: 3px solid var(--almagre); }
.project-cta p { color: var(--tinta-2); font-size: var(--t-lead); line-height: 1.5; max-width: 24rem; }
.project-cta .pill { background: var(--almagre); border-color: var(--almagre); color: #fff; }
.project-cta .pill:hover { background: var(--almagre-2); border-color: var(--almagre-2); }
@media (min-width: 900px) {
  .project-info { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .project-info .prose { grid-column: 2 / 7; }
  .project-cta { grid-column: 8 / 13; align-self: start; }
  .project-info > .project-cta:only-child { grid-column: 2 / 8; }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--g); }
.pager a { display: flex; align-items: flex-end; gap: 1rem; color: var(--tinta); text-decoration: none; min-width: 0; border-top: 1px solid var(--tinta); padding-top: 1.25rem; }
.pager a[rel='next'] { flex-direction: row-reverse; text-align: right; }
.pager picture { flex: none; width: clamp(64px, 9vw, 120px); }
.pager picture img { width: 100%; height: auto; }
.pager span { display: flex; flex-direction: column; gap: 0.35rem; font: 700 var(--d-4)/1.05 var(--display); font-stretch: 90%; letter-spacing: -0.008em; min-width: 0; overflow-wrap: anywhere; }
.pager small { font: 400 var(--t-sm)/1.3 var(--text); letter-spacing: 0; color: var(--tinta-2); }
.pager a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
@media (max-width: 560px) { .pager picture { display: none; } }

/* ── Texto largo ─────────────────────────────────────────────────────────── */
.prose { font-size: 1.1rem; line-height: 1.7; }
.prose p { margin-bottom: 1.15em; }
.prose--lead p:first-child { font: 600 var(--d-4)/1.4 var(--text); }

/* ── Encargo (página) ────────────────────────────────────────────────────── */
.service { padding: 0 0 var(--sec-s); }
.service-head { max-width: var(--max); margin: 0 auto; padding: 1rem var(--g) clamp(2.25rem, 1.5rem + 2.5vw, 4rem); display: grid; gap: 1.25rem var(--gap); }
.service-head h1 { font-size: var(--d-1); }
.service-sum { font: 600 var(--d-4)/1.35 var(--text); max-width: 28rem; margin: 0; }
.service-head .pill { background: var(--almagre); border-color: var(--almagre); color: #fff; }
.service-head .pill:hover { background: var(--almagre-2); border-color: var(--almagre-2); }
@media (min-width: 900px) {
  .service-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .service-head h1 { grid-column: 1 / 8; grid-row: 1 / 3; }
  .service-head .service-sum, .service-head .actions { grid-column: 9 / 13; }
}
.service-img { max-width: none; background: var(--tela); padding: clamp(1.5rem, 1rem + 5vw, 5.5rem) var(--g); display: grid; place-items: center; }
.service-img img { max-height: 82vh; width: auto; }
.facts-grid { display: grid; gap: 0 var(--gap); max-width: var(--max); margin: var(--sec-s) auto 0; padding: 0 var(--g); }
.fact { border-top: 1px solid var(--tinta); padding: 1.25rem 0 2.25rem; }
.fact h3 { font-size: var(--d-4); margin-bottom: 0.9rem; }
.fact p, .fact li { color: var(--tinta-2); }
.fact p { margin: 0; }
.fact ul { list-style: none; display: grid; }
.fact li { padding: 0.5rem 0; border-bottom: 1px solid var(--raya); }
.fact li:last-child { border-bottom: 0; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.other-services { padding: 0 var(--g) var(--sec); }
.other-services h2 { font-size: var(--d-4); margin-bottom: 0.75rem; }
.other-services .chips { padding: 0; flex-direction: column; gap: 0; overflow: visible; border: 0; }
.other-services .chips li { border-top: 1px solid var(--raya); }
.other-services .chips a { font: 700 var(--d-3)/1.05 var(--display); font-stretch: 90%; letter-spacing: -0.008em; color: var(--tinta); padding: 0.6rem 0; min-height: 0; border: 0; margin: 0; }
.other-services .chips a:hover { color: var(--almagre); }

/* ── Galería editorial (exposiciones, prensa, biografía) ─────────────────── */
.editorial { display: grid; gap: var(--sec-s) var(--gap); max-width: var(--max); margin: 0 auto; }
.ed-fig { margin: 0; }
.ed-fig .hang { display: block; cursor: zoom-in; }
.ed-fig img { width: 100%; }
.ed-first { margin-inline: calc(-1 * var(--g)); }
.ed-first figcaption { padding-inline: var(--g); }
.ed-rest { display: grid; gap: var(--sec-s) var(--gap); }
@media (min-width: 900px) {
  .ed-first { margin-inline: 0; }
  .ed-first figcaption { padding-inline: 0; }
  .ed-first .ed-fig { width: 75%; }
  .ed-rest { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .ed-rest .ed-fig:nth-child(odd) { grid-column: 3 / 8; }
  .ed-rest .ed-fig:nth-child(even) { grid-column: 9 / 13; margin-top: 18%; }
}

/* ── Sobre mí ────────────────────────────────────────────────────────────── */
.about { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--gap); padding-block: clamp(1.75rem, 1.25rem + 3vw, 4rem) var(--sec); align-items: start; }
.about-portrait { margin: 0 calc(-1 * var(--g)); }
.about-portrait img { width: 100%; }
.about-text h1 { font-size: var(--d-1); margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.about-text .prose { max-width: var(--measure); }
.about-text h2 { font-size: var(--d-3); margin: clamp(2.75rem, 2rem + 3vw, 4.5rem) 0 1.1rem; }
.about-text .chips--static { max-width: var(--measure); }
.about-more { margin-top: 2.75rem; }
@media (min-width: 900px) {
  .about { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about-portrait { grid-column: 1 / 6; margin: 0; position: sticky; top: calc(var(--head) + 2rem); }
  .about-text { grid-column: 7 / 13; }
}

/* ── Currículum, exposiciones y prensa ───────────────────────────────────── */
.cv { padding-bottom: var(--sec); }
.tl-group { display: grid; gap: 1rem var(--gap); margin-bottom: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.tl-group h2 { font-size: var(--d-3); }
.tl-list { list-style: none; }
.tl-list li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--raya); }
.tl-year { font: 700 1.25rem/1.15 var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums; color: var(--almagre); }
.tl-what { display: flex; flex-direction: column; }
.tl-place { color: var(--tinta-2); font-size: var(--t-sm); }
@media (min-width: 900px) {
  .tl-group { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tl-group h2 { grid-column: 1 / 5; }
  .tl-group .tl-list { grid-column: 5 / 13; }
}
.cv-actions { margin: 0; }
.tl-solo { max-width: var(--max); }
.records { list-style: none; display: grid; gap: var(--sec-s); padding-bottom: var(--sec-s); }
.record { display: grid; gap: 1.25rem var(--gap); }
.record-img img { width: 100%; }
.record-text h2 { font-size: var(--d-3); margin: 0.4rem 0 0.5rem; }
.record-text p { color: var(--tinta-2); margin: 0; }
@media (min-width: 900px) {
  .record { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .record-img { grid-column: 1 / 8; }
  .record-text { grid-column: 9 / 13; }
  .record:nth-child(even) .record-img { grid-column: 6 / 13; grid-row: 1; }
  .record:nth-child(even) .record-text { grid-column: 1 / 5; grid-row: 1; }
}

/* ── Contacto ────────────────────────────────────────────────────────────── */
.contact { display: grid; gap: 3rem var(--gap); padding-block: clamp(2.25rem, 1.5rem + 4vw, 5.5rem) var(--sec); align-items: start; }
.contact-text h1 { font-size: var(--d-1); }
.contact-text .page-intro { margin-top: 1.25rem; }
.contact-sub { font: 600 1rem/1.3 var(--text); letter-spacing: 0; margin-top: 2.25rem; margin-bottom: 0.4rem; }
@media (min-width: 1000px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact-text { grid-column: 1 / 6; position: sticky; top: calc(var(--head) + 2rem); }
  .form { grid-column: 7 / 13; }
}
.form { display: grid; gap: 1.4rem; position: relative; background: var(--tela); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--r); }
.form--off { color: var(--tinta-2); }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label { font-size: 1rem; font-weight: 600; }
.opt { color: var(--tinta-2); font-weight: 400; }
.field input:not([type='checkbox']), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 0.9rem;
  font: 400 1.0625rem/1.4 var(--text); color: var(--tinta);
  background: var(--campo); border: 1px solid var(--borde); border-radius: var(--r);
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23231f1b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input[type='file'] { padding: 0.75rem; font-size: 0.95rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 2px var(--tinta); }
.field [aria-invalid='true'] { border-color: var(--almagre) !important; box-shadow: 0 0 0 1px var(--almagre); }
.err { color: var(--almagre); font-size: var(--t-sm); font-weight: 600; margin: 0; }
.err:empty { display: none; }
.row { display: grid; gap: 1.4rem; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.check input { width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--almagre); }
.check label { font-weight: 400; font-size: 0.98rem; color: var(--tinta-2); }
.check .err { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .pill--big { width: 100%; margin-top: 0.25rem; background: var(--almagre); border-color: var(--almagre); color: #fff; }
.form .pill--big:hover { background: var(--almagre-2); border-color: var(--almagre-2); }
.form.is-sending .pill { opacity: 0.6; pointer-events: none; }
.form-status { margin: 0; font-size: 1rem; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); font-weight: 600; font-size: var(--t-lead); }
.form-status.is-err { color: var(--almagre); font-weight: 600; }
.notice { padding: 1rem 1.25rem; border-left: 3px solid currentColor; background: var(--campo); margin: 0; }
.notice--ok { color: var(--ok); }
.notice--err { color: var(--almagre); }
.form-note { margin: -0.4rem 0 0; font-size: var(--t-sm); color: var(--tinta-2); }
.form-mail { margin: 0.9rem 0 0; color: var(--tinta-2); font-size: var(--t-sm); overflow-wrap: anywhere; }
.field textarea#f-mensaje { min-height: 260px; line-height: 1.55; field-sizing: content; max-height: 70vh; }
.req { color: var(--almagre); font-weight: 700; }
.form-legend { margin: 0; font-size: var(--t-sm); color: var(--tinta-2); }

/* ── Estado y 404 ────────────────────────────────────────────────────────── */
.status { max-width: 52rem; }
.status h2 { font-size: var(--d-4); margin: 2.5rem 0 1rem; }
.warnings { padding-left: 1.2rem; color: var(--tinta-2); display: grid; gap: 0.5rem; }
.notfound .actions { grid-column: 8 / 13; }

/* ── Pie ─────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--pardo); color: var(--pardo-2); font-size: 0.95rem; line-height: 1.5; }
.site-footer a { color: var(--pardo-texto); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-in { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 2rem + 3vw, 5rem) var(--g) 1.75rem; }
.footer-line { color: var(--pardo-texto); font-size: var(--t-lead); max-width: 34rem; margin-bottom: 2.5rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem var(--gap); }
.fcol { min-width: 0; }
.fcol h2 { font: 700 1.3rem/1.1 var(--display); font-stretch: 90%; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.fcol h2 a { display: inline-flex; align-items: center; min-height: 40px; }
.fcol ul { list-style: none; display: grid; }
.fcol li a { color: var(--pardo-2); display: inline-flex; align-items: center; min-height: 36px; overflow-wrap: anywhere; }
.fcol li a:hover { color: var(--pardo-texto); }
.footer-channels { list-style: none; display: grid; }
.footer-legal { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 1.25rem; border-top: 1px solid #4a423b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.88rem; }
.footer-legal p { margin: 0; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.5fr); } }

/* ── Visor de imágenes ───────────────────────────────────────────────────── */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--pardo); color: var(--pardo-texto); }
.lightbox::backdrop { background: var(--pardo); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem var(--g); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--g); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; gap: 2rem; padding: 0.5rem var(--g) 1.25rem; }
.lightbox button { min-height: 44px; padding: 0 0.5rem; background: none; color: inherit; border: 0; cursor: pointer; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.3em; }
.lightbox button:hover { text-decoration-thickness: 2px; }
.lb-count { font-size: var(--t-sm); color: var(--pardo-2); }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] .lb-stage img { animation: entrar 0.4s var(--ease); } }

/* ── Transiciones entre páginas y movimiento reducido ────────────────────── */
@view-transition { navigation: auto; }
/* La cabecera se queda quieta; la página sale fundiéndose y la nueva sube un poco.
   Al abrir una obra desde la rejilla, la imagen viaja hasta su sitio en la ficha. */
.site-header { view-transition-name: cabecera; }
.project-main img { view-transition-name: obra-foto; }
::view-transition-old(root) { animation: 0.25s var(--ease) both vt-salir; }
::view-transition-new(root) { animation: 0.55s var(--ease) 0.08s both vt-entrar; }
::view-transition-group(obra-foto) { animation-duration: 0.6s; animation-timing-function: var(--ease-pintor); }
::view-transition-old(obra-foto), ::view-transition-new(obra-foto) { height: 100%; object-fit: contain; }
@keyframes vt-salir { to { opacity: 0; } }
@keyframes vt-entrar { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .mobile-menu, .site-footer, .closing, .actions, .pill, .cv-actions, .cta-movil { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .page-head { padding-top: 0; }
  .tl-list li { break-inside: avoid; }
}

.cta-movil { transition: transform 0.3s var(--ease); }
body.cta-oculta .cta-movil { transform: translateY(110%); }
.facts dd a { display: inline-flex; align-items: center; min-height: 32px; }
