/* ==========================================================================
   Pinturas y Aplicaciones Pizarro — estilos
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Colores de marca: azul del brochazo del logo + amarillo de alta visibilidad de los chalecos */
  --cal: #fbf9f4;
  --cal-2: #f2eee4;
  --ink: #0f1a2b;
  --ink-2: #4a5468;
  --ink-3: #737c8f;
  --line: #e3ddd0;
  --azul: #1f4fb0;
  --azul-2: #173e8c;
  --azul-soft: #e6edfa;
  --vis: #e4f03a;
  --rojo: #c8372a;
  --ok: #1d8a4e;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(15 26 43 / .06), 0 10px 28px -10px rgb(15 26 43 / .18);
  --shadow-lg: 0 30px 60px -22px rgb(15 26 43 / .42);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]), body.nav-open { overflow: hidden; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--cal);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { overflow-x: hidden; }
@supports (overflow-x: clip) { main { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.25rem; font-stretch: 106%; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--azul); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--azul); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 9px; flex: none;
  background: var(--vis); border-radius: 7px 2px 6px 3px; transform: rotate(-5deg);
  box-shadow: inset 0 0 0 1px rgb(15 26 43 / .08);
}
.lead { font-size: 1.15rem; color: var(--ink); }

/* Palabra subrayada con brochazo amarillo */
.brush { position: relative; display: inline-block; z-index: 0; }
.brush svg {
  position: absolute; z-index: -1; left: -4%; bottom: .02em;
  width: 108%; height: .52em; fill: var(--vis); overflow: visible;
}
.js .brush svg { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-out) .35s; }
.js .brush.is-in svg { clip-path: inset(0 0 0 0); }
.hero .brush svg { transition-delay: 1s !important; }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  --bg: var(--azul); --fg: #fff; --fill: var(--vis); --fg-hover: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.35em; border: 0; border-radius: 999px;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  color: var(--fg); background: var(--bg);
  transition: color .35s var(--ease), transform .25s var(--ease), box-shadow .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill); transform: translateX(-101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover { color: var(--fg-hover); }
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i:last-of-type { transform: translateX(3px); }
.btn--primary { box-shadow: 0 10px 24px -10px rgb(31 79 176 / .7); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --fill: var(--ink); --fg-hover: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.btn--vis { --bg: var(--vis); --fg: var(--ink); --fill: #fff; --fg-hover: var(--ink); }
.btn--lg { padding: 1.05em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .75; cursor: progress; }

.chip {
  padding: .6em 1.1em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 600 .92rem/1 var(--font-body);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Cabecera ─────────────────────────────────────────────────────────── */
/* El fondo translúcido va en ::before: si se aplicara backdrop-filter (o una animación
   de transform persistente) a .header, el menú móvil (position: fixed) quedaría
   encerrado dentro de la cabecera en lugar de ocupar toda la pantalla. */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h); display: flex; align-items: center;
  transition: height .35s var(--ease);
  animation: drop .8s var(--ease-out);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgb(251 249 244 / .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .35s;
}
.header.is-scrolled { --header-h: 64px; }
.header.is-scrolled::before { opacity: 1; }
.header__inner { display: flex; align-items: center; gap: 16px; }

/* Logo: calcado del original (texto, brochazo y brocha) en assets/img/logo.svg */
.logo { display: inline-flex; align-items: center; position: relative; z-index: 2; flex: none; }
.logo img { height: 52px; width: auto; transition: height .35s var(--ease), transform .45s var(--ease); transform-origin: left center; }
.logo:hover img { transform: rotate(-2deg) scale(1.03); }
.header.is-scrolled .logo img { height: 44px; }
.logo--light img { height: auto; width: 220px; }
@media (max-width: 400px) { .logo img { height: 44px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0;
  transition: color .25s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--vis); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav__list a:hover, .nav__list a.is-current { color: var(--ink); }
.nav__list a:hover::after, .nav__list a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav__phone .i { color: var(--azul); width: 1.1em; }
.nav__cta { padding: .75em 1.2em; font-size: .95rem; }

.header__call, .burger { display: none; }

@media (min-width: 1140px) { .nav__phone { display: inline-flex; } }

@media (max-width: 959px) {
  .header__call {
    display: grid; place-items: center; margin-left: auto; position: relative; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; background: var(--azul); color: #fff;
  }
  .burger {
    display: grid; place-content: center; gap: 5px; position: relative; z-index: 2;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer;
  }
  .burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 28px;
    padding: 96px var(--gutter) 40px; background: var(--cal);
    clip-path: circle(0 at calc(100% - 38px) 38px);
    transition: clip-path .7s var(--ease-out), visibility 0s .7s;
    visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 38px) 38px); visibility: visible; transition: clip-path .7s var(--ease-out); }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a { display: block; font: 800 clamp(1.9rem, 8vw, 2.6rem)/1.15 var(--font-head); font-stretch: 112%; color: var(--ink); }
  .nav__list a::after { display: none; }
  .nav__list li { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease-out); }
  .nav.is-open li { opacity: 1; transform: none; }
  .nav.is-open li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open li:nth-child(5) { transition-delay: .2s; }
  .nav__phone { display: inline-flex; font-size: 1.2rem; }
  .nav__cta { align-self: flex-start; padding: 1em 1.5em; font-size: 1.05rem; }
}

/* ── Portada ──────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: clip;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(64px, 9vw, 120px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 70vmax; height: 70vmax; right: -30vmax; top: -30vmax; background: radial-gradient(closest-side, rgb(31 79 176 / .11), transparent); }
.hero::after { width: 40vmax; height: 40vmax; left: -18vmax; bottom: -22vmax; background: radial-gradient(closest-side, rgb(228 240 58 / .28), transparent); }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }

.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.7rem); font-stretch: 112%; line-height: .98; letter-spacing: -.04em; margin-bottom: .42em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; animation-delay: calc(.15s + var(--i) * .11s); }
.hero__in { animation: fadeUp 1s var(--ease-out) both; animation-delay: calc(.2s + var(--i) * .1s); }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.hero__lead strong { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: .95rem; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--azul); color: #fff; stroke-width: 3; }

.hero__media { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.hero__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__float {
  position: absolute; left: -9%; bottom: 7%; width: 46%; margin: 0;
  aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
  transform: rotate(-4deg); animation: float 7s ease-in-out 1.8s infinite;
}
.hero__float img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; top: -34px; right: -18px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--vis); color: var(--ink); display: grid; place-content: center; text-align: center;
  box-shadow: 0 18px 40px -16px rgb(15 26 43 / .5);
  animation: pop .8s var(--ease-out) 1.1s both;
}
.hero__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__badge-ring text { font: 700 8.6px var(--font-body); fill: var(--ink); }
.hero__badge-num { font: 900 2.2rem/1 var(--font-head); font-stretch: 120%; letter-spacing: -.04em; }
.hero__badge-txt { font: 700 .72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .12em; margin-top: 2px; }

@media (max-width: 600px) {
  .hero__float { left: -2%; bottom: -6%; width: 50%; }
  .hero__badge { width: 108px; height: 108px; top: -26px; right: -6px; }
  .hero__badge-num { font-size: 1.8rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* Revelado tipo «rodillo»: la foto se pinta de izquierda a derecha */
.roller { position: relative; }
.js .roller > img { clip-path: inset(0 100% 0 0); transition: clip-path 1.25s var(--ease-out) var(--d, .1s); }
.js .roller.is-in > img { clip-path: inset(0 0 0 0); }
.roller::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 18px; z-index: 1;
  background: var(--vis); opacity: 0; pointer-events: none;
  box-shadow: 0 0 24px rgb(228 240 58 / .8);
}
.js .roller.is-in::after { animation: roll 1.25s var(--ease-out) var(--d, .1s) both; }

/* ── Cinta ────────────────────────────────────────────────────────────── */
.ticker {
  background: var(--vis); color: var(--ink); overflow: hidden;
  padding: 16px 0; margin: 0 -2vw; transform: rotate(-1.4deg);
  box-shadow: 0 10px 30px -18px rgb(15 26 43 / .5);
}
.ticker__track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 38s linear infinite; }
.ticker__track span { font: 800 1.15rem/1 var(--font-head); font-stretch: 122%; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.ticker__track .i { width: 1em; height: 1em; fill: var(--azul); stroke: none; }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ── Secciones ────────────────────────────────────────────────────────── */
.section { padding-block: clamp(80px, 11vw, 136px); }
.section--alt { background: var(--cal-2); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head > p:last-child { font-size: 1.12rem; color: var(--ink-2); margin: 0; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.svc {
  grid-column: span 12; position: relative; isolation: isolate; overflow: hidden;
  min-height: 400px; display: flex; align-items: flex-end;
  border-radius: var(--radius-lg); background: var(--ink); color: #fff;
}
@media (min-width: 800px) {
  .svc { min-height: 460px; }
  .svc:nth-child(1), .svc:nth-child(4) { grid-column: span 7; }
  .svc:nth-child(2), .svc:nth-child(3) { grid-column: span 5; }
}
.svc figure { position: absolute; inset: 0; margin: 0; z-index: -2; }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(15 26 43 / 0) 25%, rgb(15 26 43 / .55) 55%, rgb(15 26 43 / .92) 100%);
  transition: opacity .5s;
}
.svc:hover img { transform: scale(1.07); }
.svc__body { padding: clamp(24px, 3vw, 36px); max-width: 540px; transition: transform .6s var(--ease-out); }
.svc:hover .svc__body { transform: translateY(-6px); }
.svc h3 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); margin-bottom: .35em; }
.svc p { color: rgb(255 255 255 / .84); margin: 0; }
.svc__tag {
  display: inline-block; margin-bottom: 14px; padding: .4em .85em; border-radius: 999px;
  background: var(--vis); color: var(--ink); font: 700 .74rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
}
.svc__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--vis); font-weight: 700; text-decoration: none; }
.svc__link .i { transition: transform .35s var(--ease); }
.svc__link:hover .i { transform: translateX(4px); }

.minis { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.mini {
  position: relative; overflow: hidden; padding: 28px 26px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.mini::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.mini:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.mini:hover::after { transform: scaleX(1); }
.mini__icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px;
  border-radius: 16px; background: var(--azul-soft); color: var(--azul);
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.mini__icon .i { width: 26px; height: 26px; }
.mini:hover .mini__icon { background: var(--azul); color: #fff; transform: rotate(-8deg) scale(1.05); }
.mini p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* Urgencias */
.urgent { position: relative; overflow: hidden; background: var(--azul); color: #fff; }
.urgent::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .12), transparent);
}
.urgent__inner { position: relative; display: grid; gap: 20px 48px; align-items: center; padding-block: clamp(48px, 7vw, 76px); }
@media (min-width: 880px) { .urgent__inner { grid-template-columns: auto 1fr auto; } }
.urgent .urgent__big { margin: 0; font: 900 clamp(5rem, 11vw, 8.5rem)/.8 var(--font-head); font-stretch: 125%; letter-spacing: -.06em; color: var(--vis); }
.urgent__big small { font-size: .42em; letter-spacing: 0; margin-left: .14em; }
.urgent h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .35em; }
.urgent p { margin: 0; max-width: 38em; color: rgb(255 255 255 / .82); }
.pulse { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--vis); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 1.8s var(--ease-out) infinite; }

/* Proceso */
.steps { position: relative; isolation: isolate; list-style: none; padding: 0; margin: 0; display: grid; gap: 36px; }
.step { position: relative; }
.step__n {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px;
  background: var(--ink); color: var(--vis); font: 800 .95rem/1 var(--font-head); font-stretch: 115%;
  box-shadow: 0 0 0 6px var(--cal-2);
}
.step figure { margin: 0 0 18px; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; }
.step img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.step:hover img { transform: scale(1.06); }
.step p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* Línea que une los pasos: se «pinta» al aparecer */
@media (max-width: 899px) {
  .step { padding-left: 66px; }
  .step__n { position: absolute; left: 0; top: 0; }
  .step:not(:last-child)::before, .step:not(:last-child)::after {
    content: ""; position: absolute; z-index: -1; left: 22px; top: 46px; bottom: -36px; width: 2px; background: var(--line);
  }
  .step:not(:last-child)::after { background: var(--azul); transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease-out) .4s; }
  .step.is-in::after { transform: scaleY(1); }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step figure { aspect-ratio: 4 / 5; }
  .steps::before, .steps::after { content: ""; position: absolute; z-index: -1; top: 22px; left: 23px; right: calc(25% - 41px); height: 2px; background: var(--line); }
  .steps::after { background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease-out) .3s; }
  .steps:has(.step.is-in)::after { transform: scaleX(1); }
}

/* Antes / después: fotos completas, sin recortar, a la misma altura dentro de cada par */
.pairs { display: grid; gap: clamp(36px, 5vw, 56px) 36px; align-items: start; }
@media (min-width: 860px) { .pairs { grid-template-columns: 1fr 1fr; } }
.pair { container-type: inline-size; }
.pair__photos { --h: 240px; position: relative; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
/* altura común = la que hace que las dos fotos quepan juntas en el ancho de la tarjeta (máx. 340px) */
@supports (width: 1cqw) { .pair__photos { --h: min(340px, (100cqw - 12px) / var(--sum)); } }
.pair__img { position: relative; flex: none; width: calc(var(--h) * var(--ar)); margin: 0; }
.pair__img a { display: block; overflow: hidden; border-radius: 14px; background: var(--cal-2); box-shadow: var(--shadow); cursor: zoom-in; }
.pair__img img { width: 100%; height: auto; transition: transform .9s var(--ease-out); }
.pair__img a:hover img { transform: scale(1.04); }
.pair__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none;
  padding: .42em .8em; border-radius: 999px;
  background: rgb(15 26 43 / .78); color: #fff; font: 700 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
}
.pair__img--despues .pair__tag { background: var(--vis); color: var(--ink); }
.pair__arrow {
  position: absolute; z-index: 3; top: calc(var(--h) / 2); left: calc(var(--h) * var(--ara) + 6px);
  display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff; color: var(--azul); box-shadow: var(--shadow);
}
.pair__arrow .i { width: 18px; height: 18px; stroke-width: 2.6; }
.pair h3 { margin-bottom: .3em; }
.pair p { margin: 0; color: var(--ink-2); font-size: .98rem; max-width: 34em; }
@supports not (width: 1cqw) {
  .pair__img { width: calc(50% - 6px); }
  .pair__arrow { display: none; }
}

/* Galería */
.filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.js .filters { display: flex; }
.gallery { columns: 3 300px; column-gap: 16px; }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 10px; } .g-item { margin-bottom: 10px !important; border-radius: 12px !important; } }
.g-item { position: relative; break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: #e6e0d3; }
.g-item[hidden] { display: none; }
.g-item a { display: block; cursor: zoom-in; }
.g-item img { width: 100%; transition: transform 1s var(--ease-out); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; pointer-events: none;
  background: linear-gradient(transparent, rgb(15 26 43 / .85)); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.3;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.g-item figcaption small { display: block; margin-bottom: 4px; color: var(--vis); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover figcaption, .g-item:focus-within figcaption { transform: none; }
.g-item.is-entering { animation: gIn .7s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms); }
.gallery__more { text-align: center; margin: 28px 0 0; }

/* Visor */
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .3s ease both; }
.lightbox::backdrop { background: rgb(8 13 24 / .93); }
.lb__figure { margin: 0; padding: 72px 16px 24px; text-align: center; max-width: min(100vw, 1240px); }
.lb__figure img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; margin-inline: auto; border-radius: 12px; box-shadow: 0 30px 80px -20px #000; touch-action: pan-y; }
.lb__figure img.is-changing { animation: lbSwap .45s var(--ease-out) both; }
.lb__figure figcaption { margin-top: 14px; color: rgb(255 255 255 / .85); font-weight: 600; }
.lb__count { position: fixed; top: 26px; left: 24px; font-size: .9rem; opacity: .7; font-variant-numeric: tabular-nums; }
.lb__btn {
  position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; transition: background .25s, color .25s, transform .25s;
}
.lb__btn:hover { background: var(--vis); color: var(--ink); }
.lb__close { top: 14px; right: 14px; }
.lb__prev, .lb__next { top: 50%; margin-top: -26px; }
.lb__prev { left: 14px; }
.lb__next { right: 14px; }
@media (max-width: 700px) { .lb__prev, .lb__next { top: auto; bottom: 14px; margin: 0; } }

/* Nosotros */
.about { display: grid; gap: clamp(48px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .85fr 1.15fr; } }
.about__media { position: relative; width: 100%; max-width: 480px; margin-inline: auto; }
.about__media figure { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__stamp {
  position: absolute; right: -14px; bottom: 36px; max-width: 230px; margin: 0; padding: 18px 22px;
  border-radius: 18px; background: var(--azul); color: rgb(255 255 255 / .85); font-size: .9rem; line-height: 1.3;
  box-shadow: var(--shadow-lg); transform: rotate(3deg);
}
.about__stamp strong { display: block; margin-top: 4px; color: var(--vis); font: 800 1.3rem/1.1 var(--font-head); font-stretch: 112%; }
.about__copy p:not(.eyebrow):not(.lead):not(.clients__title) { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.stat { padding: 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.stat strong { display: block; color: var(--azul); font: 900 clamp(1.55rem, 6.5vw, 2.7rem)/1 var(--font-head); font-stretch: 120%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .85rem; line-height: 1.3; }
.values { display: grid; gap: 18px 28px; list-style: none; padding: 0; margin: 0 0 32px; }
@media (min-width: 560px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { display: flex; gap: 14px; }
.values .i { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--azul-soft); color: var(--azul); }
.values strong { display: block; }
.values span { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.clients__title { margin-bottom: 12px; font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.clients { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.clients li { padding: .5em .95em; border-radius: 999px; background: var(--cal-2); font-weight: 600; font-size: .88rem; transition: background .3s, transform .3s var(--ease); }
.clients li:hover { background: var(--vis); transform: translateY(-2px); }
@media (max-width: 600px) {
  .about__stamp { right: -4px; bottom: 20px; }
  .stat { padding: 16px 12px; }
}

/* Contacto */
.contact { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.contact::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; left: -35vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(31 79 176 / .45), transparent);
}
.contact .eyebrow { color: var(--vis); }
.contact__grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.contact__info > p:not(.eyebrow) { color: rgb(255 255 255 / .75); font-size: 1.1rem; }
.contact .brush svg { fill: var(--azul); }
.contact__list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 32px 0 0; }
.contact__list a, .contact__list li {
  display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; font-weight: 600; overflow-wrap: anywhere;
}
.contact__list a { transition: transform .35s var(--ease); }
.contact__list a:hover { transform: translateX(6px); }
.contact__list small { display: block; color: rgb(255 255 255 / .55); font-weight: 500; font-size: .8rem; }
.contact__icon {
  display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 14px;
  background: rgb(255 255 255 / .08); color: var(--vis); transition: background .3s, color .3s;
}
.contact__list a:hover .contact__icon { background: var(--vis); color: var(--ink); }

.form-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.form__grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 24px 14px 8px; appearance: none; -webkit-appearance: none;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--cal); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1a2b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select:invalid { color: var(--ink-3); }
.field label {
  position: absolute; left: 15px; top: 16px; right: 12px; pointer-events: none;
  color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left top; transition: transform .25s var(--ease), color .25s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-10px) scale(.76); color: var(--azul); font-weight: 600; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--azul); box-shadow: 0 0 0 4px rgb(31 79 176 / .14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--rojo); background: #fff7f5; }
.field.has-error label { color: var(--rojo); }
.field__hint { margin: 6px 2px 0; color: var(--ink-3); font-size: .83rem; }
.field__err { margin: 6px 2px 0; color: var(--rojo); font-size: .83rem; font-weight: 600; }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 4px; color: var(--ink-2); font-size: .93rem; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--azul); cursor: pointer; }
.check.has-error { color: var(--rojo); }
.form .btn--block { margin-top: 18px; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .i { display: none; }
.form__status { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-size: .92rem; color: var(--ink-2); }
.form__status.is-error { color: var(--rojo); font-weight: 600; }
.form__notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form__notice--error { background: #fff0ed; color: var(--rojo); }
.form__success { padding: 36px 8px; text-align: center; outline: none; }
.form__success:not([hidden]) { animation: fadeUp .7s var(--ease-out) both; }
.form__success h3 { font-size: 1.8rem; }
.form__success-msg { color: var(--ink-2); font-size: 1.1rem; }
.form__success-small { color: var(--ink-3); font-size: .92rem; margin: 0; }
.form__check { width: 84px; height: 84px; margin: 0 auto 22px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form__check circle { stroke: var(--ok); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease-out) .1s forwards; }
.form__check path { stroke: var(--ok); stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .5s var(--ease-out) .7s forwards; }

/* Pie */
.footer { padding: 64px 0 28px; background: #09111d; color: rgb(255 255 255 / .62); font-size: .95rem; }
.footer a { color: rgb(255 255 255 / .85); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--vis); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__claim { max-width: 32em; margin-top: 18px; }
.footer__title { margin-bottom: 14px; color: #fff; font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgb(0 0 0 / .45);
  transform: scale(0); transition: transform .45s var(--ease);
}
.wa-float .i { width: 30px; height: 30px; }
.wa-float.is-visible { transform: scale(1); }
.wa-float.is-visible:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: inherit; animation: ping 2.6s var(--ease-out) infinite; }
html:not(.js) .wa-float { transform: scale(1); }

/* ── Revelado al hacer scroll ─────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Animaciones ──────────────────────────────────────────────────────── */
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes drop { from { transform: translateY(-100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-10px); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 13px)); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes roll { 0% { left: 0; opacity: 1; } 70% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes gIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes lbSwap { from { opacity: 0; transform: scale(.96); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .roller > img, .js .brush svg { clip-path: none; }
  .roller::after { display: none; }
}
