/* Fuentes propias (variables) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }

/* ==========================================================================
   Bizkaipintura — v2 (diseño moderno y dinámico, sin dependencias)
   ========================================================================== */

:root {
  --bg: #f3f0ea;
  --bg-2: #e9e3d9;
  --surface: #ffffff;
  --ink: #0e0f11;
  --ink-2: #33363b;
  --muted: #5a5e65;
  --line: rgba(14, 15, 17, .1);
  --accent: #c4431f;          /* texto/fondos con texto blanco (AA) */
  --accent-bright: #e0562f;   /* decorativo y bloques grandes */
  --accent-soft: #f7ded4;
  --on-ink: #f3f0ea;
  --on-ink-muted: #a9aeb5;
  --focus: #2f6bff;

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 14px;
  --r: 24px;
  --r-lg: 32px;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 160px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow: 0 1px 2px rgba(14, 15, 17, .04), 0 12px 40px rgba(14, 15, 17, .08);
  --shadow-lg: 0 30px 80px rgba(14, 15, 17, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
h3 { font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 300; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipografía ---------- */
.display { font-size: clamp(3.1rem, 9.2vw, 8rem); line-height: .9; letter-spacing: -.045em; font-weight: 700; }
.display em { color: var(--accent); }
.h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: .98; letter-spacing: -.04em; }
.eyebrow { margin: 0 0 18px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.head .h2 { margin-bottom: 20px; }
.head-text { color: var(--muted); font-size: 1.12rem; max-width: 38em; margin: 0; }
.head-text a { font-weight: 600; color: var(--accent); }
.head-light .head-text { color: var(--on-ink-muted); }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.5em; border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s var(--ease-out);
}
.btn .icon:last-child { transition: transform .3s var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn-lg { min-height: 58px; padding: 1em 1.8em; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: .6em 1.15em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(196, 67, 31, .28); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-line { border-color: rgba(14, 15, 17, .18); color: var(--ink); }
.btn-line-dark { border-color: rgba(14, 15, 17, .5); color: var(--ink); }
.btn-ghost { color: var(--ink-2); padding-inline: 1em; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon:last-child { transform: translateX(3px); }
  .btn-accent:hover { background: #a9391a; }
  .btn-dark:hover { background: #26292e; }
  .btn-light:hover { background: #fff; }
  .btn-line:hover, .btn-line-dark:hover { border-color: var(--ink); background: rgba(14, 15, 17, .04); }
  .btn-ghost:hover { color: var(--ink); }
}

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 250; height: 3px; background: var(--accent-bright); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Cortinilla de entrada ---------- */
.curtain { display: none; }
.intro .curtain {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--ink);
  animation: curtain-up .9s .75s var(--ease-in-out) forwards;
}
.curtain-logo { font: 700 clamp(2rem, 6vw, 3.4rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--on-ink); opacity: 0; animation: fade-in .5s .1s var(--ease-out) forwards; }
.curtain-logo em { color: var(--accent-bright); }
@keyframes curtain-up { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Cabecera flotante ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 200; padding-inline: 12px; transition: transform .45s var(--ease-out); }
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: calc(var(--wrap) - 2 * 24px); margin-inline: auto; height: 64px; padding: 0 8px 0 18px;
  border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 6px 24px rgba(14, 15, 17, .06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font: 700 1.3rem/1 var(--f-display); letter-spacing: -.04em; }
.brand-name em { color: var(--accent); }
.nav-links ul { display: flex; gap: 2px; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s;
}
.nav-links a:not(.btn):hover, .nav-links a.is-active { background: rgba(14, 15, 17, .06); color: var(--ink); }
.nav-links-foot { display: none; }
/* Submenú de servicios */
.has-sub { position: relative; }
.nav-links .sub { display: grid; }
@media (max-width: 1079px) {
  .nav-links .sub { padding: 4px 0 8px 16px; }
  .nav-links .sub a:not(.btn) { min-height: 46px; font: 500 1.08rem/1.2 var(--f-body); letter-spacing: 0; color: var(--ink-2); border-bottom: 0; }
}
@media (min-width: 1080px) {
  .sub {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; min-width: 250px; padding: 8px; gap: 2px;
    border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* puente para el ratón */
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out); }
  .nav-links .sub a:not(.btn) { display: flex; width: 100%; min-height: 42px; padding: 0 12px; border-radius: 12px; font-size: .93rem; white-space: nowrap; }
  .nav-links .sub a:not(.btn)::after { display: none; }
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-phone .icon { color: var(--accent); }
.burger { display: none; }

@media (max-width: 1079px) {
  .nav-inner { height: 60px; padding-left: 14px; }
  .nav-phone span, .nav-cta { display: none; }
  .nav-phone { width: 44px; justify-content: center; padding: 0; background: var(--accent); color: #fff; }
  .nav-phone .icon { color: #fff; }
  .burger {
    display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: var(--ink); cursor: pointer;
  }
  .burger span:not(.visually-hidden) { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--on-ink); transition: transform .35s var(--ease-out); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: space-between;
    padding: 110px var(--pad) calc(28px + env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; gap: 24px;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
  }
  .nav-links.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-in-out); }
  .nav-links ul { flex-direction: column; gap: 0; }
  .nav-links a:not(.btn) {
    min-height: 60px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line);
    font: 700 clamp(1.8rem, 8vw, 2.6rem)/1 var(--f-display); letter-spacing: -.035em; color: var(--ink);
  }
  .nav-links a:not(.btn):hover { background: none; color: var(--accent); }
  .nav-links li { opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease-out); }
  .nav-links.is-open li { opacity: 1; transform: none; transition-delay: calc(.12s + var(--d, 0) * 50ms); }
  .nav-links-foot { display: grid; gap: 10px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: clamp(110px, 16vh, 150px) 0 clamp(60px, 8vh, 90px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -2; width: 70vw; max-width: 900px; aspect-ratio: 1; right: -18vw; top: -24vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 86, 47, .16), rgba(224, 86, 47, 0) 65%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 0 rgba(47, 179, 107, .5); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(47, 179, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 107, 0); } }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.display .line > span { display: inline-block; }
.rotator-line { margin: 26px 0 18px; font: 600 clamp(1.4rem, 3vw, 2rem)/1.2 var(--f-display); letter-spacing: -.025em; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .3em; }
.rotator { position: relative; display: inline-grid; height: 1.2em; overflow: hidden; color: var(--accent); vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; transform: translateY(110%); transition: transform .7s var(--ease-out); }
.rotator > span.is-current { transform: translateY(0); }
.rotator > span.is-leaving { transform: translateY(-110%); }
html:not(.js) .rotator > span:first-child { transform: none; }
.hero-lead { max-width: 33em; margin-bottom: 32px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--accent); stroke-width: 2.6; }

.hero-media { position: relative; height: clamp(440px, 64vw, 680px); max-width: 620px; width: 100%; margin-inline: auto; }
.hm { position: absolute; margin: 0; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--bg-2); will-change: transform; }
.hm img { width: 100%; height: 100%; object-fit: cover; }
.hm-main { right: 0; top: 0; width: 70%; aspect-ratio: 3 / 4; }
.hm-second { left: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border: 6px solid var(--bg); }
.hero-badge {
  position: absolute; right: 4%; bottom: 6%; z-index: 2; display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-decoration: none; line-height: 1.2;
}
.hero-badge small { display: block; color: var(--muted); font-size: .8rem; }
.hero-badge strong { font-size: .92rem; }
.hero-badge .icon { color: var(--accent); }
.hero-badge-thumbs { display: flex; }
.hero-badge-thumbs img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.hero-badge-thumbs img + img { margin-left: -12px; }
.hero-stroke { position: absolute; left: 30%; top: -4%; width: 50%; height: 40px; overflow: visible; }
.hero-stroke path { fill: none; stroke: var(--accent-bright); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue-line { width: 1px; height: 44px; background: linear-gradient(var(--ink) 50%, transparent 50%) 0 0 / 1px 200%; animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* Animaciones de entrada del hero (solo con .js) */
.js [data-anim="line"] { transform: translateY(105%); animation: line-up 1.1s var(--ease-out) forwards; }
.js .line:nth-child(2) [data-anim="line"] { animation-delay: .1s; }
.js [data-anim="up"] { opacity: 0; transform: translateY(24px); animation: up .9s var(--ease-out) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .05s; }
.js .rotator-line { animation-delay: .3s; }
.js .hero-lead { animation-delay: .4s; }
.js .hero-actions { animation-delay: .5s; }
.js .hero-points { animation-delay: .6s; }
.js .hm img { clip-path: inset(100% 0 0 0); transform: scale(1.18); animation: img-in 1.4s var(--ease-in-out) forwards; }
/* La foto principal (LCP) se ve desde el primer instante: solo un zoom suave, sin ocultarla */
.js .hm-main img { clip-path: none; transform: scale(1.06); animation: settle 1.6s var(--ease-out) forwards; }
@keyframes settle { to { transform: scale(1); } }
.js .hm-second img { animation-delay: .45s; }
.js .hero-badge { opacity: 0; transform: translateY(16px); animation: up .8s 1.1s var(--ease-out) forwards; }
.js .hero-stroke path { stroke-dashoffset: 420; animation: draw 1.2s 1.2s var(--ease-out) forwards; }
/* Mientras la cortinilla está en pantalla, las animaciones del hero esperan */
.intro-wait .hero [data-anim], .intro-wait .hm img, .intro-wait .hero-badge, .intro-wait .hero-stroke path { animation-play-state: paused; }
.nav-links li:nth-child(2) { --d: 1; } .nav-links li:nth-child(3) { --d: 2; } .nav-links li:nth-child(4) { --d: 3; }
.nav-links li:nth-child(5) { --d: 4; } .nav-links li:nth-child(6) { --d: 5; }
@keyframes line-up { to { transform: translateY(0); } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes img-in { to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Cinta (ticker) ---------- */
.ticker { overflow: hidden; padding-block: clamp(18px, 2.6vw, 28px); background: var(--ink); color: var(--on-ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-group { display: flex; flex: none; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); }
.ticker span { font: 700 clamp(1.8rem, 4.4vw, 3.6rem)/1 var(--f-display); letter-spacing: -.035em; white-space: nowrap; }
.ticker .o { color: transparent; -webkit-text-stroke: 1.4px var(--on-ink); }
.ticker i { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--accent-bright); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section); }
.section-soft { background: var(--bg-2); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink .eyebrow { color: #ff8a62; }

/* Aparición al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Servicios: bento ---------- */
.bento { display: grid; gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 240px; padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out);
}
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.tile p { margin: 0; color: var(--muted); }
.tile-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.tile-icon .icon { width: 26px; height: 26px; }
.tile-photo { justify-content: flex-end; min-height: 460px; color: #fff; border: 0; }
.tile-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 15, 17, .88) 0%, rgba(14, 15, 17, .35) 45%, rgba(14, 15, 17, 0) 70%); }
.tile-photo p { color: rgba(255, 255, 255, .85); max-width: 32em; }
.tile-photo .tile-icon { position: absolute; top: 24px; left: 24px; background: rgba(255, 255, 255, .92); }
.tile-body { display: flex; flex-direction: column; gap: 12px; }
.tile-dark { background: var(--ink); color: var(--on-ink); border: 0; }
.tile-dark p { color: var(--on-ink-muted); }
.tile-dark .tile-icon { background: rgba(255, 255, 255, .08); color: #ff8a62; }
.tile-split { display: grid; gap: 20px; }
.tile-split img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--r); }
.tile-split .tile-body .tile-icon { margin-bottom: 8px; }
.tile-color { background: var(--tile); color: #fff; border: 0; transition: background-color .6s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out); }
.tile-color p { color: rgba(255, 255, 255, .88); }
.tile-color .tile-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.chips-color { display: flex; gap: 10px; margin-top: 6px; }
.chips-color button {
  width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); background: var(--c); cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.chips-color button[aria-pressed="true"] { box-shadow: 0 0 0 3px rgba(14, 15, 17, .55); transform: scale(1.08); }
.chips-color button:active { transform: scale(.95); }
.tile-e, .tile-f { flex-direction: row; align-items: flex-start; gap: 20px; min-height: 0; }
.tile-e .tile-icon, .tile-f .tile-icon { margin: 0; }
.tile-e h3, .tile-f h3 { margin-bottom: 8px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .tile-photo:hover img { transform: scale(1.06); }
}

/* ---------- Antes y después ---------- */
.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: rgba(14, 15, 17, .78); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tag-accent { background: var(--accent); }
.pair { display: grid; gap: 20px; align-items: center; margin-bottom: clamp(72px, 10vw, 120px); }
.pair-img { margin: 0; }
.pair-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); }
.pair-img figcaption { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--on-ink-muted); font-size: .95rem; }
.pair-arrow { display: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-bright); color: #fff; }
.pair-arrow .icon { width: 26px; height: 26px; }
.js .pair-after[data-reveal] img { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s .25s var(--ease-in-out); }
.js .pair-after[data-reveal].is-in img { clip-path: inset(0 0 0 0); }
.pair-copy h3, .compare-copy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.pair-copy p, .compare-copy p { color: var(--on-ink-muted); font-size: 1.08rem; margin-bottom: 26px; }

.compare-row { display: grid; gap: 32px; align-items: center; }
.compare { --pos: 50%; position: relative; width: 100%; max-width: 520px; aspect-ratio: 3 / 4; margin-inline: auto; overflow: hidden; border-radius: var(--r-lg); user-select: none; -webkit-user-select: none; }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 16px rgba(0, 0, 0, .3); pointer-events: none; }
.compare-handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff; color: var(--ink); box-shadow: 0 8px 30px rgba(0, 0, 0, .3); pointer-events: none;
}
.compare-handle .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.compare:has(.compare-range:focus-visible) .compare-handle { outline: 3px solid var(--focus); outline-offset: 3px; }
.compare-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-tag-l, .compare-tag-r { position: absolute; bottom: 16px; z-index: 1; pointer-events: none; }
.compare-tag-l { left: 16px; }
.compare-tag-r { right: 16px; }

/* ---------- Trabajos: galería horizontal ---------- */
.works { position: relative; padding-block: var(--section) 40px; }
.works-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 48px); }
.works-head .h2 { max-width: 12em; }
.works-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-weight: 500; }
.hint-desktop { display: none; }
.works-track {
  display: flex; gap: 18px; padding-inline: var(--pad); padding-bottom: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.works-track::-webkit-scrollbar { display: none; }
.card { position: relative; flex: none; width: min(78vw, 360px); margin: 0; scroll-snap-align: start; }
.card > a { display: block; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .9s var(--ease-out); }
.card figcaption { display: grid; gap: 2px; padding: 14px 4px 0; }
.card figcaption strong { font: 700 1.2rem/1.2 var(--f-display); letter-spacing: -.02em; }
.card figcaption span { color: var(--muted); font-size: .95rem; }
.card-cta { display: grid; aspect-ratio: 3 / 4; align-self: flex-start; border-radius: var(--r); background: var(--accent-bright); color: var(--ink); text-decoration: none; padding: 28px; }
.card-cta-inner { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.card-cta-inner span { font-size: 1.05rem; font-weight: 500; }
.card-cta-inner strong { font: 700 clamp(2rem, 3vw, 2.8rem)/1 var(--f-display); letter-spacing: -.04em; }
.card-cta .icon { width: 44px; height: 44px; align-self: flex-end; transition: transform .4s var(--ease-out); }
.works-bar { margin-top: 28px; }
.works-bar > span { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.works-bar > span::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .card > a:hover img { transform: scale(1.05); }
  .card-cta:hover .icon { transform: rotate(45deg); }
}
/* Modo "anclado": en escritorio el scroll vertical desplaza la galería en horizontal */
.works.is-pinned { padding: 0; }
.works.is-pinned .works-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.works.is-pinned .works-track { overflow: visible; scroll-snap-type: none; will-change: transform; padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
.works.is-pinned .card { width: clamp(280px, 24vw, 380px); }
.works.is-pinned .hint-desktop { display: inline; }
.works.is-pinned .hint-mobile { display: none; }

/* ---------- Proceso: tarjetas apiladas ---------- */
.process { display: grid; gap: 48px; }
.process-head .h2 { margin-bottom: 20px; }
.process-head .head-text { margin-bottom: 32px; }
.stack { display: grid; gap: 18px; }
.stack-card {
  position: sticky; top: calc(100px + var(--i) * 22px); display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: start;
  min-height: 230px; padding: clamp(26px, 3.4vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(14, 15, 17, .05);
}
.stack-num { font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--f-display); letter-spacing: -.05em; color: var(--accent); }
.stack-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.stack-card p { margin: 0; color: var(--muted); }
.stack-card-photo { grid-template-columns: auto 1fr; }
.stack-card-photo img { grid-column: 1 / -1; width: 100%; height: 220px; object-fit: cover; border-radius: var(--r); }

/* ---------- Por qué ---------- */
.statement { max-width: 22em; margin: 0 0 clamp(56px, 8vw, 96px); font: 600 clamp(1.8rem, 4.2vw, 3.6rem)/1.12 var(--f-display); letter-spacing: -.035em; }
.statement .w { transition: color .35s; }
.js .statement .w { color: rgba(14, 15, 17, .5); } /* contraste suficiente también antes de "pintarse" */
.js .statement .w.on { color: var(--ink); }
.features { display: grid; gap: 28px; }
.features li { padding-top: 24px; border-top: 1px solid var(--ink); }
.features .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 18px; }
.features h3 { font-size: 1.3rem; margin-bottom: 8px; }
.features p { margin: 0; color: var(--muted); }

/* ---------- Zona ---------- */
.zone { overflow: hidden; }
.zone-grid { display: grid; gap: 28px; margin-bottom: clamp(56px, 7vw, 88px); }
.zone-text p { color: var(--on-ink-muted); font-size: 1.1rem; }
.zone-text .btn { margin-top: 12px; }
.towns { display: grid; gap: 14px; }
.towns-row { display: flex; gap: 14px; width: max-content; animation: ticker 36s linear infinite; }
.towns-row li {
  padding: 14px 28px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); white-space: nowrap;
  font: 600 clamp(1.3rem, 2.6vw, 2.1rem)/1 var(--f-display); letter-spacing: -.03em;
}
.towns-row .town-main { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); }
.towns-row-rev { animation-direction: reverse; margin-left: -20vw; }
.towns:hover .towns-row { animation-play-state: paused; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 40px; }
.faq-head .h2 { margin-bottom: 20px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 18px 0;
  font: 600 clamp(1.1rem, 1.8vw, 1.35rem)/1.3 var(--f-display); letter-spacing: -.015em; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s, border-color .3s, transform .45s var(--ease-out); }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
.qa-icon::after { transform: rotate(90deg); }
.qa[open] .qa-icon { background: var(--ink); border-color: var(--ink); color: var(--on-ink); transform: rotate(180deg); }
.qa[open] .qa-icon::after { transform: rotate(0deg); }
.qa-body { overflow: hidden; }
.qa-body p { margin: 0; padding: 0 60px 24px 0; color: var(--muted); }
.qa-body a { color: var(--accent); font-weight: 600; }

/* ---------- CTA grande ---------- */
.bigcta { padding-block: clamp(80px, 12vw, 150px); background: var(--accent-bright); color: var(--ink); overflow: hidden; }
.bigcta-title { font-size: clamp(3.2rem, 11.5vw, 10.5rem); line-height: .88; letter-spacing: -.055em; margin-bottom: clamp(32px, 4vw, 48px); }
.bigcta-title em { color: transparent; -webkit-text-stroke: clamp(1.5px, .25vw, 3px) var(--ink); }
.bigcta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 48px; align-items: start; }
.contact-info .h2 { margin-bottom: 20px; }
.contact-cards { display: grid; gap: 12px; margin: 32px 0 24px; }
.ccard {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .25s, transform .35s var(--ease-out), box-shadow .35s;
}
.ccard small { display: block; color: var(--muted); font-size: .82rem; }
.ccard strong { font-size: 1.12rem; word-break: break-word; }
.ccard-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--ink); color: var(--on-ink); }
.ccard-go { margin-left: auto; color: var(--muted); transition: transform .35s var(--ease-out), color .25s; }
@media (hover: hover) and (pointer: fine) {
  a.ccard:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
  a.ccard:hover .ccard-go { transform: rotate(45deg); color: var(--accent); }
}
.tip { display: flex; gap: 12px; margin: 0; color: var(--muted); font-size: .95rem; }
.tip .icon { color: var(--accent); margin-top: 3px; }

.wizard { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.wizard-top { margin-bottom: 28px; }
.wizard-step-label { margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.wizard-bar { height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.wizard-bar span { display: block; height: 100%; width: 33.34%; background: var(--accent); border-radius: 4px; transition: width .6s var(--ease-out); }
html:not(.js) .wizard-top { display: none; }
.step { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.step-title { padding: 0; margin-bottom: 20px; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.js .step:not(.is-current) { display: none; }
.js .step.is-current { animation: step-in .5s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
html:not(.js) .step + .step { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
  display: flex; flex-direction: column; gap: 10px; min-height: 96px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: .98rem; line-height: 1.25; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.option .icon { width: 26px; height: 26px; color: var(--accent); }
.option input:checked + span { border-color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.option:active span { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .option:hover span { border-color: rgba(14, 15, 17, .35); } }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 14px; }
.field label, .check label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 1.5px solid #d6d0c5; border-radius: 16px; background: var(--bg);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .18); }
.field input::placeholder, .field textarea::placeholder { color: #8b8f95; }
[aria-invalid="true"] { border-color: #b3261e !important; }
.field-error { margin: 8px 0 0; color: #b3261e; font-size: .88rem; font-weight: 500; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin-top: 6px; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check label { font-weight: 400; margin: 0; }
.check label a { color: var(--accent); font-weight: 600; }
.check .field-error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wizard-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
html:not(.js) [data-prev], html:not(.js) [data-next] { display: none; }
.form-status { margin: 16px 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 14px 16px; border-radius: 14px; background: #e3f3e8; color: #1e5b36; }
.form-status.is-error { padding: 14px 16px; border-radius: 14px; background: #fbe6e3; color: #8c1d15; }

/* ---------- Pie ---------- */
.footer { padding: clamp(72px, 9vw, 110px) 0 110px; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.footer-grid { display: grid; gap: 40px; }
.footer-claim { max-width: 14em; margin-bottom: 24px; font: 700 clamp(1.8rem, 3.4vw, 2.8rem)/1.05 var(--f-display); letter-spacing: -.035em; }
.footer-title { margin-bottom: 14px; font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-muted); }
.footer ul { display: grid; gap: 2px; }
.footer ul a, .footer ul span { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-ink); text-decoration: none; }
.footer ul a:hover { color: #ff8a62; }
.footer-word { margin: clamp(56px, 8vw, 96px) 0 20px; font: 800 clamp(3.6rem, 16.5vw, 17rem)/.8 var(--f-display); letter-spacing: -.065em; color: #686d74; white-space: nowrap; user-select: none; }
.footer-word em { color: var(--accent-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: var(--on-ink-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-ink); }

/* ---------- Barra fija móvil ---------- */
.mbar {
  position: fixed; inset: auto 0 0 0; z-index: 150; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(243, 240, 234, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.mbar.is-visible { transform: none; }
.mbar .btn { min-height: 50px; }

/* ---------- Visor ---------- */
.lightbox { width: min(1100px, 92vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(8, 9, 10, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lb-figure { margin: 0; }
.lb-figure img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--r); }
.lb-figure figcaption { display: grid; gap: 2px; margin-top: 14px; text-align: center; color: #c9ced4; }
.lb-figure figcaption strong { font: 700 1.3rem/1.2 var(--f-display); color: #fff; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease-out); }
.lb-btn:active { transform: scale(.94); }
.lb-btn .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.lb-close { top: -62px; right: 0; }
.lb-prev, .lb-next { top: 40%; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ==========================================================================
   Páginas de servicio / zona
   ========================================================================== */
.page-hero { position: relative; padding: clamp(118px, 15vh, 150px) 0 clamp(56px, 7vw, 88px); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 60vw; max-width: 760px; aspect-ratio: 1; right: -16vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 86, 47, .14), rgba(224, 86, 47, 0) 65%);
}
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b9b3a9; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-title { font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: .92; letter-spacing: -.045em; margin-bottom: 24px; }
.page-title em { color: var(--accent); }
.page-lead { max-width: 36em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin-bottom: 30px; }
.page-hero-img { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; max-width: 480px; width: 100%; justify-self: center; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-panel {
  display: grid; align-content: end; gap: 10px; aspect-ratio: 4 / 5; max-width: 480px; width: 100%; justify-self: center; padding: 36px;
  border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink);
  background-image: radial-gradient(420px 420px at 100% 0%, rgba(224, 86, 47, .45), rgba(224, 86, 47, 0) 70%);
}
.page-hero-panel strong { font: 700 clamp(2rem, 4vw, 3rem)/1 var(--f-display); letter-spacing: -.04em; }
.page-hero-panel span { color: var(--on-ink-muted); }

.content-grid { display: grid; gap: 48px; align-items: start; }
.prose { max-width: 720px; }
.prose > section + section { margin-top: clamp(56px, 7vw, 80px); }
.prose h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px; }
.prose h3 { margin: 28px 0 8px; }
.prose p { color: var(--ink-2); font-size: 1.08rem; }
.prose a:not(.btn) { color: var(--accent); font-weight: 600; }
.checklist { display: grid; gap: 12px; margin: 22px 0; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.checklist .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); stroke-width: 2.4; }
.checklist strong { color: var(--ink); }
.towns-grid { display: grid; gap: 14px; margin-top: 24px; }
.towns-grid article { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.towns-grid h3 { margin: 0 0 8px; font-size: 1.2rem; }
.towns-grid p { margin: 0; color: var(--muted); font-size: 1rem; }
.photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 8px; }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.photo-row figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.aside-card {
  padding: 28px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink);
  background-image: radial-gradient(300px 300px at 100% 0%, rgba(224, 86, 47, .35), rgba(224, 86, 47, 0) 70%);
}
.aside-card h2 { font-size: 1.7rem; letter-spacing: -.03em; margin-bottom: 10px; }
.aside-card p { color: var(--on-ink-muted); margin-bottom: 20px; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-card .btn-line { color: var(--on-ink); border-color: rgba(255, 255, 255, .25); }
.aside-card small { display: block; margin-top: 8px; color: var(--on-ink-muted); }
.related { display: grid; gap: 14px; }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .35s var(--ease-out);
}
.related strong { font: 700 1.2rem/1.2 var(--f-display); letter-spacing: -.02em; }
.related span { display: block; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.related .icon { flex: none; color: var(--accent); transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .related a:hover { border-color: var(--ink); transform: translateY(-2px); }
  .related a:hover .icon { transform: rotate(45deg); }
}
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: .95rem; text-decoration: none; color: inherit; }
.tile-link .icon { transition: transform .3s var(--ease-out); }
.tile-link:hover .icon { transform: translateX(3px); }
.tile:not(.tile-photo):not(.tile-dark):not(.tile-color) .tile-link { color: var(--accent); }
picture { display: contents; }
picture > source { display: none; } /* que <source> no ocupe hueco en rejillas/flex */

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-a { grid-column: 1 / -1; }
  .tile-b { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; }
  .tile-split img { height: 100%; min-height: 260px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .options { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pair { grid-template-columns: 1fr 1fr; }
  .pair-copy { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .mbar { display: none; }
  .footer { padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-media { margin-right: 0; }
  .scroll-cue { display: flex; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-areas: "a a b b" "a a c d" "e e f f"; }
  .tile-a { grid-area: a; min-height: 560px; }
  .tile-b { grid-area: b; }
  .tile-c { grid-area: c; }
  .tile-d { grid-area: d; }
  .tile-e { grid-area: e; }
  .tile-f { grid-area: f; }
  .pair { grid-template-columns: 1fr 56px 1fr .95fr; gap: 28px; }
  .pair-arrow { display: grid; }
  .pair-copy { grid-column: auto; padding-left: 20px; }
  .compare-row { grid-template-columns: 1fr 1fr; gap: 80px; }
  .compare-copy { order: 2; }
  .process { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
  .process-head { position: sticky; top: 130px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .zone-grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; }
  .faq { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: 130px; }
  .contact { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .page-hero-grid { grid-template-columns: 1.2fr .8fr; gap: 64px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; }
  .aside-card { position: sticky; top: 110px; }
  .photo-row { grid-template-columns: repeat(3, 1fr); }
  .related { grid-template-columns: repeat(2, 1fr); }
  .towns-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Movimiento reducido: animaciones suaves (fundidos y color), sin desplazamientos grandes ---------- */
.rm [data-reveal] { transform: none; transition-duration: .8s; }
.rm [data-anim="line"] { transform: none; opacity: 0; animation-name: fade-in; }
.rm [data-anim="up"] { transform: none; animation-name: fade-in; }
.rm .hm img { clip-path: none; transform: none; opacity: 0; animation-name: fade-in; }
.rm .hm-main img { opacity: 1; animation: none; } /* foto principal visible al instante */
.rm .hero-badge { transform: none; animation-name: fade-in; }
.rm .rotator > span { transform: none; opacity: 0; transition: opacity .6s; }
.rm .rotator > span.is-current { opacity: 1; }
.rm .intro .curtain, .rm.intro .curtain { animation-name: curtain-fade; }
@keyframes curtain-fade { to { opacity: 0; visibility: hidden; } }
.rm .ticker-track { animation-duration: 90s; }
.rm .towns-row { animation-duration: 90s; }
.rm .js .pair-after[data-reveal] img, .rm .pair-after[data-reveal] img { clip-path: none; }
.rm .step.is-current { animation-name: fade-in; }
.rm .dot, .rm .scroll-cue-line { animation: none; }
@media (max-width: 1079px) {
  .rm .nav-links { clip-path: none; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
  .rm .nav-links.is-open { opacity: 1; transition: opacity .35s; }
  .rm .nav-links li { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .nav, .mbar, .progress, .curtain, .wizard, .ticker, .bigcta { display: none !important; }
}
