/* SERINYCO · «Catálogo de taller». Dirección y razones en ../../../DESIGN.md
   Papel = fondo de catálogo impreso. Tinta = texto. Azul Órbita (logo) = marca, un bloque por página.
   Forja (rayo del logo) = único acento: botón principal y banda de número de sección. */

:root {
  --papel: #f2efe8;
  --papel-2: #e7e2d6;
  --blanco: #ffffff;
  --linea: #cbc3b3;
  --tinta: #15191e;
  --tinta-2: #4a5058;
  --azul: #1661a1;
  --azul-osc: #0f4a7c;
  --azul-txt: #d9e6f3;
  --forja: #e2761b;
  --gris-osc: #aab1b9;
  --f: "Archivo", "Arial Narrow", Arial, sans-serif;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  --hdr: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; font-family: var(--f); font-size: 1.0625rem; line-height: 1.6; color: var(--tinta); background: var(--papel); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1.1em; height: 1.1em; flex: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--azul); color: var(--blanco); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.sec--azul :focus-visible, .sec--tinta :focus-visible, .ftr :focus-visible, .lb :focus-visible { outline-color: var(--forja); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: var(--blanco); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- tipografía: Archivo condensada para títulos, normal para lectura ---------- */
.h1, .h2, .h3 { font-stretch: 70%; font-weight: 800; line-height: .98; letter-spacing: -.005em; text-wrap: balance; }
.h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.24rem); line-height: 1.55; color: var(--tinta-2); max-width: 60ch; text-wrap: pretty; }
.mini { font-size: .95rem; font-weight: 700; margin-bottom: 18px; caption-side: top; text-align: left; }
.link { font-weight: 700; color: var(--azul); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset .2s, color .2s; }
.link:hover { color: var(--azul-osc); text-underline-offset: 8px; }

/* Número de sección en la banda del logo */
.num { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-weight: 700; font-size: 1rem; }
.banda { position: relative; isolation: isolate; display: inline-grid; place-items: center; min-width: 52px; height: 30px; padding: 0 12px; color: var(--tinta); font-variant-numeric: tabular-nums; font-size: .9rem; }
.banda::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forja); transform: skewX(-20deg); }

/* ---------- botones ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--tinta); transition: transform .2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-20deg); transition: background .2s, border-color .2s; }
.btn--forja::before { background: var(--forja); }
.btn--forja:hover::before { background: #f08a33; }
.btn--line::before { border: 2px solid currentColor; }
.btn--line:hover::before { background: rgba(21, 25, 30, .08); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.05rem; }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: .95rem; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 32px; }

/* ---------- header: barra sólida de papel, línea al hacer scroll ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: var(--papel); border-bottom: 1px solid transparent; transition: border-color .25s; }
.hdr.is-scrolled { border-bottom-color: var(--linea); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 20px; }
.hdr__logo { margin-right: auto; }
.hdr__logo img { width: 196px; }
.nav__list { display: flex; align-items: center; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: block; padding: 10px 13px; font-weight: 600; font-size: .98rem; text-decoration: none; }
.nav__list > li > a:hover { color: var(--azul); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__sub { position: absolute; left: 0; top: 100%; min-width: 290px; padding: 8px 0; background: var(--blanco); border: 1px solid var(--linea); box-shadow: 0 18px 40px rgba(21, 25, 30, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.nav__has:hover .nav__sub, .nav__has:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 10px 18px; text-decoration: none; font-size: .96rem; }
.nav__sub a:hover { background: var(--papel); color: var(--azul); }
.nav__foot { display: none; }
.hdr__lang { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-weight: 700; font-size: .9rem; text-decoration: none; border: 1.5px solid var(--tinta); }
.hdr__lang:hover { background: var(--tinta); color: var(--papel); }
.hdr__toggle { display: none; width: 46px; height: 46px; place-items: center; background: none; border: 1.5px solid var(--tinta); cursor: pointer; }
.hdr__toggle svg { width: 24px; height: 24px; }
.hdr__toggle svg + svg, .hdr.is-open .hdr__toggle svg:first-of-type { display: none; }
.hdr.is-open .hdr__toggle svg + svg { display: block; }

@media (max-width: 1120px) {
  .hdr__toggle { display: grid; }
  .hdr__cta { display: none; }
  .nav { position: fixed; inset: var(--hdr) 0 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 12px var(--gut) 32px; background: var(--papel); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
  .hdr.is-open .nav { visibility: visible; opacity: 1; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list > li { border-bottom: 1px solid var(--linea); }
  .nav__list > li > a { padding: 16px 0; font-stretch: 72%; font-weight: 800; font-size: 1.7rem; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; min-width: 0; padding: 0 0 12px; }
  .nav__sub a { padding: 8px 0 8px 16px; }
  .nav__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
  .nav__tel { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- portada: foto oscura + chispas del soplete (pedido del cliente), tipografía de catálogo ---------- */
.hero { position: relative; isolation: isolate; min-height: min(84svh, 800px); display: flex; align-items: flex-end; background: var(--tinta); color: var(--blanco); overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(21, 25, 30, .94) 0%, rgba(21, 25, 30, .8) 38%, rgba(21, 25, 30, .12) 72%), linear-gradient(0deg, rgba(21, 25, 30, .55) 0%, rgba(21, 25, 30, 0) 35%); }
.hero__sparks { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__in { padding-block: clamp(64px, 10vw, 120px) clamp(48px, 6vw, 80px); }
.hero__t { font-stretch: 70%; font-weight: 800; font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .92; max-width: 11ch; text-wrap: balance; }
.hero__lead { margin-top: 26px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: #d3d9df; max-width: 46ch; }
.link--claro { color: var(--blanco); }
.link--claro:hover { color: var(--blanco); }
.hero :focus-visible { outline-color: var(--forja); }
figcaption { padding-top: 10px; font-size: .88rem; color: var(--tinta-2); }
.datos { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) {
  .hero { min-height: 88svh; }
  .hero::before { background: linear-gradient(0deg, rgba(21, 25, 30, .96) 18%, rgba(21, 25, 30, .7) 55%, rgba(21, 25, 30, .2) 100%); }
}
.datos > div { padding: 18px 20px 6px 0; }
.datos > div + div { padding-left: 20px; border-left: 1px solid var(--linea); }
.datos dt { font-stretch: 72%; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; }
.datos dd { color: var(--tinta-2); font-size: .95rem; }

/* ---------- secciones ---------- */
.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec--tight { padding-block: clamp(40px, 6vw, 80px); }
.sec--alt { background: var(--papel-2); }
.sec--azul { background: var(--azul); color: var(--blanco); }
.sec--azul .lead, .sec--azul figcaption { color: var(--azul-txt); }
.sec--tinta { background: var(--tinta); color: var(--blanco); }
.sec--tinta .lead { color: var(--gris-osc); }
.shead { max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); }
.shead .lead { margin-top: 20px; }
.shead--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; }
.shead--split .lead { margin-top: 0; }

/* ---------- 01 servicios: fichas de catálogo (iguales a propósito para comparar de un vistazo) ---------- */
.fichas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fs { display: flex; flex-direction: column; background: var(--blanco); border-top: 3px solid var(--tinta); transition: transform .4s var(--out, ease), box-shadow .4s; }
.fs:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(21, 25, 30, .12); }
.fs__media { display: block; overflow: hidden; }
.fs__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.fs:hover .fs__media img { transform: scale(1.05); }
.fs__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.fs__n { font-weight: 700; font-size: .85rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.fs__t { font-stretch: 72%; font-weight: 800; font-size: clamp(1.55rem, 2.2vw, 1.9rem); line-height: 1.05; margin: 2px 0 8px; }
.fs__t a { text-decoration: none; }
.fs__t a:hover { color: var(--azul); }
.fs__d { color: var(--tinta-2); font-size: .97rem; margin-bottom: 14px; }
.fs__list { border-top: 1px solid var(--linea); margin-bottom: 18px; }
.fs__list li { padding: 7px 0; border-bottom: 1px solid var(--linea); font-weight: 600; font-size: .93rem; }
.fs__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: auto; }
.fs__wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--tinta); font-weight: 700; font-size: .93rem; text-decoration: none; transition: background .2s, color .2s; }
.fs__wa svg { color: #1f7a45; transition: color .2s; }
.fs__wa:hover { background: var(--tinta); color: var(--blanco); }
.fs__wa:hover svg { color: var(--blanco); }

/* ---------- 02 empresa ---------- */
.emp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.emp__p { margin: 26px 0 44px; }
.emp__p p { color: var(--tinta-2); margin-bottom: 16px; max-width: 60ch; }
.emp__p p:first-child { color: var(--tinta); font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.45; }
.pil { counter-reset: pil; border-top: 2px solid var(--tinta); }
.pil li { counter-increment: pil; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.pil li::before { content: counter(pil, decimal-leading-zero); grid-row: span 2; font-weight: 700; color: var(--tinta-2); font-variant-numeric: tabular-nums; padding-top: 4px; }
.pil h3 { font-stretch: 75%; font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
.pil p { color: var(--tinta-2); }
.ficha { position: sticky; top: calc(var(--hdr) + 24px); background: var(--blanco); border: 2px solid var(--tinta); padding: 0 24px 6px; }
.ficha__t { padding: 16px 0 12px; border-bottom: 2px solid var(--tinta); font-stretch: 75%; font-weight: 800; font-size: 1.35rem; }
.ficha dl > div { display: grid; grid-template-columns: 40% 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.ficha dl > div:last-child { border-bottom: 0; }
.ficha dt { color: var(--tinta-2); font-size: .9rem; }
.ficha dd { font-weight: 700; line-height: 1.35; }

/* ---------- 03 procesos (bloque azul) ---------- */
.proc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.proc { --p: 0; position: relative; display: grid; gap: 0; padding-left: 60px; }
.proc::before, .proc::after { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .28); }
.proc::after { background: var(--blanco); transform: scaleY(var(--p)); transform-origin: top; }
.proc__i { position: relative; padding: 0 0 30px; }
.proc__n { position: absolute; left: -60px; top: 0; display: grid; place-items: center; width: 36px; height: 36px; background: var(--azul); border: 2px solid rgba(255, 255, 255, .45); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .3s, color .3s, border-color .3s; z-index: 1; }
.proc__i.is-lit .proc__n { background: var(--blanco); color: var(--azul); border-color: var(--blanco); }
.proc__i h3 { font-stretch: 75%; font-weight: 800; font-size: 1.5rem; line-height: 1.1; padding-top: 3px; }
.proc__i p { color: var(--azul-txt); margin-top: 4px; max-width: 46ch; }
.plano-fig { position: sticky; top: calc(var(--hdr) + 24px); border: 1.5px solid rgba(255, 255, 255, .5); padding: 22px 22px 16px; }
.plano { width: 100%; height: auto; }
.pl-box { fill: rgba(255, 255, 255, .08); stroke: var(--blanco); stroke-width: 2; }
.pl-cota { stroke: var(--blanco); stroke-width: 1.2; fill: none; }
.pl-t { fill: var(--blanco); font: 800 23px var(--f); font-stretch: 75%; }
.pl-m { fill: var(--blanco); font: 700 18px var(--f); }
.pl-s { fill: var(--azul-txt); font: 400 16px var(--f); }
.plano-fig figcaption { border-top: 1px solid rgba(255, 255, 255, .3); margin-top: 10px; padding-top: 12px; }

/* ---------- 04 proyectos: lámina + lista ---------- */
.lamina { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.lamina__main { display: block; text-decoration: none; }
.lamina__media { display: block; overflow: hidden; }
.lamina__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.lamina__main:hover img { transform: scale(1.03); }
.lamina__t { display: block; font-stretch: 72%; font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.05; margin: 4px 0 6px; }
.lamina__main:hover .lamina__t { color: var(--azul); }
.lista { border-top: 2px solid var(--tinta); }
.lista a { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linea); text-decoration: none; }
.lista__img img { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; }
.lista__t { display: block; font-weight: 700; line-height: 1.25; }
.lista a:hover .lista__t { color: var(--azul); text-decoration: underline; text-underline-offset: 4px; }

.plate > a, .plate > button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; text-decoration: none; cursor: pointer; }
.plate__media { position: relative; display: block; overflow: hidden; background: var(--papel-2); }
.plate__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.plate > *:hover .plate__media img { transform: scale(1.04); }
.plate__count { position: absolute; left: 0; bottom: 0; padding: 5px 10px; background: var(--tinta); color: var(--blanco); font-size: .8rem; font-weight: 600; }
.plate__cap { display: block; padding-top: 12px; }
.plate__cat { display: block; color: var(--azul); font-weight: 700; font-size: .85rem; }
.sec--azul .plate__cat, .lb .plate__cat { color: var(--azul-txt); }
.plate__t { font-stretch: 75%; font-weight: 800; font-size: 1.4rem; line-height: 1.1; margin: 2px 0 4px; }
.plate > *:hover .plate__t { color: var(--azul); }
.plate__d { display: block; color: var(--tinta-2); font-size: .95rem; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.plate.is-hidden { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: transparent; border: 1.5px solid var(--tinta); cursor: pointer; font-weight: 600; font-size: .95rem; }
.chip span { color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--blanco); }
.chip[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }
.chip[aria-pressed="true"] span { color: var(--gris-osc); }

/* Visor de proyecto: foto en mesa oscura + hoja de catálogo en papel */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--tinta); color: var(--blanco); overflow: hidden; }
.lb[open] { display: grid; grid-template-columns: minmax(0, 1fr) 420px; animation: lbIn .35s var(--ease) both; }
.lb::backdrop { background: rgba(21, 25, 30, .85); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__stage { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 12px; min-height: 0; padding: 24px 24px 18px; }
.lb__frame { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lb__frame img { max-width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; cursor: zoom-in; transition: opacity .35s var(--ease), translate .5s var(--ease), transform .35s var(--ease); }
.lb__frame img.is-out-l { opacity: 0; translate: -48px 0; }
.lb__frame img.is-out-r { opacity: 0; translate: 48px 0; }
.lb__frame.is-zoom img { transform: scale(2.2); cursor: zoom-out; transition: opacity .35s, translate .5s, transform .35s var(--ease), transform-origin .08s linear; }
.lb__msg { position: absolute; color: var(--gris-osc); }
.lb__msg:empty { display: none; }
.lb__nav, .lb__close { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; background: rgba(21, 25, 30, .7); border: 1.5px solid rgba(255, 255, 255, .45); color: var(--blanco); cursor: pointer; transition: background .2s, color .2s; }
.lb__nav:hover { background: var(--blanco); color: var(--tinta); }
.lb__nav svg, .lb__close svg { width: 22px; height: 22px; }
.lb__prev { left: 8px; top: 50%; translate: 0 -50%; }
.lb__next { right: 8px; top: 50%; translate: 0 -50%; }
.lb__bar { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; color: var(--gris-osc); font-variant-numeric: tabular-nums; }
.lb__thumbs { display: flex; justify-content: center; gap: 10px; }
.lb__thumbs[hidden] { display: none; }
.lb__thumbs button { width: 104px; padding: 0; background: none; border: 2px solid transparent; opacity: .5; cursor: pointer; transition: opacity .2s, border-color .2s; }
.lb__thumbs button:hover { opacity: .9; }
.lb__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--forja); }
.lb__thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.lb__info { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; padding: 88px 34px 26px; background: var(--papel); color: var(--tinta); }
.lb__info :focus-visible { outline-color: var(--azul); }
.lb__num { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.lb__t { font-stretch: 72%; font-weight: 800; font-size: clamp(2rem, 2.6vw, 2.6rem); line-height: 1.02; }
.lb__d { color: var(--tinta-2); font-size: 1.05rem; }
.lb__meta { border-top: 2px solid var(--tinta); }
.lb__meta > div { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.lb__meta > div[hidden] { display: none; }
.lb__meta dt { color: var(--tinta-2); font-size: .9rem; }
.lb__meta dd { font-weight: 700; line-height: 1.35; }
.lb__meta dd a { display: block; color: var(--azul); text-underline-offset: 3px; }
.lb__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 4px; }
.lb__pn { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; border-top: 2px solid var(--tinta); }
.lb__pn button { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 14px 14px 4px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.lb__pn button + button { align-items: flex-end; text-align: right; padding: 14px 0 4px 14px; border-left: 1px solid var(--linea); }
.lb__pn span { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--tinta-2); }
.lb__pn svg { width: 16px; height: 16px; }
.lb__pn b { font-stretch: 75%; font-weight: 800; font-size: 1.08rem; line-height: 1.15; }
.lb__pn button:hover b { color: var(--azul); }
.lb__close { right: 16px; top: 16px; background: var(--papel); border-color: var(--tinta); color: var(--tinta); }
.lb__close:hover { background: var(--tinta); color: var(--papel); }
@media (hover: none) { .lb__hint { display: none; } .lb__frame img { cursor: default; } }
@media (max-width: 900px) {
  .lb { overflow-y: auto; }
  .lb[open] { display: block; }
  .lb__stage { padding: 68px 10px 14px; }
  .lb__frame { min-height: 200px; }
  .lb__frame img { max-height: 62svh; }
  .lb__nav { width: 44px; height: 44px; }
  .lb__thumbs button { width: 76px; }
  .lb__info { overflow: visible; padding: 26px var(--gut) 32px; }
  .lb__t { font-size: 1.8rem; }
  .lb__close { position: fixed; background: rgba(21, 25, 30, .8); border-color: rgba(255, 255, 255, .5); color: var(--blanco); }
  .lb__pn { margin-top: 12px; }
}

/* ---------- 05 clientes ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(40px, 5vw, 64px); }
.logos li { display: grid; place-items: center; flex: 1 1 150px; max-width: 220px; height: 104px; padding: 18px 22px; background: var(--blanco); }
.logos img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); transition: filter .25s; }
.logos li:hover img { filter: none; }
.cli { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); }
.cli__tabla { border-top: 2px solid var(--tinta); }
.cli__tabla th, .cli__tabla td { padding: 11px 0; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.cli__tabla th { font-weight: 700; padding-right: 16px; }
.cli__tabla td { color: var(--tinta-2); font-size: .95rem; }
.sect { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 2px solid var(--tinta); }
.sect li { padding: 12px 0; border-bottom: 1px solid var(--linea); }
.sect h3 { font-size: 1rem; font-weight: 700; }
.sect p { color: var(--tinta-2); font-size: .92rem; line-height: 1.45; }

/* ---------- contacto + mapa ---------- */
.contacto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.contacto .lead { margin: 20px 0 34px; }
.canales { border-top: 2px solid currentColor; }
.canales a { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--linea); text-decoration: none; }
.canales__k { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--tinta-2); font-size: .95rem; }
.canales__v { font-stretch: 72%; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; overflow-wrap: anywhere; }
.canales a:hover .canales__v { color: var(--azul); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.canales--oscuro a { border-bottom-color: rgba(255, 255, 255, .2); }
.canales--oscuro .canales__k { color: var(--gris-osc); }
.canales--oscuro a:hover .canales__v { color: var(--blanco); }
.mapa__frame { position: relative; aspect-ratio: 4 / 3; background: var(--papel-2); border: 2px solid var(--tinta); }
.mapa--oscuro .mapa__frame { border-color: rgba(255, 255, 255, .3); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: .95rem; }
.mapa figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.mapa figcaption a { font-weight: 700; color: var(--azul); text-underline-offset: 4px; }
.mapa--oscuro figcaption { color: var(--gris-osc); }
.mapa--oscuro figcaption a { color: var(--blanco); }
.tips { margin-top: 44px; }
.tips ol { counter-reset: t; border-top: 2px solid var(--tinta); }
.tips li { counter-increment: t; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linea); font-weight: 600; }
.tips li::before { content: counter(t, decimal-leading-zero); color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.cierre__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; }
.cierre .lead { margin-top: 18px; }

/* ---------- páginas interiores ---------- */
.phead { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 90px); border-bottom: 2px solid var(--tinta); }
.phead .lead { margin-top: 22px; }
.phead__in--split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.phead__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(28px, 4vw, 48px); font-size: .9rem; color: var(--tinta-2); }
.bc li + li::before { content: "/"; margin-right: 6px; }
.bc a { text-underline-offset: 3px; }
.bc a:hover { color: var(--azul); }
.e404 { font-stretch: 62%; font-weight: 800; font-size: clamp(7rem, 22vw, 15rem); line-height: .8; color: var(--azul); margin-bottom: 18px; }

.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.svc__txt p { color: var(--tinta-2); margin-bottom: 18px; max-width: 60ch; }
.svc__txt p:first-child { color: var(--tinta); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.42; }
.svc__list { counter-reset: s; border-top: 2px solid var(--tinta); }
.svc__list li { counter-increment: s; display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linea); font-weight: 600; }
.svc__list li::before { content: counter(s, decimal-leading-zero); color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.svc-proc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; }
.svc-proc .shead { margin: 0; }

.faqwrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.faq { margin-top: 24px; border-top: 2px solid var(--tinta); }
.faq__i { border-bottom: 1px solid var(--linea); }
.faq__i summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.12rem; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.faq__i[open] summary svg { transform: rotate(45deg); }
.faq__i p { padding: 0 0 20px; color: var(--tinta-2); max-width: 62ch; }
.otros ul { border-top: 2px solid var(--tinta); }
.otros a { display: block; padding: 13px 0; border-bottom: 1px solid var(--linea); font-weight: 700; text-decoration: none; }
.otros a:hover { color: var(--azul); text-decoration: underline; text-underline-offset: 4px; }

.legal { max-width: 780px; }
.legal .h3 { margin: 42px 0 12px; }
.legal .h3:first-child { margin-top: 0; }
.legal p { color: #343a42; margin-bottom: 14px; max-width: 70ch; }
.legal__fecha { margin-top: 36px; font-size: .9rem; color: var(--tinta-2); }

/* ---------- pie ---------- */
.ftr { background: var(--tinta); color: var(--gris-osc); font-size: .97rem; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; padding-block: 70px 44px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.ftr__brand img { width: 190px; margin-bottom: 18px; }
.ftr__brand p { max-width: 36ch; }
.ftr__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; align-content: start; }
.ftr__contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blanco); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ftr__contact a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.ftr__links { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; padding-block: 36px; }
.ftr__t { color: var(--blanco); font-weight: 700; margin-bottom: 12px; }
.ftr__links ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ftr__links a { display: inline-block; padding: 6px 0; text-decoration: none; }
.ftr__links a:hover { color: var(--blanco); text-decoration: underline; text-underline-offset: 4px; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 20px 28px; padding-right: calc(var(--gut) + 72px); border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ftr__legal a, .ftr__legal button { padding: 0; background: none; border: 0; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ftr__legal a:hover, .ftr__legal button:hover, .ftr__credit a:hover { color: var(--blanco); }
.ftr__credit a { text-decoration: none; font-weight: 700; letter-spacing: .04em; }

/* WhatsApp flotante: acceso directo al canal principal de cotización */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; background: #1f7a45; color: #fff; transition: transform .2s var(--ease); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: translateY(-2px); }

/* aviso de cookies */
.ck { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: min(430px, calc(100vw - 36px)); padding: 20px 22px; background: var(--blanco); border: 2px solid var(--tinta); box-shadow: 0 18px 40px rgba(21, 25, 30, .18); }
.ck[hidden] { display: none; }
.ck__t { font-stretch: 75%; font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; }
.ck__p { font-size: .93rem; color: var(--tinta-2); margin-bottom: 16px; }
.ck__p a { color: var(--azul); }
.ck__acts { display: flex; flex-wrap: wrap; gap: 12px 20px; }
@media (max-width: 600px) { body.ck-open .fab-wa { bottom: 230px; } }

/* ---------- movimiento nivel 3 (razones en DESIGN.md). Clases .rv / .rv-img las pone main.js ---------- */
:root { --out: cubic-bezier(.16, 1, .3, 1); }

/* Portada: título palabra por palabra, luego texto y botones */
.hero__t .w { display: inline-block; overflow: hidden; padding-top: .14em; margin-top: -.14em; vertical-align: top; }
.hero__t .w > span { display: inline-block; animation: wordUp 1s var(--out) both; animation-delay: calc(var(--i) * 110ms + 120ms); }
.hero__lead { animation: fadeUp .9s var(--out) .6s both; }
.hero .acts { animation: fadeUp .9s var(--out) .75s both; }
.hero__img, .hero__sparks { will-change: translate; }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Header que se oculta al bajar */
.hdr { transition: border-color .25s, transform .4s var(--out); }
.hdr.is-hidden { transform: translateY(-100%); }

/* Títulos de sección */
.js [data-reveal] { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 100% 0); transition: opacity .9s var(--out), transform .9s var(--out), clip-path 1s var(--out); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(-10% -5% -10% -5%); }

/* Banda del número de sección */
.js .num .banda::before { transform: skewX(-20deg) scaleX(0); transform-origin: left; transition: transform .7s var(--out); }
.js .num .banda { color: transparent; transition: color .3s .35s; }
.js .num > span:last-child { opacity: 0; transform: translateX(-10px); transition: opacity .6s .25s, transform .6s var(--out) .25s; }
.js .num.is-in .banda::before { transform: skewX(-20deg) scaleX(1); }
.js .num.is-in .banda { color: var(--tinta); }
.js .num.is-in > span:last-child { opacity: 1; transform: none; }

/* Elementos de lista en cascada */
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--out), transform .8s var(--out); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .fs.rv.is-in:hover { transform: translateY(-4px); }

/* Fotos que se descubren como cortina */
.js .rv-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--out); }
.js .rv-img img { scale: 1.2; transition: scale 1.6s var(--out), transform .8s var(--ease); }
.js .rv-img.is-in { clip-path: inset(0 0 0 0); }
.js .rv-img.is-in img { scale: 1; }
.js .rv-img.par.is-in img { scale: 1.14; }
.phead__fig { overflow: hidden; }

/* Bloques azul y tinta que se abren al llegar */
.js .sec--azul, .js .sec--tinta { clip-path: inset(0 calc((1 - var(--exp, 1)) * 6vw)); }

/* Plano que se traza solo */
.js .plano .pl-box, .js .plano .pl-cota { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.js .plano .pl-cota { transition-delay: 1.1s; }
.js .plano text { opacity: 0; transition: opacity .6s 1.6s; }
.js .plano-fig.is-in .pl-box, .js .plano-fig.is-in .pl-cota { stroke-dashoffset: 0; }
.js .plano-fig.is-in text { opacity: 1; }
.js .plano .pl-box { fill-opacity: 0; transition: stroke-dashoffset 1.6s var(--ease) .3s, fill-opacity .8s 1.4s; }
.js .plano-fig.is-in .pl-box { fill-opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pgrid, .fichas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .emp, .proc-grid, .lamina, .cli, .contacto, .cierre__in, .phead__in--split, .svc, .svc-proc, .faqwrap, .shead--split, .ftr__top { grid-template-columns: 1fr; }
  .ficha, .plano-fig { position: static; }
  .datos { grid-template-columns: repeat(2, 1fr); }
  .datos > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .datos > div:nth-child(n + 3) { border-top: 1px solid var(--linea); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hdr { --hdr: 68px; height: 68px; }
  .hdr__logo img { width: 150px; }
  .ftr__base { padding-bottom: 96px; padding-right: var(--gut); }
  .hero__t { font-size: clamp(2.7rem, 12.5vw, 4rem); }
  .fichas { gap: 18px; }
  .fs__media img { aspect-ratio: 16 / 9; }
  .pgrid, .fichas, .sect, .ftr__contact, .ftr__links { grid-template-columns: 1fr; }
  .lista a { grid-template-columns: 96px 1fr; }
  .lista__img img { width: 96px; }
  .ficha { padding: 0 16px 4px; }
  .ficha dl > div { grid-template-columns: 1fr; gap: 2px; }
  .btn { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .rv, .js .rv-img, .js .num > span:last-child { opacity: 1; transform: none; clip-path: none; }
  .js .rv-img img { scale: 1; }
  .js .num .banda { color: var(--tinta); }
  .js .num .banda::before { transform: skewX(-20deg); }
  .js .sec--azul, .js .sec--tinta { clip-path: none; }
  .js .plano .pl-box, .js .plano .pl-cota { stroke-dashoffset: 0; }
  .js .plano text { opacity: 1; }
  .js .plano .pl-box { fill-opacity: 1; }
  .hdr.is-hidden { transform: none; }
}
@media print { .hdr, .fab-wa, .ck, .mapa { display: none !important; } }
