/* =========================================================
   DERPLAC - landing (v6, paleta artesanal y cálida)
   Paleta:
   - Blanco #FFFFFF: fondo principal
   - Negro #000000: logo y textos sobre claro
   - Fondos oscuros en negro puro #000000 (el dueño no quiere el negro cálido/vino en fondos)
   - Óxido #9F5125 y vino #971732: secundarios, solo para texto, nunca de fondo.
     Hoy el óxido está solo en la palabra destacada de Trabajos. Botones y detalles en negro o blanco.
   - Excepción: el botón flotante de WhatsApp va en su verde #1FA855.
   - Vino #971732: reservado para algo especial, casi no se usa.
   Los grises de texto y líneas salen del negro cálido, no son colores nuevos.
   Esquinas: imágenes 10px. Botones, pestañas y chips en píldora.
   Tipografía: solo General Sans. Títulos bold en minúscula (primera letra mayúscula),
   textos en peso medio, etiquetas chicas en mayúsculas semibold con letras separadas.
   ========================================================= */

@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #000000;        /* negro: logo y textos */
  --ink-2: #000000;      /* fondos oscuros: negro puro (el dueño no quiere tonos vino en fondos) */
  --ink-3: #1A1A1A;      /* recuadros sin foto sobre oscuro */
  --accent: #9F5125;     /* óxido */
  --accent-hover: #8A4420;
  --accent-ink: #FFFFFF; /* texto sobre óxido */
  --accent-dark: #9F5125;
  --vino: #971732;       /* reservado */
  --paper: #FFFFFF;      /* fondo principal */
  --paper-2: #EFEFEF;    /* hover suave sobre blanco */
  --field: #F4F4F4;      /* fondo de los campos del formulario */
  --white: #FFFFFF;
  --gray: #555555;       /* texto secundario sobre blanco, 7,5:1 */
  --gray-light: #BDBDBD; /* texto secundario sobre negro, 11:1 */
  --line: #E2E2E2;
  --line-dark: #2A2A2A;
  --wa: #1FA855;         /* WhatsApp en su verde */

  --f: "General Sans", "Helvetica Neue", system-ui, sans-serif;
  --mono: var(--f);      /* ya no hay segunda fuente: las etiquetas usan General Sans */

  --gutter: 16px;
  --wrap: 1320px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 127px; /* header fijo: 73 + 54 */
}
@media (min-width: 1024px) { html { scroll-padding-top: 137px; } } /* 73 + 64 al bajar */
/* Scroll suave con inercia (Lenis). Si Lenis no carga, queda el smooth nativo. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Toques en el celular: sin demora de doble toque ni recuadro gris (el feedback lo da el :active) */
a, button, summary, input, textarea, [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

mark.todo {
  background: #ECECEC; color: #333333; padding: 0 .3em;
  font-family: var(--mono); font-size: .8em; text-transform: none; letter-spacing: 0;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gray);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--gray-light); }
.h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05; letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2-light { color: var(--white); }
.h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.02em;
}
.lead { margin-top: 18px; font-size: 1.0625rem; color: var(--gray); max-width: 50ch; }
.opt { color: var(--gray); font-weight: 400; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .ic { width: 1.35em; height: 1.35em; }
.btn-ink { background: var(--ink); color: var(--white); }
/* Acción principal: naranja corte con texto carbón (4.5:1) */
.btn-accent { background: var(--ink); color: var(--white); }
.btn-paper { background: var(--white); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .6); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--gray); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .75rem; }
.btn-lg { min-height: 54px; padding: 0 28px; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--ink-2); }
  .btn-accent:hover { background: var(--line-dark); }
  .btn-paper:hover { background: var(--paper-2); }
  .btn-ghost:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
  .btn-line:hover { border-color: var(--ink); }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid var(--gray); background: transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, opacity 200ms ease, background-color 200ms ease, color 200ms ease;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .icon-btn:not(:disabled):hover { background: var(--ink); color: var(--white); border-color: var(--ink); } }
.icon-btn-sm { width: 40px; height: 40px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; min-height: 32px;
}
.arrow-link .ic { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .arrow-link:hover .ic { transform: translateX(4px); } }
.arrow-link-sm { margin-top: 6px; }

/* ---------- Logo (símbolo + palabra con máscara, toma el color del texto) ---------- */
/* Regla del manual: símbolo y mayúsculas del mismo alto (1em), 0,2em de aire entre ambos */
.logo { display: inline-flex; align-items: center; gap: .2em; text-decoration: none; color: inherit; font-size: 20px; }
.logo-mark { width: 1.44em; height: 1em; fill: currentColor; }
.logo-word {
  display: block; height: 1em; aspect-ratio: 1982 / 324;
  background: currentColor;
  -webkit-mask: url("assets/img/brand/derplac-wordmark.png") center / contain no-repeat;
  mask: url("assets/img/brand/derplac-wordmark.png") center / contain no-repeat;
}

/* ---------- Header ----------
   Medidas tomadas de wpc.com.ar: barra del logo 73 px (logo 40 px de alto en computadora)
   + fila de menú 88 px en computadora (64 px al bajar) y 54 px en celular.
   El header flota sobre el hero; la fila de menú se vuelve negra al hacer scroll. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; color: var(--white); }
.header-top {
  background: rgb(0 0 0 / .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 var(--line-dark); /* línea interna: no suma alto */
}
.header-top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 73px; }
.header-top .logo { grid-column: 2; justify-self: center; font-size: 22px; }
.header-social { grid-column: 1; grid-row: 1; display: none; }
.menu-btn {
  grid-column: 3; grid-row: 1; justify-self: end;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .35); background: transparent; color: inherit; cursor: pointer;
}
.menu-btn .ic { width: 20px; height: 20px; }
.header-nav { transition: background-color 300ms ease, box-shadow 300ms ease; }
.site-header.is-stuck .header-nav {
  background: rgb(0 0 0 / .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 var(--line-dark);
}
.header-nav-row { display: flex; align-items: center; justify-content: center; height: 54px; transition: height 300ms var(--ease-out); }
.nav ul { display: flex; justify-content: center; gap: 18px; align-items: center; }
.nav a {
  position: relative; display: block; text-decoration: none; padding: 8px 0;
  font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .16em; bottom: 2px; height: 2px; background: var(--white);
  transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out);
}
.nav a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.nav .nav-wide, .nav .nav-mid { display: none; }
@media (min-width: 420px) { .nav .nav-mid { display: block; } }
.header-wa { display: none; }
.social { display: flex; gap: 2px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  color: inherit; opacity: .78; transition: opacity 200ms ease, background-color 200ms ease;
}
.social a:hover { opacity: 1; background: rgb(255 255 255 / .08); }
.social .ic { width: 20px; height: 20px; }

@media (max-width: 359px) { .header-top .logo { font-size: 22px; } .nav ul { gap: 12px; } .nav a { letter-spacing: .1em; } }
@media (min-width: 768px) {
  .nav ul { gap: 32px; }
  .nav a { font-size: 10px; letter-spacing: .25em; }
  .nav .nav-wide { display: block; }
}
@media (min-width: 1024px) {
  .header-top .logo { font-size: 30px; }
  .header-social { display: flex; margin-left: -10px; }
  .menu-btn { display: none; }
  .header-nav-row { display: grid; grid-template-columns: 1fr auto 1fr; height: 88px; }
  .site-header.is-stuck .header-nav-row { height: 64px; }
  .nav { grid-column: 2; }
  .nav ul { gap: 48px; }
  .nav a { font-size: 11px; }
  .header-wa {
    grid-column: 3; justify-self: end;
    display: inline-grid; place-items: center; width: 88px; height: 48px;
    background: var(--white); color: var(--ink); text-decoration: none;
    transition: background-color 200ms ease, transform 160ms var(--ease-out);
  }
  .header-wa:hover { background: var(--paper-2); }
  .header-wa:active { transform: scale(0.97); }
  .header-wa .ic { width: 24px; height: 24px; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink-2); color: var(--white);
  display: flex; flex-direction: column; padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; height: 73px; }
.mobile-menu-head .logo { font-size: 24px; }
.mobile-links { margin-top: 24px; }
.mobile-links a {
  display: block; padding: 14px 0; text-decoration: none;
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line-dark);
}
/* Los links del menú suben uno tras otro al abrirlo */
.mobile-links li { opacity: 0; transform: translateY(18px); }
.mobile-menu.is-open .mobile-links li { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.mobile-menu.is-open .mobile-links li:nth-child(2) { transition-delay: 50ms; }
.mobile-menu.is-open .mobile-links li:nth-child(3) { transition-delay: 100ms; }
.mobile-menu.is-open .mobile-links li:nth-child(4) { transition-delay: 150ms; }
.mobile-menu.is-open .mobile-links li:nth-child(5) { transition-delay: 200ms; }
.mobile-menu-foot { margin-top: auto; display: grid; gap: 16px; justify-items: center; }
body.menu-open { overflow: hidden; }

/* ---------- Placeholders de imagen ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--ink-3); isolation: isolate;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph::before {
  /* símbolo de la marca, en blanco tenue, como marca de agua mientras falta la foto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 255 255 / .14);
  -webkit-mask: url("assets/icons/simbolo.svg") center / min(28%, 180px) no-repeat;
  mask: url("assets/icons/simbolo.svg") center / min(28%, 180px) no-repeat;
}
.ph-label {
  display: none; position: absolute; left: 12px; top: 12px; z-index: 3;
  font-family: var(--mono); font-size: .6875rem; padding: 3px 8px;
  background: rgb(0 0 0 / .8); color: #fff;
}
.ph.is-missing img { opacity: 0; }
.ph.is-missing .ph-label { display: block; }

/* ---------- Intro (estilo "hero kit") ----------
   Barra fina + DERPLAC gigante (2/3 del ancho) + título y botones al costado + foto redondeada.
   Al bajar, JS achica el logo gigante hasta el lugar del logo del header negro. */
.intro { background: var(--white); color: var(--ink); padding-bottom: 6px; }
.intro-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 56px; padding-inline: var(--gutter);
  font-size: .8125rem; font-weight: 500;
}
.intro-place { margin: 0; }
.intro-links, .intro-social { display: none; }
.intro-links a, .intro-social a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 250ms var(--ease-out); }
.intro-links a:hover, .intro-social a:hover { background-size: 100% 1px; }
.intro-links a + a::before { content: ", "; }
.intro-social span:not([hidden]) ~ span:not([hidden])::before { content: ", "; }
.intro-menu {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-size: .8125rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}
.intro-head {
  container-type: inline-size;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px;
  padding: 10px var(--gutter) 30px;
}
.intro-logo {
  /* símbolo + palabra: ancho total = 7,757 em. En celular ocupa todo el ancho. */
  font-size: calc((100vw - var(--gutter) * 2) / 7.9);
  font-size: calc(100cqi / 7.757);
  display: inline-flex; align-items: center; gap: .2em; line-height: 1;
  justify-self: start; position: relative; z-index: 45;
  transform-origin: 0 0; will-change: transform;
}
.intro-brand { display: grid; justify-items: start; }
.intro-title {
  font-size: clamp(1.25rem, .95rem + 1vw, 1.625rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; text-transform: uppercase; text-wrap: balance;
}
.cota-hero { margin-top: 16px; width: 100%; }
.intro-sub { margin-top: 12px; color: var(--gray); font-size: .9375rem; max-width: 42ch; }
.intro-ctas { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
/* Foto cortada como el símbolo: pieza larga arriba (46 %) y dos abajo (32 % y 62,5 %),
   con cortes del 8 % (vertical) y 5,5 % (horizontal). --g = 1 cortada, --g = 0 unida.
   JS mueve --g con el scroll y fija --cw / --ch (ancho y alto del marco en px). */
.intro-media {
  --g: 1; --cw: 100vw; --ch: 72svh;
  --gx: calc(var(--cw) * .055 * var(--g));
  --gy: calc(var(--ch) * .08 * var(--g));
  --r: calc(10px * var(--g));
  position: relative; margin: 0 6px; border-radius: 10px; overflow: hidden;
  height: clamp(360px, 72svh, 880px);
  background: none;
}
.intro-media::before { display: none; }
.cut { position: absolute; overflow: hidden; background: var(--ink-3); border-radius: var(--r); }
.cut img { position: absolute; width: var(--cw); height: var(--ch); max-width: none; object-fit: cover; }
.cut-a { left: 0; top: 0; width: var(--cw); height: calc(var(--ch) / 2 - var(--gy) / 2); }
.cut-a img { left: 0; top: 0; }
.cut-b, .cut-c { top: calc(var(--ch) / 2 + var(--gy) / 2); height: calc(var(--ch) / 2 - var(--gy) / 2); }
.cut-b { left: 0; width: calc(var(--cw) * .3475 - var(--gx) / 2); }
.cut-c { left: calc(var(--cw) * .3475 + var(--gx) / 2); width: calc(var(--cw) * .6525 - var(--gx) / 2); }
.cut-b img { left: 0; top: calc((var(--ch) / 2 + var(--gy) / 2) * -1); }
.cut-c img { left: calc((var(--cw) * .3475 + var(--gx) / 2) * -1); top: calc((var(--ch) / 2 + var(--gy) / 2) * -1); }
.intro-media.is-missing .cut img { opacity: 0; }

@media (min-width: 1024px) {
  .intro-links { display: block; margin-left: auto; }
  .intro-social { display: block; margin: 0 0 0 64px; }
  .intro-menu { display: none; }
  .intro-head { grid-template-columns: minmax(0, 66fr) minmax(0, 30fr); column-gap: 4%; align-items: end; padding-top: 18px; padding-bottom: 36px; }
  .intro-brand { container-type: inline-size; }
  /* en computadora el contenedor es la columna del logo (2/3 del ancho) */
  .intro-logo { font-size: calc((100vw - var(--gutter) * 2) * .64 / 7.9); font-size: calc(100cqi / 7.757); }
}

/* Header negro: lo mueve JS al ritmo del scroll (sin transición propia, así no va a los saltos) */
.site-header { will-change: transform; }
.site-header.is-top { pointer-events: none; }
.site-header.logo-pending .header-top .logo { opacity: 0; }

/* ---------- Cotas ---------- */
.cota { --c: var(--ink); --c-in: var(--white); position: relative; height: 14px; display: flex; align-items: center; justify-content: center; }
.cota-light { --c: var(--white); --c-in: var(--ink); }
.cota::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--c); transform-origin: left center; }
.cota::after { content: ""; position: absolute; inset: 0; border-inline: 1px solid var(--c); }
.cota-label {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: .6875rem; font-weight: 600; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  /* la etiqueta de la cota es la "línea de corte": siempre naranja */
  background: var(--ink); color: var(--white); padding: 4px 9px; border-radius: 999px;
}

/* Grillas de una columna en celular: minmax(0,1fr) evita que un hijo ancho empuje la página */
.collection-head, .mosaic, .why-grid, .manifesto-grid, .faq-wrap, .contact-grid, .app-body { grid-template-columns: minmax(0, 1fr); }

/* ---------- Secciones ---------- */
.section { padding-block: 80px; }
@media (min-width: 960px) { .section { padding-block: 128px; } }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }

/* ---------- Colección ---------- */
.collection-head { display: grid; gap: 28px; margin-bottom: 36px; }
@media (min-width: 1024px) {
  .collection-head { grid-template-columns: 1fr auto; align-items: end; gap: 48px; margin-bottom: 48px; }
}
.tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .tabs { margin: 0; padding: 0; overflow: visible; } }
.tab {
  flex: none; min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gray); background: transparent;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { border-color: var(--ink); } }

.mosaic { display: grid; gap: 12px; }
.tile { position: relative; overflow: hidden; color: var(--white); min-height: 280px; display: flex; align-items: flex-end; border-radius: 10px; }
.tile .ph { position: absolute; inset: 0; }
.tile .ph img { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover .ph img { transform: scale(1.05); } }
.tile::after {
  /* degradé negro abajo para que el texto se lea */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgb(0 0 0 / .85) 0%, rgb(0 0 0 / .15) 55%, rgb(0 0 0 / 0) 75%);
}
/* Aparición en barrido de abajo hacia arriba, con la foto que se asienta */
.js .tile.wipe { clip-path: inset(100% 0 0 0 round 10px); transition: clip-path 1100ms var(--ease-io); }
.js .tile.wipe .ph img { transform: scale(1.18); transition: transform 1400ms var(--ease-out); }
.js .tile.wipe.is-in { clip-path: inset(0 0 0 0 round 10px); }
.js .tile.wipe.is-in .ph img { transform: none; }
.tile.wipe:nth-child(2) { transition-delay: 90ms; }
.tile.wipe:nth-child(3) { transition-delay: 180ms; }
.tile-body { position: relative; z-index: 2; padding: 22px; }
.tile-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.tile-body p { margin-top: 8px; font-size: .9375rem; color: var(--white); opacity: .88; max-width: 40ch; }
.tile-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 32px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--white);
}
/* La flecha se corre en diagonal al pasar el mouse, como si empujara hacia afuera */
.tile-link .ic, .works-more .ic { transition: transform 450ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile-link:hover .ic, .works-more:hover .ic { transform: translate(3px, -3px); }
}
.tile-lg { min-height: 420px; }
@media (min-width: 768px) {
  .mosaic { grid-template-columns: 3fr 2fr; grid-template-rows: repeat(2, minmax(300px, 1fr)); gap: 16px; }
  .tile-lg { grid-row: 1 / 3; min-height: 0; }
  .tile-body { padding: 28px; }
  .tile-lg .tile-body { padding: 40px; }
  .tile-lg .tile-title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); }
}
@media (min-width: 1200px) { .mosaic { grid-template-rows: repeat(2, minmax(330px, 1fr)); } }
/* Entrada al cambiar de pestaña: aparición suave con un leve ascenso */
.tab-panel.is-entering .tile { animation: tile-in 450ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.tab-panel.is-entering .tile:nth-child(2) { animation-delay: 60ms; }
.tab-panel.is-entering .tile:nth-child(3) { animation-delay: 120ms; }
.tab-panel.is-entering .tile .ph img { transition: none; }
@keyframes tile-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Bloque negro ---------- */
.dark { background: var(--ink-2); color: var(--white); }
.dark mark.todo { background: #2A2A2A; color: #E6E6E6; }
/* Lista editorial en filas (no tarjetas con íconos) */
.why-grid { display: grid; gap: 40px; }
.why-lead { margin-top: 20px; color: var(--gray-light); font-size: 1.0625rem; max-width: 38ch; }
.why-list { border-top: 1px solid var(--line-dark); }
.why-list li { padding: 26px 0 28px; border-bottom: 1px solid var(--line-dark); display: grid; gap: 10px; }
.why-list h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.why-list p { color: var(--gray-light); max-width: 52ch; }
@media (min-width: 960px) {
  .why-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
  .why-head { position: sticky; top: 140px; }
  .why-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: baseline; }
}

/* ---------- Formularios ---------- */
.quote-form, .contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
.field-row, .field { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 399px) { .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; } }
@media (min-width: 768px) { .quote-form, .contact-form { padding: 40px; } }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; gap: 18px; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .quote-form legend {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.quote-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-form legend { padding: 0; margin-bottom: 10px; }
.quote-form input[type="text"], .quote-form input[type="number"], .quote-form select, .quote-form textarea,
.contact-form input, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--field); border: 1px solid transparent; border-bottom-color: var(--gray); border-radius: 2px;
  font-size: 1rem; /* 16px evita zoom en iOS */
  transition: border-color 160ms ease, background-color 160ms ease;
}
.quote-form textarea, .contact-form textarea { resize: vertical; min-height: 96px; }
.quote-form select {
  appearance: none; padding-right: 40px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23000000' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.quote-form ::placeholder, .contact-form ::placeholder { color: var(--gray); }
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible,
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 0; background: var(--white);
}
[aria-invalid="true"] { border-color: #B3261E !important; }
.field-error { color: #A1231B; font-size: .8438rem; }
.field-error:empty { display: none; }
.pieces-head, .piece { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 6px; align-items: center; }
.pieces-head { font-family: var(--mono); font-size: .6875rem; color: var(--gray); margin-bottom: 6px; }
.pieces-list { display: grid; gap: 8px; margin-bottom: 12px; }
.piece input { text-align: center; padding-inline: 6px !important; min-width: 0; }
.quote-form input, .quote-form select, .contact-form input { min-width: 0; }
.piece.is-new { animation: piece-in 240ms var(--ease-out); }
@keyframes piece-in { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 640px) { .pieces-head, .piece { grid-template-columns: 90px 1fr 1fr 40px; gap: 12px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--gray); background: var(--white); font-size: .875rem;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-foot { display: grid; gap: 12px; justify-items: start; }
.form-note { font-size: .8438rem; color: var(--gray); max-width: 52ch; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; font-size: .9375rem; background: #E3F1E6; color: #16432A; }
.form-status.is-error { background: #FBE4E2; color: #7A1812; }
.form-status a { font-weight: 650; }
@media (max-width: 639px) { .form-foot .btn { width: 100%; } }

/* ---------- Trabajos: frase + fotos que van pasando ----------
   Fondo negro (sigue al bloque "Por qué Derplac"), frase grande con palabras en amarillo obra
   y, al costado, las fotos de trabajos que se reemplazan solas con un barrido. */
.works { background: var(--ink-2); color: var(--white); padding-top: 0; }
.works-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.works-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }
.works-title {
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
.works-title em { font-style: normal; color: var(--accent); }
.works-more {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 32px;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--gray-light); border-bottom: 1px solid var(--line-dark);
  transition: color 200ms ease, border-color 200ms ease;
}
.works-more:hover { color: var(--white); border-color: var(--white); }
.works-show {
  position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 5; background: var(--ink-3);
}
.works-show:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.show-slide {
  position: absolute; inset: 0; margin: 0; border-radius: 0;
  clip-path: inset(0 0 0 100%); z-index: 0;
  transition: none;
}
.show-slide.is-prev { clip-path: inset(0 0 0 0); z-index: 1; }
.show-slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; transition: clip-path 800ms var(--ease-io); }
.show-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.show-slide.is-active img { transform: scale(1); transition: transform 6s linear; }
.show-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgb(0 0 0 / .65) 0%, rgb(0 0 0 / 0) 40%);
}
.show-cap {
  position: absolute; left: 18px; bottom: 34px; z-index: 2;
  font-family: var(--mono); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white);
}
.show-bars { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3; display: flex; gap: 6px; }
.show-bars span { flex: 1; height: 2px; background: rgb(255 255 255 / .3); overflow: hidden; position: relative; cursor: pointer; }
.show-bars span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.show-bars span.is-done::after { transform: scaleX(1); }
.show-bars span.is-active::after { animation: bar-fill var(--show-time, 5s) linear forwards; }
.works-show:hover .show-bars span.is-active::after,
.works-show:focus-within .show-bars span.is-active::after { animation-play-state: paused; }
@keyframes bar-fill { to { transform: scaleX(1); } }
/* Flechas para ver la anterior o la siguiente */
.show-nav { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 8px; }
.show-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: rgb(0 0 0 / .55); color: var(--white); border: 1px solid rgb(255 255 255 / .25);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms ease-out;
}
.show-btn .ic { width: 18px; height: 18px; }
.show-btn:active { transform: scale(0.95); }
.show-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .show-btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); } }
@media (min-width: 960px) {
  .works-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
  .works-copy { padding-bottom: 8px; }
  .works-show { aspect-ratio: auto; min-height: 600px; }
}

/* ---------- Reseñas ---------- */
.review-list { margin-top: 40px; display: grid; gap: 16px; }
.review { padding: 28px; background: var(--white); }
.review blockquote p { font-size: 1.125rem; line-height: 1.45; }
.review-who { margin-top: 18px; font-weight: 650; }
.review-who span { display: block; font-weight: 400; color: var(--gray); font-size: .875rem; }

/* ---------- FAQ ---------- */
/* Versión compacta: una columna angosta, 4 preguntas, menos aire */
.faq { background: var(--white); padding-block: 56px; }
@media (min-width: 960px) { .faq { padding-block: 80px; } }
.faq-wrap { display: grid; gap: 20px; max-width: 760px; }
.faq .h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 0; font-size: .9688rem; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
  transition: transform 250ms var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 0 16px; color: var(--gray); font-size: .9375rem; max-width: 62ch; }
.faq-item[open] .faq-body { animation: faq-in 300ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Contacto ---------- */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 44px; }
.contact-data { margin-top: 36px; display: grid; gap: 22px; }
.contact-data li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.contact-data li > .ic { width: 22px; height: 22px; margin-top: 2px; }
.contact-data strong { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.contact-data span { display: block; color: var(--gray); margin-top: 2px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: var(--gray-light); padding: 64px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 40px; }
.logo-footer { color: var(--white); font-size: 24px; }
.footer-brand p { margin-top: 18px; max-width: 40ch; font-size: .9375rem; }
.footer-brand .social { margin-top: 16px; margin-left: -10px; color: var(--white); }
.footer-col h2 { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; font-size: .9375rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .8125rem;
}
.footer-link { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.footer-link:hover { color: var(--white); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer { padding-top: 88px; } }

/* Privacidad */
.privacy { width: min(560px, 100% - 32px); border: 0; padding: 0; background: var(--white); color: var(--ink); }
.privacy::backdrop { background: rgb(0 0 0 / .6); }
.privacy-inner { padding: 30px; display: grid; gap: 14px; }
.privacy h2 { font-size: 1.375rem; font-weight: 700; }
.privacy p { color: var(--gray); font-size: .9375rem; }
.privacy form { margin-top: 6px; }
.privacy[open] { animation: dialog-in 240ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.wa-float:active { transform: scale(0.95); }
.wa-float-label {
  display: none; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgb(0 0 0 / .12);
}
.wa-float-btn {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 999px;
  background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgb(10 40 20 / .3);
}
.wa-float-btn .ic { width: 30px; height: 30px; }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .wa-float-label { display: block; } }

/* ---------- Páginas simples (404, mantenimiento) ---------- */
.page-plain { background: var(--ink-2); color: var(--white); }
.plain { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; padding-block: 24px 48px; }
.plain-body { align-self: center; max-width: 760px; }
.plain-title { font-size: clamp(2.5rem, 1.4rem + 5vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.plain-cota { margin-block: 26px 22px; max-width: 360px; }
.plain .lead { color: var(--gray-light); margin-bottom: 30px; }
.plain .eyebrow { color: var(--gray-light); }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .cota-hero::before { transform: scaleX(0); transition: transform 1100ms var(--ease-io) 500ms; }
.js .cota-hero.is-in::before { transform: scaleX(1); }
.js .cota-hero .cota-label { opacity: 0; transition: opacity 300ms ease 1300ms; }
.js .cota-hero.is-in .cota-label { opacity: 1; }

/* Entrada del hero */
.js .hero-inner > * { animation: rise 1000ms var(--ease-out) both; }
.js .hero-inner > :nth-child(2) { animation-delay: 120ms; }
.js .hero-inner > :nth-child(3) { animation-delay: 200ms; }
.js .hero-inner > :nth-child(4) { animation-delay: 280ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Movimiento ----------
   No se apaga con prefers-reduced-motion: Windows lo trae activado por defecto
   y la página quedaba quieta. El control es el botón de pausa de la barra superior
   (detiene la barra, el parallax y el scroll con inercia). */
