/* =============================================================
   1. Tokens
   ============================================================= */
/* Palette taken from the JM logo: slate blue #364b60 + soft white #eeeeec,
   with deeper navies and a cool "ice" tint derived from the same hue. */
:root {
  color-scheme: light;
  --night: #142231;
  --night-2: #1b2c3e;
  --slate: #364b60;
  --slate-2: #2b3d50;
  --paper: #eeeeec;
  --paper-2: #e1e4e7;
  --ink: #142231;
  --ink-soft: #3d4c5b;
  --gray: #c4ced8;
  --muted: #8a99a8;
  --ice: #a9c6e2;
  --accent: #364b60;      /* on light surfaces */
  --accent-2: #24364a;
  --on-accent: #eeeeec;
  --line-d: rgba(238, 238, 236, .1);
  --line-l: rgba(20, 34, 49, .12);

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* On dark surfaces the accent flips to the logo's soft white / ice tint */
.dark, .nav, .included, .splash, .cta-band,.sector-tabs button[aria-selected="true"] {
  --accent: var(--ice);
  --accent-2: var(--paper);
  --on-accent: var(--night);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 80px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
/* Emphasis = same geometric face, light weight + accent color (no italics, like the logo) */
em { font-style: normal; font-weight: 300; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--paper); color: var(--ink); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hide-sm { display: none; }
.dark { background: var(--night); color: #e8ecef; }
.light { background: var(--paper); }
.paper2 { background: var(--paper-2); }

.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cols {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

/* =============================================================
   4. Typography
   ============================================================= */
.kicker { color: var(--muted); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.kicker .num { color: var(--accent); }
.h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); max-width: 16ch; }
.h2 em { color: var(--accent); }
.dark .h2 em { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-soft); max-width: 48ch; margin-top: 22px; }
.dark .lead { color: var(--gray); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 600; letter-spacing: -.01em;
  border-radius: 999px; padding: 14px 24px; line-height: 1;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 19px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-orange { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(169,198,226,.55); }
.btn-orange:hover { background: var(--accent-2); box-shadow: 0 18px 40px -12px rgba(169,198,226,.7); }
.btn-ghost { border: 1px solid rgba(255,255,255,.22); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-l); background: rgba(255,255,255,.6); color: var(--ink-soft); }
.pills-dark li { border-color: var(--line-d); background: rgba(255,255,255,.04); color: var(--gray); }

/* Image placeholders */
.ph {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(53,75,95,.07) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #dfe4e7, #cfd6db);
  border: 1px dashed rgba(53,75,95,.35);
  display: grid; place-items: center;
}
.ph span { font-family: var(--display); font-weight: 600; color: var(--slate); font-size: 1.1rem; }
.ph::after {
  content: attr(data-ph); position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); opacity: .75;
}

/* Browser windows (mockups of real projects) */
.win {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,.6), 0 18px 36px -10px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.12);
}
.win-bar { height: 30px; background: #eceff1; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; flex: 1; height: 18px; border-radius: 6px; background: #fff; font-size: 10px; color: #7a8792; display: flex; align-items: center; padding-left: 10px; font-family: var(--sans); font-weight: 500; white-space: nowrap; overflow: hidden; }
.win-body { container-type: inline-size; aspect-ratio: 16 / 10; position: relative; overflow: hidden; }

/* WayCo mock */
.mock-wayco { background: linear-gradient(180deg, #f2f3f4, #e7e9eb); color: #1d2125; padding: 4cqw 5cqw; font-family: var(--display);
  background-image: linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(180deg, #f2f3f4, #e7e9eb); background-size: 16.66% 100%, 100% 100%; }
.mw-nav { display: flex; align-items: center; gap: 3cqw; font-size: 2.6cqw; }
.mw-nav b { font-weight: 800; display: flex; gap: 1cqw; align-items: center; }
.mw-nav b em { font-family: var(--display); font-style: normal; color: #c8473a; }
.mw-nav s { flex: 0 0 6cqw; height: .7cqw; background: #b9bec3; border-radius: 1cqw; }
.mw-nav s:first-of-type { margin-left: auto; }
.mw-nav u { text-decoration: none; background: #c8473a; color: #fff; font-size: 1.8cqw; font-weight: 700; padding: 1.3cqw 2cqw; margin-left: auto; }
.mw-h { margin-top: 5cqw; font-weight: 800; font-size: 7.4cqw; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.mw-h span { color: #c8473a; }
.mw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin-top: 4cqw; }
.mw-photo { height: 22cqw; border-radius: 1cqw;
  background: linear-gradient(180deg, #a9c3d8 0 38%, #3f6b3d 38% 62%, #6b6e70 62%); position: relative; overflow: hidden; }
.mw-photo::after { content: ""; position: absolute; left: 22%; bottom: 14%; width: 46%; height: 34%; background: #2a3f9a; border-radius: .6cqw; box-shadow: 9cqw .5cqw 0 -1cqw #b8875a; }
.mw-board { border: 1px solid #cfd3d6; background: rgba(255,255,255,.6); padding: 2cqw; display: grid; gap: 3cqw; align-content: start; }
.mw-board i { display: block; height: .7cqw; background: #d7dadc; position: relative; }
.mw-board i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #c8473a; }

/* Tuled mock */
.mock-tuled { background: radial-gradient(80% 90% at 90% 20%, #c9f0dc, transparent 60%), #f6faf7; color: #10251a; padding: 4cqw 5cqw; }
.mt-nav { display: flex; align-items: center; gap: 3cqw; font-size: 2.4cqw; }
.mt-nav b { font-family: var(--display); font-weight: 700; color: #1f7a4d; font-size: 3.6cqw; letter-spacing: -.02em; }
.mt-nav s { flex: 0 0 6cqw; height: .7cqw; background: #b9c9bf; border-radius: 1cqw; }
.mt-nav s:first-of-type { margin-left: auto; }
.mt-nav u { text-decoration: none; background: #2bb673; color: #06210f; font-weight: 600; font-size: 1.8cqw; padding: 1.3cqw 2.4cqw; border-radius: 9cqw; }
.mt-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4cqw; margin-top: 5cqw; align-items: center; }
.mt-h { font-family: var(--sans); font-weight: 600; font-size: 6.6cqw; line-height: .98; letter-spacing: -.05em; }
.mt-h em { color: #1f7a4d; }
.mt-btn { display: inline-block; margin-top: 3.5cqw; background: #2bb673; color: #06210f; font-size: 1.8cqw; letter-spacing: 0; padding: 1.6cqw 2.8cqw; border-radius: 9cqw; font-weight: 600; }
.mt-photo { height: 38cqw; border-radius: 2cqw; box-shadow: 0 3cqw 6cqw -2cqw rgba(16,37,26,.35);
  background: radial-gradient(40% 30% at 55% 30%, #f4f6f5 0 40%, transparent 41%), linear-gradient(160deg, #9fbf3b, #6d8c2c 50%, #3d4f2a); }

/* Floating tags */
.tag { display: flex; align-items: center; gap: 12px; background: rgba(17,26,35,.82); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 10px 16px 10px 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35); color: #fff; white-space: nowrap; }
@supports (backdrop-filter: blur(10px)) { .tag { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(17,26,35,.66); } }
.tag .sw { width: 28px; height: 28px; border-radius: 8px; background: var(--c); }
.tag b { display: block; font-family: var(--display); font-size: 16px; line-height: 1.1; }
.tag small { display: block; font-size: 12px; color: var(--gray); }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); padding: 9px 14px 9px 10px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 14px; box-shadow: 0 16px 36px rgba(0,0,0,.35); white-space: nowrap; }
.chip svg { width: 22px; height: 22px; color: var(--paper); background: var(--slate); border-radius: 50%; padding: 3px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 10000; background: var(--night); color: var(--paper);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: clip-path .9s var(--ease-out), opacity .6s;
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); visibility: hidden; } }
.splash-logo { width: 132px; overflow: hidden; }
.splash-logo path { transform: translateY(105%); animation: rise 1s var(--ease-out) forwards; }
.splash-logo path:nth-child(2) { animation-delay: .14s; }
.splash-word { color: var(--muted); opacity: 0; animation: fadeIn .8s .6s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
html:not(.js) .splash { display: none; }

/* ---- Progress ---- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: linear-gradient(90deg, var(--accent), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---- Nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: #fff; transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(17,26,35,.86); border-bottom-color: var(--line-d); }
@supports (backdrop-filter: blur(14px)) { .nav.is-solid { background: rgba(17,26,35,.68); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); } }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { max-width: var(--max); margin-inline: auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand svg { width: 40px; height: 28px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .32em; }
.nav-links { display: none; margin-inline: auto; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--gray); position: relative; padding: 4px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-d); border-radius: 999px; padding: 3px; }
.lang button { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 6px 10px; border-radius: 999px; color: var(--muted); transition: background .3s, color .3s; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.nav-right .btn-sm { display: none; }
.burger { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .4s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 959px) {
  .nav-links.is-open {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: -1; margin: 0;
    background: var(--night); padding: 120px var(--gutter) 40px; gap: 8px;
  }
  .nav-links.is-open a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); color: #fff; font-weight: 600; letter-spacing: -.03em; border-bottom: 1px solid var(--line-d); padding: 12px 0; }
}

/* ---- Hero ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 110px 0 40px; display: flex; flex-direction: column; overflow: clip; }
.hero-gradient {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 70%) var(--my, 35%), rgba(120,160,200,.45) 0%, transparent 32%),
    radial-gradient(circle at calc(100% - var(--mx, 70%)) calc(var(--my, 35%) + 30%), rgba(169,198,226,.32) 0%, transparent 30%),
    radial-gradient(120% 80% at 50% 0%, var(--slate) 0%, transparent 70%),
    linear-gradient(170deg, var(--slate-2), var(--night) 60%);
  filter: blur(30px) saturate(130%);
}
.hero-gradient--soft { opacity: .7; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line-d); font-size: 11px; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-meta > span.hide-sm { display: none; }
@media (max-width: 539px) { .hero-meta { font-size: 9.5px; letter-spacing: .1em; } }
@media (min-width: 720px) { .hero-meta > span.hide-sm { display: inline-flex; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(120,160,200,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(120,160,200,.6); } 70% { box-shadow: 0 0 0 10px rgba(120,160,200,0); } 100% { box-shadow: 0 0 0 0 rgba(120,160,200,0); } }

.hero-grid { flex: 1; display: grid; gap: 40px; align-items: center; padding-top: 48px; }
.hero-copy .kicker { color: var(--gray); }
.hero-title { font-size: clamp(3rem, 9.4vw, 8.4rem); line-height: .92; letter-spacing: -.055em; font-weight: 600; color: #fff; max-width: 11ch; }
.hero-title em { color: var(--accent); }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--gray); }
.hero-sub b { color: #fff; font-weight: 600; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* split chars */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-char { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 22ms + 150ms); }
.is-split.is-in .split-char { transform: none; }

/* Stage */
.hero-stage { position: relative; height: 380px; perspective: 1400px; }
.layer { position: absolute; inset: 0; transition: transform .9s var(--ease-out); will-change: transform; pointer-events: none; }
.win-a { position: absolute; width: 74%; left: 0; top: 4%; transform: rotate(-4deg); }
.win-b { position: absolute; width: 72%; right: 0; top: 34%; transform: rotate(3deg); }
.tag-1 { position: absolute; left: 2%; bottom: 2%; }
.tag-2 { position: absolute; right: 2%; top: 0; }
.chip-google { position: absolute; right: 8%; bottom: 0; }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 48px; border-top: 1px solid var(--line-d); }
.hero-stats > div { padding: 22px 0 6px; }
.hero-stats b { display: block; font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; color: #fff; letter-spacing: -.04em; line-height: 1; }
.hero-stats small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- Marquee ---- */
.marquee { background: var(--slate); color: var(--paper); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(0,0,0,.1); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 32px; padding-right: 32px; flex-shrink: 0; }
.marquee-set span { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: -.03em; white-space: nowrap; }
.marquee-set span:nth-of-type(even) { font-weight: 300; opacity: .75; }
.marquee-set i { font-style: normal; font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Generic section ---- */
.section { position: relative; padding: clamp(90px, 13vw, 170px) 0; }
.sec-head { margin-bottom: clamp(48px, 7vw, 84px); }
.sec-head-row { display: grid; gap: 20px; align-items: end; }

/* ---- Ventajas ---- */
.why { display: grid; gap: 56px; }
.why-list { border-top: 1px solid var(--line-l); counter-reset: why; }
.why-row {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line-l); isolation: isolate;
}
.why-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--night);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out);
}
.why-n { color: var(--accent); padding-top: 8px; }
.why-row h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); transition: color .4s, transform .55s var(--ease-out); }
.why-row p { margin-top: 10px; color: var(--ink-soft); max-width: 52ch; transition: color .4s; }
.why-ico { display: none; width: 48px; height: 48px; fill: none; stroke: var(--slate); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s, transform .55s var(--ease-out); }
@media (hover: hover) {
  .why-row:hover::before { transform: scaleY(1); transform-origin: top; }
  .why-row:hover h3 { color: #fff; transform: translateX(8px); }
  .why-row:hover p { color: var(--gray); }
  .why-row:hover .why-ico { stroke: var(--ice); transform: rotate(-8deg) scale(1.1); }
}

/* ---- Sectores ---- */
.sectors { display: grid; gap: 28px; }
.sector-tabs { display: flex; gap: 8px; overflow-x: auto; overflow-y: visible; padding-bottom: 6px; scrollbar-width: none; }
.sector-tabs::-webkit-scrollbar { display: none; }
.sector-tabs button {
  flex-shrink: 0; display: flex; align-items: baseline; gap: 12px; text-align: left;
  padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line-l); background: rgba(255,255,255,.5);
  font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--ink-soft);
  transition: background .4s var(--ease-out), color .4s, border-color .4s;
}
.sector-tabs button .mono { color: var(--muted); font-size: 11px; transition: color .4s; }
.sector-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.sector-tabs button[aria-selected="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.sector-tabs button[aria-selected="true"] .mono { color: var(--accent); }

.sector-panels { position: relative; }
.sector-panel { display: grid; gap: 28px; background: var(--paper); border-radius: 26px; padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--line-l); box-shadow: 0 40px 80px -40px rgba(17,26,35,.25); }
.js .sector-panel { display: none; }
.js .sector-panel.is-active { display: grid; animation: panelIn .7s var(--ease-out); }
html:not(.js) .sector-panel + .sector-panel { margin-top: 20px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sp-body { align-self: center; padding: 8px 4px 8px; }
.sp-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.sp-body > p { margin: 16px 0 24px; color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; }
.sp-case { margin-top: 26px; color: var(--muted); }
.sp-case a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---- Proyectos ---- */
.work { overflow: clip; }
.case { display: grid; gap: 34px; align-items: center; padding: 40px 0; }
.case + .case { border-top: 1px solid var(--line-d); }
.case-visual { position: relative; perspective: 1200px; }
.case-visual .win { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease-out); transform-style: preserve-3d; }
.case-visual .glare { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 60%); mix-blend-mode: soft-light; }
.case-visual:hover .glare { opacity: 1; }
.case-idx { color: var(--accent); }
.case-info h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin-top: 14px; color: #fff; }
.case-info h2 span { display: block; font-weight: 300; color: var(--gray); font-size: .56em; letter-spacing: -.02em; margin-top: 8px; }
.case-meta { color: var(--accent); margin: 18px 0 14px; }
.case-info > p:not(.mono) { color: var(--gray); max-width: 46ch; margin-bottom: 22px; }

.case-next {
  margin-top: 40px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px;
  padding: clamp(28px, 4vw, 48px); border-radius: 26px; border: 1px dashed rgba(255,255,255,.22);
  transition: background .5s var(--ease-out), border-color .5s;
}
.case-next .mono { grid-column: 1 / -1; color: var(--muted); }
.case-next strong { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 6vw, 5rem); letter-spacing: -.045em; line-height: 1; color: #fff; }
.case-next strong em { color: var(--accent); }
.case-next-arrow { width: clamp(56px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: clamp(1.4rem, 2.4vw, 2.2rem); transition: transform .6s var(--ease-out); }
.case-next:hover { background: rgba(169,198,226,.08); border-color: var(--accent); }
.case-next:hover .case-next-arrow { transform: rotate(-45deg) scale(1.08); }

/* ---- Proceso ---- */
.process { position: relative; display: grid; gap: 40px; }
.process-line { display: none; }
.step { position: relative; }
.step-n { display: block; font-family: var(--display); font-size: clamp(3.6rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; color: var(--accent); -webkit-text-stroke: 0; }
.step h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 18px; }
.step p { color: var(--ink-soft); margin-top: 10px; max-width: 36ch; }

.included { margin-top: clamp(64px, 9vw, 110px); background: var(--night); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden; }
.included::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(120,160,200,.35), transparent 65%); pointer-events: none; }
.included-k { color: var(--accent); margin-bottom: 22px; position: relative; }
.included ul { display: grid; gap: 0 40px; position: relative; }
.included li { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line-d); font-size: 1.05rem; }
.included li::before { content: ""; flex: 0 0 26px; height: 26px; border-radius: 50%; background: rgba(120,160,200,.16) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23364b60' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/18px no-repeat; }

/* ---- Testimonios ---- */
.draft-note { color: var(--accent); font-size: 11px; justify-self: start; border: 1px solid rgba(169,198,226,.35); border-radius: 999px; padding: 8px 14px; }
.reviews { position: relative; }
.reviews-stage { display: grid; }
.review { padding: clamp(8px, 1vw, 12px) 0; }
.js .review { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s; pointer-events: none; }
.js .review.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
html:not(.js) .review + .review { margin-top: 48px; }
.review blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.8vw, 3.4rem); line-height: 1.12; letter-spacing: -.035em; max-width: 26ch; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.review figcaption b { display: block; font-family: var(--display); }
.review figcaption small { color: var(--ink-soft); font-size: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--display); font-weight: 600; }
.reviews-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
html:not(.js) .reviews-ctrl { display: none; }
.reviews-ctrl > button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-l); font-size: 18px; transition: background .35s, color .35s, border-color .35s; }
.reviews-ctrl > button:hover { background: var(--night); color: #fff; border-color: var(--night); }
.reviews-dots { display: flex; gap: 8px; flex: 1; max-width: 340px; }
.reviews-dots button { flex: 1; height: 3px; background: var(--line-l); border-radius: 3px; position: relative; overflow: hidden; }
.reviews-dots button::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.reviews-dots button.is-done::after { transform: scaleX(1); }
.reviews-dots button.is-active::after { animation: fill var(--dur, 7s) linear forwards; }
.reviews.is-paused .reviews-dots button.is-active::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---- Contacto ---- */
.contact { overflow: clip; }
.contact-grid { display: grid; gap: 56px; align-items: start; }
.contact-title { font-size: clamp(3rem, 8vw, 7rem); line-height: .94; letter-spacing: -.055em; color: #fff; max-width: 10ch; }
.contact-title em { color: var(--accent); }
.contact-list { margin-top: 40px; border-top: 1px solid var(--line-d); }
.contact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-d); flex-wrap: wrap; }
.contact-list .mono { color: var(--muted); }
.contact-list a, .contact-list li > span:last-child { font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: #fff; }
.u-line { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out), color .3s; padding-bottom: 2px; }
.u-line:hover { background-size: 100% 1px; color: var(--accent); }

.form { background: rgba(255,255,255,.04); border: 1px solid var(--line-d); border-radius: 26px; padding: clamp(22px, 3vw, 38px); display: grid; gap: 14px; }
@supports (backdrop-filter: blur(12px)) { .form { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(17,26,35,.5); border: 1px solid var(--line-d); border-radius: 14px;
  padding: 26px 16px 10px; color: #fff; outline: none; transition: border-color .3s, background .3s; resize: vertical;
}
.field select { padding: 18px 16px; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%238c9aa6' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--night); color: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: rgba(17,26,35,.75); }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease-out), color .3s, font-size .35s; transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px); font-size: 12px; color: var(--accent); }
.field.is-error input { border-color: #ff6b6b; }
.form .btn { margin-top: 8px; }
.form-note { color: var(--muted); font-size: 10.5px; text-align: center; letter-spacing: .08em; }

/* ---- Footer ---- */
.footer { position: relative; padding: 90px 0 30px; overflow: clip; border-top: 1px solid var(--line-d); }
.footer-top { display: grid; gap: 34px; }
.footer-claim { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: #fff; max-width: 22ch; }
.footer-claim em { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; color: var(--gray); }
.footer-links a:hover { color: var(--accent); }
.footer-mark { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 7vw, 6rem); line-height: .8; letter-spacing: -.04em; margin: 44px 0 24px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); white-space: nowrap; user-select: none; transition: color .8s var(--ease-out); }
.footer-mark:hover { color: rgba(169,198,226,.12); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.footer-bottom a:hover { color: #fff; }

/* ---- WhatsApp float ---- */
.wa-float {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 150; display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #06210f; border-radius: 999px; padding: 14px; font-family: var(--display); font-weight: 600;
  box-shadow: 0 16px 40px -10px rgba(37,211,102,.6), 0 4px 12px rgba(0,0,0,.2);
  transition: transform .4s var(--ease-out), padding .4s var(--ease-out);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: ring 2.8s var(--ease-out) infinite; }
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-float span { display: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }

/* ---- Draft badge ---- */
.form-link { display: none; }
.form-link.is-visible { display: inline-flex; }
.draft-badge { position: fixed; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 140; display: flex; align-items: center; gap: 8px; background: rgba(17,26,35,.88); color: #f6d38f; border: 1px solid rgba(246,211,143,.3); padding: 8px 12px; border-radius: 999px; font-size: 9.5px; letter-spacing: .12em; }
.draft-badge i { width: 6px; height: 6px; border-radius: 50%; background: #f6b93b; }

/* =============================================================
   7. Effects — reveal on scroll
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-stage { height: 460px; }
  .wa-float { padding: 14px 20px 14px 16px; }
  .wa-float span { display: inline; }
  .draft-badge { font-size: 10px; }
}
@media (min-width: 720px) {
  .hide-sm { display: inline-flex; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .sec-head-row { grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .sec-head-row .lead, .sec-head-row .draft-note { justify-self: end; }
  .sector-panel { grid-template-columns: 1fr 1fr; }
  .why-row { grid-template-columns: 64px 1fr; gap: 28px; }
  .why-ico { display: block; }
  .process { grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 30px; }
  .process-line { display: block; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-l); }
  .process-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
  .step::before { content: ""; position: absolute; top: -36px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
  .included ul { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-right .btn-sm { display: inline-flex; }
  .burger { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 20px; padding-top: 30px; }
  .hero-stage { height: 560px; }
  .why { grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
  .why-head { position: sticky; top: 120px; }
  .sectors { grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
  .sector-tabs { flex-direction: column; overflow: visible; position: sticky; top: 110px; }
  .sector-tabs button { border-radius: 16px; padding: 16px 20px; }
  .case { grid-template-columns: 1.35fr 1fr; gap: 64px; padding: 64px 0; }
  .case-rev { grid-template-columns: 1fr 1.35fr; }
  .case-rev .case-visual { order: 2; }
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 8.6rem; }
}

/* =============================================================
   8b. Multi-page pieces (page hero, home teaser, CTA band)
   ============================================================= */
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.page-hero { position: relative; padding: 150px 0 clamp(56px, 8vw, 96px); overflow: clip; }
.page-hero .container { display: grid; gap: 40px; }
.crumb { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.crumb a:hover { color: #fff; }
.crumb span[aria-current] { color: var(--accent); }
.page-title { font-size: clamp(3rem, 8.4vw, 7.4rem); line-height: .92; letter-spacing: -.055em; color: #fff; max-width: 13ch; margin-top: 18px; }
.page-title em { color: var(--accent); }
.page-hero .lead { margin-top: 26px; }

/* Placeholder on dark backgrounds + wide banner ratio */
.ph--dark {
  border-color: rgba(238,238,236,.22);
  background:
    repeating-linear-gradient(135deg, rgba(238,238,236,.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--slate), var(--night-2));
}
.ph--dark span, .ph--dark::after { color: var(--gray); }
.ph--wide { aspect-ratio: 21 / 9; }

.section-sep { border-top: 1px solid var(--line-l); }

/* Stock photos: framed like the logo tile, cool slate wash for one consistent look */
.photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--slate); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95); transition: transform 1.2s var(--ease-out), filter .8s; }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(54,75,96,0) 45%, rgba(20,34,49,.45)); mix-blend-mode: multiply; }
.photo:hover img { transform: scale(1.05); filter: saturate(1.05); }
.photo--wide { aspect-ratio: 21 / 9; }
.photo--wide::after { background: linear-gradient(180deg, rgba(20,34,49,.15), rgba(20,34,49,.55)); }
.page-plain { padding-top: 150px; }
.page-plain .crumb { margin-bottom: 18px; }
.page-plain .crumb a:hover { color: var(--ink); }
/* Background imagery: AI photos sit behind content at their own ratio, softened so they never compete with the text */
.page-hero--img { display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero--img .container { order: 1; }
.page-hero--img .bg-img { order: 2; position: relative; z-index: 2; width: calc(100% - 2 * var(--gutter)); max-width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 16px; opacity: .55; margin: 32px auto 0; }
.why.why--page { display: block; }
.section.section-tight { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.page-hero--img .bg-shade { display: none; }
.page-hero--img .page-title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); max-width: 16ch; }

.explore { display: grid; gap: 16px; }
.explore-card { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 20px; overflow: hidden; color: var(--paper); background: var(--night); isolation: isolate; }
.explore-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.85); transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out); }
.explore-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,34,49,.15) 30%, rgba(20,34,49,.92)); }
.explore-card > div { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 22px; display: grid; gap: 6px; }
.explore-card .mono { color: var(--ice); }
.explore-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.explore-card h3 span { transition: transform .5s var(--ease-out); }
.explore-card p { color: var(--gray); font-size: .95rem; }
.explore-card:hover img { opacity: .72; transform: scale(1.04); }
.explore-card:hover h3 span { transform: translate(4px, -4px); }

/* Sector panel: the photo is the panel's backdrop, at its native 4:3 */
.sector-panel { position: relative; overflow: hidden; isolation: isolate; }
.sector-panel .photo { border-radius: 14px; }
.sector-panel .photo img { opacity: .9; }

/* Projects grid: every card opens the client's live site */
.projects { display: grid; gap: 28px; }
.project { display: grid; gap: 18px; padding: 18px; border-radius: 24px; border: 1px solid var(--line-d); background: rgba(238,238,236,.03); transition: border-color .5s var(--ease-out), transform .6s var(--ease-out), background .5s; }
.project:hover { border-color: rgba(238,238,236,.32); background: rgba(238,238,236,.06); transform: translateY(-6px); }
.project .win { box-shadow: 0 30px 60px -24px rgba(0,0,0,.65); }
.project-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 0 6px; }
.project-meta h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; }
.project-meta h2 span { display: block; font-weight: 300; color: var(--gray); font-size: .6em; margin-top: 4px; }
.project-meta .mono { color: var(--accent); margin-top: 10px; }
.project-go { flex-shrink: 0; font-family: var(--display); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); transition: transform .4s var(--ease-out); }
.project-go:hover { transform: translate(3px, -3px); }
.project-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-go--ghost { background: transparent; color: var(--paper); border: 1px solid rgba(238,238,236,.3); }
.project > p { color: var(--gray); padding: 0 6px 6px; max-width: 52ch; }

/* Generic client mock (Concilia, TLCR) driven by custom properties */
.mock-x { background: var(--m-bg); color: var(--m-fg); padding: 4cqw 5cqw; }
.mx-nav { display: flex; align-items: center; gap: 3cqw; font-size: 2.4cqw; }
.mx-nav b { font-family: var(--m-font); font-weight: 700; font-size: 3.4cqw; letter-spacing: .04em; }
.mx-nav s { flex: 0 0 6cqw; height: .7cqw; background: currentColor; opacity: .25; border-radius: 1cqw; }
.mx-nav s:first-of-type { margin-left: auto; }
.mx-nav u { text-decoration: none; background: var(--m-btn); color: var(--m-btn-fg); font-weight: 600; font-size: 1.8cqw; padding: 1.3cqw 2.4cqw; border-radius: 9cqw; }
.mx-h { font-family: var(--m-font); font-weight: var(--m-weight, 600); font-size: 7cqw; line-height: 1.02; letter-spacing: -.03em; margin-top: 7cqw; max-width: 13ch; }
.mx-h span { color: var(--m-accent); }
.mx-btn { display: inline-block; margin-top: 4cqw; background: var(--m-btn); color: var(--m-btn-fg); font-size: 1.9cqw; padding: 1.6cqw 3cqw; border-radius: 9cqw; font-weight: 600; }
.mx-orb { position: absolute; right: 6cqw; top: 22cqw; width: 26cqw; aspect-ratio: 1; border-radius: 50%; background: var(--m-orb); filter: blur(.5cqw); opacity: .9; }

@media (min-width: 720px) {
  .explore { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  /* Height follows the photo ratio (21:9) but grows with the text, so nothing gets cut */
  .page-hero--img { min-height: max(620px, 42.86vw); }
  /* Text stays in the left column so it never sits on top of the photo's subject */
  .page-hero.page-hero--img .container { grid-template-columns: minmax(0, 1fr); }
  .page-hero--img .container > * { max-width: 640px; }
  .page-hero--img .bg-img { position: absolute; inset: 0; z-index: 0; width: 100%; max-width: none; height: 100%; aspect-ratio: auto; margin: 0; border-radius: 0; opacity: .42; object-fit: cover; object-position: center; }
  .page-hero--img .bg-shade { display: block; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,34,49,.92) 0%, rgba(20,34,49,.55) 55%, rgba(20,34,49,.25) 100%), linear-gradient(0deg, rgba(20,34,49,.7), transparent 40%); }
  .explore { grid-template-columns: repeat(4, 1fr); }
  .sector-panel.has-bg { grid-template-columns: 1fr; aspect-ratio: 4 / 3; padding: 0; align-content: end; }
  .sector-panel.has-bg .photo { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -1; }
  .sector-panel.has-bg .photo::after { background: linear-gradient(90deg, rgba(238,238,236,.97) 0%, rgba(238,238,236,.9) 42%, rgba(238,238,236,.15) 75%, rgba(238,238,236,0)); mix-blend-mode: normal; }
  .sector-panel.has-bg .sp-body { max-width: 52%; padding: clamp(28px, 3vw, 44px); align-self: center; }
}

.credits-list { display: grid; gap: 18px; margin-top: 48px; }
.credits-list li { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line-l); }
.credits-list b { font-family: var(--display); }
.credits-list small { color: var(--ink-soft); }
.credits-list a { color: var(--accent); text-decoration: underline; }

.section-flush { padding-top: 0; }
.contact-page { padding-top: 150px; min-height: 100vh; min-height: 100svh; }
.contact-page .crumb { margin-bottom: 22px; }

/* Home: projects teaser */
.teaser { display: grid; gap: 24px; }
.teaser-card { display: grid; gap: 18px; padding: 18px; border-radius: 22px; border: 1px solid var(--line-d); background: rgba(238,238,236,.03); transition: border-color .5s var(--ease-out), transform .6s var(--ease-out), background .5s; }
.teaser-card:hover { border-color: rgba(238,238,236,.3); background: rgba(238,238,236,.06); transform: translateY(-6px); }
.teaser-card .win { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.teaser-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 6px 6px; }
.teaser-meta b { font-family: var(--display); font-size: 1.5rem; color: #fff; letter-spacing: -.03em; }
.teaser-meta .mono { color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; font-family: var(--display); font-weight: 600; color: #fff; }
.more-link .arr { transition: transform .4s var(--ease-out); }
.more-link:hover .arr { transform: translateX(6px); }

/* CTA band (end of every page except Contacto) */
.cta-band { position: relative; padding: clamp(48px, 6vw, 76px) 0; overflow: clip; background: var(--slate); color: var(--paper); }
.cta-band .container { display: grid; gap: 28px; align-items: end; }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.04em; max-width: 18ch; }
.cta-band h2 em { color: var(--ice); }
.cta-band p { color: var(--gray); max-width: 42ch; margin-top: 16px; }
.cta-band .cta-mark { position: absolute; right: 2%; bottom: -22%; width: min(30vw, 340px); color: rgba(238,238,236,.06); pointer-events: none; z-index: 1; }

@media (min-width: 720px) {
  .teaser { grid-template-columns: 1fr 1fr; }
  .cta-band .container { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .page-hero .container { grid-template-columns: 1.1fr 1fr; align-items: end; }
  .page-hero .ph--wide, .page-hero .photo--wide { grid-column: 1 / -1; }
}

/* =============================================================
   8c. Final pieces: generic hero composition, value grids
   ============================================================= */

/* Generic "your website" mock in the hero */
.win-gen { position: absolute; width: 82%; left: 0; top: 6%; transform: rotate(-3deg); }
.mock-gen { background: linear-gradient(180deg, #f6f7f8, #eceef0); color: var(--ink); padding: 4cqw 5cqw; }
.mg-nav { display: flex; align-items: center; gap: 3cqw; font-size: 2.2cqw; }
.mg-nav b { font-family: var(--display); font-weight: 700; letter-spacing: .14em; font-size: 2.4cqw; }
.mg-nav s { flex: 0 0 6cqw; height: .7cqw; background: #c3cad1; border-radius: 1cqw; }
.mg-nav s:first-of-type { margin-left: auto; }
.mg-nav u { text-decoration: none; background: var(--slate); color: var(--paper); font-weight: 600; padding: 1.2cqw 2.4cqw; border-radius: 9cqw; font-size: 1.8cqw; }
.mg-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; margin-top: 6cqw; align-items: center; }
.mg-kick { display: block; width: 18cqw; height: 1cqw; border-radius: 1cqw; background: var(--ice); margin-bottom: 2.4cqw; }
.mg-h { font-family: var(--display); font-weight: 600; font-size: 6.4cqw; line-height: .98; letter-spacing: -.04em; }
.mg-h span { font-weight: 300; color: var(--slate); }
.mg-line { display: block; height: 1cqw; border-radius: 1cqw; background: #cfd5db; margin-top: 2.4cqw; width: 90%; }
.mg-line--s { width: 64%; margin-top: 1.4cqw; }
.mg-btn { display: inline-block; margin-top: 3.4cqw; background: var(--slate); color: var(--paper); font-family: var(--display); font-weight: 600; font-size: 1.9cqw; padding: 1.6cqw 3cqw; border-radius: 9cqw; }
.mg-visual { position: relative; aspect-ratio: 1; border-radius: 2.4cqw; overflow: hidden; background: linear-gradient(150deg, var(--slate), var(--night)); }
.mg-visual i { position: absolute; border-radius: 50%; filter: blur(.4cqw); }
.mg-visual i:nth-child(1) { width: 70%; aspect-ratio: 1; left: -10%; top: -10%; background: radial-gradient(circle, rgba(169,198,226,.75), transparent 70%); animation: drift 9s ease-in-out infinite alternate; }
.mg-visual i:nth-child(2) { width: 60%; aspect-ratio: 1; right: -12%; bottom: -8%; background: radial-gradient(circle, rgba(238,238,236,.5), transparent 70%); animation: drift 11s ease-in-out infinite alternate-reverse; }
.mg-visual i:nth-child(3) { width: 30%; aspect-ratio: 1; left: 36%; top: 34%; background: rgba(238,238,236,.85); filter: none; box-shadow: 0 2cqw 4cqw rgba(0,0,0,.25); }
.mg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin-top: 5cqw; }
.mg-cards i { height: 9cqw; border-radius: 1.6cqw; background: #fff; box-shadow: 0 1cqw 2.4cqw rgba(20,34,49,.08); position: relative; overflow: hidden; }
.mg-cards i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(169,198,226,.35) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 3.2s var(--ease-soft) infinite; }
.mg-cards i:nth-child(2)::after { animation-delay: .4s; } .mg-cards i:nth-child(3)::after { animation-delay: .8s; }
@keyframes drift { to { transform: translate(14%, 10%) scale(1.1); } }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Phone with a WhatsApp-style conversation */
.phone { position: absolute; width: 26%; right: 4%; top: 28%; aspect-ratio: 9 / 18.5; border-radius: 26px; padding: 7px; background: #0c141c; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); transform: rotate(4deg); container-type: inline-size; }
.phone-screen { position: relative; height: 100%; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #eef1f3, #e2e7eb); padding: 20cqw 7cqw 7cqw; display: flex; flex-direction: column; gap: 5cqw; }
.ph-notch { position: absolute; top: 4cqw; left: 50%; width: 30cqw; height: 6cqw; border-radius: 6cqw; background: #0c141c; transform: translateX(-50%); }
.ph-h { font-family: var(--display); font-weight: 600; font-size: 9cqw; line-height: 1.05; color: var(--ink); letter-spacing: -.02em; }
.ph-bubble { font-size: 7cqw; line-height: 1.25; padding: 4cqw 5cqw; border-radius: 5cqw; max-width: 88%; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.08); }
.ph-bubble--in { background: #fff; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 1.5cqw; }
.ph-bubble--out { background: #d9fdd3; color: #0b3d1e; align-self: flex-end; border-bottom-right-radius: 1.5cqw; }
.ph-wa { margin-top: auto; align-self: center; font-family: var(--display); font-weight: 600; font-size: 7cqw; background: #25d366; color: #06210f; padding: 3.5cqw 8cqw; border-radius: 9cqw; }
.sw-logo { display: grid; place-items: center; background: var(--paper); color: var(--slate); }
.sw-logo svg { width: 70%; }
.tag-notify { animation: nudge 5s var(--ease-out) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 75% { transform: translateY(-6px); } 80% { transform: none; } 85% { transform: translateY(-3px); } }

/* Six stats */
.hero-stats { grid-template-columns: repeat(3, 1fr); column-gap: 16px; }
@media (min-width: 960px) { .hero-stats { grid-template-columns: repeat(6, 1fr); } }

/* Ventajas: compact interactive grid instead of a long list */
.benefits { display: grid; gap: 14px; }
.benefit { position: relative; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line-l); overflow: hidden; isolation: isolate; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.benefit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--night); clip-path: circle(0% at var(--bx, 90%) var(--by, 10%)); transition: clip-path .7s var(--ease-out); }
.benefit .why-ico { display: block; width: 44px; height: 44px; margin-bottom: 18px; }
.benefit h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); transition: color .4s; }
.benefit p { margin-top: 8px; color: var(--ink-soft); font-size: .98rem; transition: color .4s; }
.benefit .benefit-n { position: absolute; right: 22px; top: 20px; color: var(--muted); }
@media (hover: hover) {
  .benefit:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,34,49,.45); }
  .benefit:hover::before { clip-path: circle(150% at var(--bx, 90%) var(--by, 10%)); }
  .benefit:hover h3 { color: #fff; }
  .benefit:hover p { color: var(--gray); }
  .benefit:hover .why-ico { stroke: var(--ice); }
}
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

/* Proceso: value-added extras */
.extras { margin-top: clamp(64px, 9vw, 110px); }
.extras-head { display: grid; gap: 16px; margin-bottom: 32px; }
.extras-head .h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 20ch; }
.extras-grid { display: grid; gap: 14px; }
.extra { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line-l); display: grid; gap: 8px; align-content: start; transition: transform .5s var(--ease-out), border-color .5s; }
.extra:hover { transform: translateY(-4px); border-color: var(--slate); }
.extra svg { width: 36px; height: 36px; fill: none; stroke: var(--slate); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.extra h3 { font-size: 1.2rem; }
.extra p { color: var(--ink-soft); font-size: .95rem; }
.extra--hl { background: var(--night); color: var(--paper); border-color: var(--night); }
.extra--hl svg { stroke: var(--ice); }
.extra--hl p { color: var(--gray); }
.extra-tag { justify-self: start; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(169,198,226,.25); color: var(--slate); }
.extra--hl .extra-tag { background: rgba(169,198,226,.18); color: var(--ice); }
.extras-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }
@media (min-width: 720px) { .extras-grid { grid-template-columns: repeat(2, 1fr); } .extras-head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
@media (min-width: 1280px) { .extras-grid { grid-template-columns: repeat(4, 1fr); } }

/* Projects: keep the sector line on one row */
.project-meta { flex-wrap: wrap; }
.project-meta > div { min-width: 0; }
.project-meta .mono { white-space: nowrap; letter-spacing: .08em; font-size: 11px; }

/* =============================================================
   9. Reduced motion — only intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .wa-float::before { animation: none; }
  .marquee-track { animation-duration: 90s; }
}
