/* ==========================================================================
   Seproseg — rediseño con dirección "Type and nothing else"
   Fuente: Plus Jakarta Sans (autoalojada, variable). Paleta de marca:
   navy como fondo, papel azulado como campo claro, ámbar solo en acciones.
   Esquinas rectas en toda la página. Sin líneas finas, degradados ni sombras.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #0b2545;            /* navy: fondo principal */
  --surface: #13315c;       /* un paso más claro que el fondo */
  --blue: #1d4e89;          /* campo azul saturado */
  --ink: #f4f7fb;           /* texto sobre navy */
  --ink-2: #9fb8d8;         /* texto secundario sobre navy */
  --paper: #eef4fb;         /* campo claro */
  --paper-2: #e0eaf6;       /* un paso más oscuro que el papel */
  --paper-ink: #0b2545;     /* texto sobre papel */
  --paper-muted: #435468;   /* texto secundario sobre papel */
  --accent: #f59e0b;        /* ámbar: solo acciones y marcas de cámara */
  --accent-strong: #fbbf24;
  --accent-ink: #0b2545;
  --control: #64748b;       /* borde de controles (3:1) */
  --error: #b42318;
  --error-bg: #fef3f2;

  /* tipografía: cinco pasos */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem);
  --step-hero: 15.5vw;

  /* espacio */
  --m: clamp(16px, 2.2vw, 32px);       /* margen único de la página */
  --gap: clamp(16px, 2vw, 32px);
  --sec: clamp(88px, 12vw, 190px);     /* aire entre secciones */

  /* movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--m); top: -100px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
.on-light :focus-visible, .sistemas :focus-visible, .trabajos :focus-visible, .coupon :focus-visible, .site-footer :focus-visible { outline-color: var(--blue); }
[hidden] { display: none !important; }

/* títulos */
h2 { font-size: var(--step-head); font-weight: 700; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 38ch; text-wrap: pretty; }

/* botones: un solo molde, rectángulo plano */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: var(--step-body); line-height: 1.1; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--big { min-height: 64px; padding: 0 32px; }
.btn--ghost { background: var(--surface); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.25em; }
.text-link .icon { transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
  .btn--ghost:hover { background: var(--blue); }
  .text-link:hover .icon { transform: translateX(4px); }
}

/* ---------- encabezado ---------- */
.site-header {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 2vw, 24px) var(--m);
}
.logo { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; margin-left: -9px; }
.logo img { height: 40px; width: auto; }
.head-nav { display: flex; align-items: center; gap: 8px 20px; }
.head-link { color: var(--paper-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.25em; min-height: 44px; display: inline-block; line-height: 44px; padding-inline: 4px; white-space: nowrap; }
.nav-extra { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) { .nav-extra { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; } }
.site-header .btn { min-height: 48px; padding: 0 20px; }

/* ---------- hero: línea de agua ---------- */
.hero { --seam: 46%; position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--paper); }
.hero-field { position: absolute; left: 0; right: 0; }
.hero-field--top { top: 0; height: var(--seam); background: var(--paper); }
.hero-field--bottom { top: var(--seam); bottom: 0; background: var(--blue); }
.hero-h {
  position: absolute; z-index: 2; left: var(--m); top: calc(var(--seam) - 1.02em);
  font-size: var(--step-hero); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em;
}
.hero-h .line, .hero-h [data-line] { display: block; }
.hero-h .line { overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.line--top { color: var(--paper-ink); }
.line--bottom { color: #fff; padding-top: 0.12em; margin-top: -0.12em; }
.hero-foot {
  position: absolute; z-index: 5; left: var(--m); right: var(--m); bottom: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 20px; color: #fff;
}
.hero-sub { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.hero-link { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.25em; align-self: flex-start; }
@media (min-width: 768px) {
  .hero { --seam: 50%; }
  :root { --step-hero: min(11vw, 190px); }
}
@media (min-width: 1024px) {
  .hero-foot { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .hero-link { align-self: flex-end; }
}
@media (max-width: 1023px) { .has-bar .hero-foot { bottom: calc(clamp(24px, 4vw, 40px) + 72px); } }

/* las rejillas de una columna no se ensanchan con su contenido */
.intro, .sistemas-head, .sys, .escala-top, .escala-copy, .proceso, .trabajos, .coupon, .site-footer, .form-grid { grid-template-columns: minmax(0, 1fr); }

/* ---------- intro: escalera ---------- */
.intro { min-height: 90svh; display: grid; align-content: space-between; gap: clamp(56px, 12vh, 140px); padding: var(--sec) var(--m); }
.stair { font-size: var(--step-head); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
.stair span { display: block; }
.stair span:nth-child(2) { padding-left: 8vw; color: var(--ink-2); }
.intro-text { display: grid; gap: 24px; }
.intro-statement { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; max-width: 34ch; text-wrap: pretty; }
.intro-note { max-width: 40ch; color: var(--ink-2); }
@media (max-width: 767px) { .stair { font-size: 11.4vw; } .stair span:nth-child(2) { padding-left: 6vw; } .row-link { font-size: clamp(1.5rem, 6.8vw, 2rem); } }
@media (min-width: 768px) {
  .stair { font-size: clamp(4.25rem, 11vw, 11rem); }
  .stair span:nth-child(2) { padding-left: 12vw; }
}
@media (min-width: 900px) { .intro-text { margin-left: 50%; } }

/* ---------- sistemas ---------- */
.card-media, .media-plate { background: transparent; overflow: hidden; }
.card-media { aspect-ratio: 4 / 3; }
.media-plate { aspect-ratio: 2 / 3; }
.card-media img, .media-plate img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card-media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-cell { min-width: 0; }
.media-cell figcaption { margin-top: 8px; font-size: var(--step-small); font-weight: 700; line-height: 1.35; }
.card-media--duo:has(> [hidden]) { grid-template-columns: 1fr; }
.card-media--duo:has(> [hidden]) .media-plate { aspect-ratio: 4 / 3; }
.sys-note { padding: 24px var(--m) 0; color: var(--paper-muted); font-size: var(--step-small); }
.sistemas { background: var(--paper); color: var(--paper-ink); padding-block: var(--sec) calc(var(--sec) * 0.6); }
.sistemas-head { display: grid; gap: 24px; padding: 0 var(--m) clamp(56px, 7vw, 100px); }
.sistemas-head .lead { color: var(--paper-muted); }
.sys { display: grid; gap: 20px var(--gap); padding: clamp(56px, 5vw, 72px) var(--m); }
.sys:nth-of-type(odd) { background: var(--paper-2); }
.sys:target { background: #fff; }
.sys-name { font-size: var(--step-head); font-weight: 700; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.sys-body { display: grid; gap: 14px; align-content: start; max-width: 52ch; }
.sys-benefit { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
.sys-ideal { color: var(--paper-muted); }
.sys-cta { display: inline-flex; align-items: center; gap: 0.5em; min-height: 48px; margin-top: 4px; color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.25em; width: fit-content; }
.sys-cta .icon { transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sys-cta:hover .icon { transform: translateX(4px); } }
@media (min-width: 900px) {
  .sistemas-head { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .sistemas-head h2 { grid-column: 1 / 8; }
  .sistemas-head .lead { grid-column: 8 / 13; }
  .sys { grid-template-columns: repeat(12, 1fr); }
  .sys-name { grid-column: 1 / 7; }
  .sys-body { grid-column: 7 / 13; }
}

/* ---------- escala: plano + tabla ---------- */
.escala { background: var(--surface); padding: var(--sec) var(--m); }
.escala-top { display: grid; gap: clamp(40px, 6vw, 72px); margin-bottom: clamp(56px, 7vw, 96px); }
.escala-copy { display: grid; gap: 24px; align-content: start; }
.picker { border: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 12px; font-weight: 700; }
.picker-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px;
  background: var(--bg); color: var(--ink); border: 0; border-radius: 0; font-weight: 700; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.pick:active { transform: scale(0.97); }
.pick[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); }
@media (hover: hover) and (pointer: fine) { .pick[aria-pressed="false"]:hover { background: var(--blue); } }
.picker-sum { max-width: 40ch; min-height: 3.2em; }

.plan { display: grid; gap: 14px; align-self: start; }
.plan-svg { width: 100%; height: auto; background: var(--bg); }
.stage { opacity: 0; transform: scale(0.94); transform-origin: center; transform-box: fill-box; transition: opacity 500ms ease, transform 700ms var(--ease-out); }
.plan:not([data-sel]) [data-for="hogar"],
.plan[data-sel="hogar"] [data-for="hogar"],
.plan[data-sel="negocio"] [data-for="negocio"],
.plan[data-sel="industria"] [data-for="industria"] { opacity: 1; transform: none; }
.p-plot { fill: var(--blue); }
.p-bldg { fill: var(--paper); }
.p-bldg2 { fill: var(--ink-2); }
.p-gate { fill: #fff; }
.p-fence { stroke: var(--ink-2); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 10; }
.p-cam { fill: var(--accent); }
.p-acc { fill: #fff; }
.plan-cap { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--step-small); color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key i { display: inline-block; width: 12px; height: 12px; }
.k-cam { background: var(--accent); border-radius: 50%; }
.k-acc { background: #fff; }
.k-gate { background: #fff; width: 18px !important; height: 6px !important; }
.k-fence { background: var(--ink-2); width: 18px !important; height: 4px !important; }
.plan-note { margin-left: auto; }

.escala-tabla { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin-top: 24px; color: var(--ink); }
.escala-tabla th { text-align: left; font-weight: 700; }
.escala-tabla thead th { font-size: var(--step-body); padding: 18px 20px 14px; position: relative; }
.escala-tabla tbody th { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; padding: 20px; }
.escala-tabla td { padding: 20px; vertical-align: top; }
.escala-tabla tbody tr:nth-child(odd) > * { background: var(--bg); }
.escala-tabla thead th:first-child, .escala-tabla tbody th { width: 38%; }
.escala-tabla [data-col] { transition: background-color 260ms ease, color 260ms ease; }
.escala-tabla[data-sel="hogar"] [data-col="hogar"],
.escala-tabla[data-sel="negocio"] [data-col="negocio"],
.escala-tabla[data-sel="industria"] [data-col="industria"] { background: var(--paper) !important; color: var(--paper-ink); }
.escala-tabla thead th[data-col] { position: relative; }
.escala-tabla[data-sel="hogar"] thead [data-col="hogar"]::before,
.escala-tabla[data-sel="negocio"] thead [data-col="negocio"]::before,
.escala-tabla[data-sel="industria"] thead [data-col="industria"]::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; background: var(--paper); }
.escala-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) {
  .escala-top { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .escala-copy { grid-column: 1 / 6; }
  .plan { grid-column: 7 / 13; }
}
@media (max-width: 899px) {
  .escala-tabla, .escala-tabla tbody, .escala-tabla tr, .escala-tabla th, .escala-tabla td { display: block; width: 100% !important; }
  .escala-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .escala-tabla tbody tr { padding: 0; }
  .escala-tabla tbody tr:nth-child(odd) > * { background: var(--bg); }
  .escala-tabla tbody tr:nth-child(even) > * { background: var(--surface); }
  .escala-tabla tbody th { padding: 22px 16px 8px; font-size: var(--step-lead); }
  .escala-tabla td { padding: 6px 16px; }
  .escala-tabla td:last-child { padding-bottom: 22px; }
  .escala-tabla td::before { font-weight: 700; margin-right: 0.4em; }
  .escala-tabla td[data-col="hogar"]::before { content: "Hogar:"; }
  .escala-tabla td[data-col="negocio"]::before { content: "Negocio:"; }
  .escala-tabla td[data-col="industria"]::before { content: "Industria:"; }
}

/* ---------- proceso: talón ---------- */
.proceso { overflow-x: clip; background: var(--blue); color: #fff; display: grid; gap: 48px; padding: var(--sec) var(--m); align-items: start; }
.proceso-copy { display: grid; gap: 24px; }
.slip {
  background: var(--paper); color: var(--paper-ink); width: 100%; max-width: 480px; padding: 8px 28px 44px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 95% calc(100% - 12px), 90% 100%, 85% calc(100% - 12px), 80% 100%, 75% calc(100% - 12px), 70% 100%, 65% calc(100% - 12px), 60% 100%, 55% calc(100% - 12px), 50% 100%, 45% calc(100% - 12px), 40% 100%, 35% calc(100% - 12px), 30% 100%, 25% calc(100% - 12px), 20% 100%, 15% calc(100% - 12px), 10% 100%, 5% calc(100% - 12px), 0 100%);
  font-variant-numeric: tabular-nums;
}
.slip-day { margin-top: 28px; margin-bottom: 4px; font-size: var(--step-body); }
.slip-rows li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.slip-what { font-weight: 600; flex: 0 1 auto; max-width: 70%; }
.slip-what small { display: block; font-size: var(--step-small); font-weight: 400; color: var(--paper-muted); line-height: 1.4; margin-top: 2px; }
.slip-dots { flex: 1 1 24px; min-width: 24px; align-self: flex-end; height: 0; margin-bottom: 0.5em; border-bottom: 4px dotted var(--control); }
.slip-who { font-weight: 700; white-space: nowrap; }
.slip-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin: 28px -28px 0; padding: 12px 28px; background: var(--paper-ink); color: var(--paper); font-weight: 700; }
@media (min-width: 900px) {
  .proceso { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .proceso-copy { grid-column: 1 / 6; }
  .slip { grid-column: 7 / 12; justify-self: start; }
}

/* ---------- trabajos ---------- */
.trabajos { background: var(--paper); color: var(--paper-ink); padding: var(--sec) var(--m); display: grid; gap: 32px; }
.trabajos-head { display: grid; gap: 16px; }
.gallery-empty { display: grid; gap: 28px; }
.gallery-empty .lead { color: var(--paper-muted); }
.big-link { display: inline-flex; align-items: center; gap: 0.35em; width: fit-content; font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--blue); text-decoration: none; min-height: 64px; }
.big-link .icon { width: 0.7em; height: 0.7em; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .big-link:hover .icon { transform: translate(4px, -4px); } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; background: var(--paper-2); color: var(--paper-ink); border: 0; border-radius: 0; font-weight: 700; cursor: pointer; }
.filter .icon { display: none; }
.filter[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); }
.filter[aria-pressed="true"] .icon { display: block; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--gap); } }
.work { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.work-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; color: var(--blue); }
.work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
.work-media img.is-loaded { opacity: 1; }
.work-zoom { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: none; place-items: center; background: #fff; color: var(--paper-ink); }
@media (hover: hover) { .work:hover .work-zoom { display: grid; } }
.work-cap { display: grid; gap: 2px; }
.work-title { font-weight: 700; }
.work-meta { font-size: var(--step-small); color: var(--paper-muted); }
.gallery-more { justify-self: start; }
.trabajos .btn--ghost { background: var(--paper-ink); color: var(--paper); }
.trabajos .text-link { color: var(--blue); }

/* ---------- preguntas (oculta hasta confirmar respuestas) ---------- */
.preguntas { background: var(--surface); padding: var(--sec) var(--m); }
.faq-wrap { display: grid; gap: 8px; max-width: 70ch; }
.faq-wrap h2 { margin-bottom: 24px; }
.faq { background: var(--bg); }
.faq summary { display: flex; align-items: center; min-height: 64px; padding: 12px 20px; font-weight: 700; cursor: pointer; }
.faq p { padding: 0 20px 20px; max-width: 60ch; }

/* ---------- contacto ---------- */
.contacto { padding: var(--sec) var(--m); }
.contacto-h { margin-bottom: clamp(40px, 6vw, 80px); max-width: 14ch; }
.rows { margin-inline: calc(var(--m) * -1); }
.row-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(20px, 3vw, 36px) var(--m); min-height: 84px;
  font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.03em; text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.row-link:nth-of-type(odd) { background: var(--surface); }
.row-link .icon { width: 0.8em; height: 0.8em; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .row-link:hover { background: var(--paper); color: var(--paper-ink); }
  .row-link:hover .icon { transform: translateX(8px); }
}
.contact-data { display: grid; gap: 4px; padding: 28px var(--m) 0; font-size: var(--step-lead); }
.contact-data a { text-decoration: underline; text-underline-offset: 0.2em; }

.coupon { position: relative; margin: clamp(80px, 9vw, 120px) 0 0; background: var(--paper); color: var(--paper-ink); display: grid; }
.coupon-side { display: grid; gap: 20px; align-content: space-between; padding: clamp(28px, 4vw, 48px); }
.coupon-side h3 { font-size: var(--step-head); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; }
.checklist { display: grid; gap: 6px; color: var(--paper-muted); }
.checklist li { display: flex; align-items: baseline; gap: 10px; }
.checklist li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--blue); }
.coupon-form { position: relative; padding: clamp(28px, 4vw, 48px); border-top: 5px dotted var(--bg); }
.coupon-form::before, .coupon-form::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); top: -16px; }
.coupon-form::before { left: -14px; }
.coupon-form::after { right: -14px; }
@media (min-width: 900px) {
  .coupon { grid-template-columns: 5fr 7fr; margin-inline: 8.3333%; }
  .coupon-form { border-top: 0; border-left: 5px dotted var(--bg); }
  .coupon-form::before { left: -17px; top: -14px; }
  .coupon-form::after { left: -17px; right: auto; top: auto; bottom: -14px; }
}

.form-grid { display: grid; gap: 18px; margin-bottom: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.req { font-weight: 400; color: var(--paper-muted); font-size: var(--step-small); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; background: #fff; color: var(--paper-ink);
  border: 2px solid var(--control); border-radius: 0; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.field-error { color: var(--error); font-weight: 600; font-size: var(--step-small); }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: #fff; cursor: pointer; font-weight: 500; }
.opt input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.submit { width: 100%; min-height: 60px; background: var(--paper-ink); color: var(--paper); border: 0; border-radius: 0; font-weight: 800; font-size: var(--step-body); cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.submit:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .submit:hover { background: var(--blue); } }
.form-status { margin-bottom: 16px; padding: 16px 20px; background: #e7f6ec; color: #0b3d22; font-weight: 500; }
.form-status--error { background: var(--error-bg); color: var(--error); }
.form-status a { font-weight: 700; }
.note { margin-top: 14px; font-size: var(--step-small); color: var(--paper-muted); }

/* ---------- pie ---------- */
.site-footer { background: var(--paper); color: var(--paper-ink); min-height: min(100svh, 820px); display: grid; grid-template-rows: auto 1fr auto; padding: clamp(28px, 4vw, 40px) var(--m) clamp(16px, 2vw, 24px); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--gap); font-size: var(--step-body); }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-title { font-weight: 800; }
.foot-logo { height: 52px; width: auto; margin: -10px 0 8px -9px; }
.foot-cols li { padding: 2px 0; color: var(--paper-muted); }
.foot-cols a { color: var(--paper-muted); text-decoration: underline; text-underline-offset: 0.2em; display: inline-block; min-height: 24px; }
.foot-cols p:not(.foot-title) { color: var(--paper-muted); }
@media (hover: hover) and (pointer: fine) { .foot-cols a:hover { color: var(--paper-ink); } }
.foot-mark { align-self: end; padding-top: 16vh; }
.foot-word { font-size: 22.2vw; font-weight: 800; line-height: 0.8; letter-spacing: -0.055em; margin-left: -0.04em; white-space: nowrap; overflow: hidden; padding-bottom: 0.1em; }
.foot-legal { margin-top: 16px; font-size: var(--step-small); color: var(--paper-muted); }

/* ---------- barra de contacto móvil ---------- */
.contact-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 8px var(--m) calc(8px + env(safe-area-inset-bottom)); background: var(--surface); transition: transform 240ms var(--ease-out); }
.contact-bar.is-hidden { transform: translateY(100%); }
@media (min-width: 1024px) { .contact-bar { display: none !important; } }
@media (max-width: 1023px) { .has-bar body { padding-bottom: 72px; } .has-bar { scroll-padding-bottom: 80px; } }

/* ---------- visor de fotos ---------- */
.lightbox { background: var(--bg); color: var(--ink); border: 0; padding: 16px; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.lightbox::backdrop { background: rgba(11, 37, 69, 0.92); }
@media (min-width: 1024px) { .lightbox { width: min(64rem, 92vw); height: auto; max-height: 94vh; margin: auto; padding: 24px; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lb-count { color: var(--ink-2); font-size: var(--step-small); }
.lightbox figure img { width: 100%; max-height: 65vh; object-fit: contain; background: var(--surface); }
.lightbox figcaption { padding: 12px 0; }
#visor-titulo { font-size: var(--step-lead); font-weight: 700; }
.lb-meta { color: var(--ink-2); font-size: var(--step-small); }
.lb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lb-actions [data-lb="cotizar"] { grid-column: 1 / -1; }
@media (min-width: 640px) { .lb-actions { grid-template-columns: auto auto 1fr; } .lb-actions [data-lb="cotizar"] { grid-column: auto; justify-self: end; } }
html:has(dialog[open]) { overflow: hidden; }

/* ---------- modo revisión (?revision=1) ---------- */
.is-pendiente { outline: 3px dashed var(--accent); outline-offset: 2px; background-color: rgba(245, 158, 11, 0.12); }

/* ==========================================================================
   Movimiento (capa final). Contenido visible sin JS y con movimiento reducido.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* firma: el titular sube desde detrás de su propia línea base */
  .js [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  @keyframes line-up { to { transform: none; } }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }

  /* entrada de las partes de cada sección, una vez */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .stair [data-reveal] { transform: translateX(-5vw); }
  .js .stair [data-reveal].is-in { transform: none; }
  .js .slip[data-reveal] { transform: translateY(40px) rotate(-1.2deg); transform-origin: top left; }
  .js .slip[data-reveal].is-in { transform: none; }

  /* el plano se desliza muy poco mientras se lee */
  @supports (animation-timeline: view()) {
    .plan-svg { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: translateY(3%); } to { transform: translateY(-3%); } }
    .foot-word { animation: foot-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes foot-rise { from { transform: translateY(12%); } to { transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
