/* =============================================================
   RSE Soluciones — styles.css
   Paleta fiel al logo: grafito + rojo RSE (#C21E36) + blanco cálido.
   Motivo gráfico: la diagonal del travesaño de la "e".
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #111113;
  --bg-2:      #16161a;
  --bg-3:      #1d1d22;
  --bg-deep:   #0b0b0d;
  --paper:     #f6f3ee;
  --paper-2:   #ece7df;
  --ink:       #111113;
  --ink-soft:  #3a3a40;
  --ink-mute:  #6d6b72;
  --cream:     #f4f1ec;
  --cream-2:   #c9c6c1;
  --mute:      #8f8c93;
  --red:       #c21e36;
  --red-2:     #9d1529;
  --red-hi:    #e0344d;
  --red-glow:  rgba(194, 30, 54, .45);
  --line:      rgba(244, 241, 236, .12);
  --line-dark: rgba(17, 17, 19, .12);

  --display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 76px;
  --radius: 4px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.02; letter-spacing: -0.025em; font-weight: 700; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 2px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-2);
}
.kicker-dark { color: var(--ink-soft); }
.kicker-num {
  display: inline-grid; place-items: center;
  min-width: 2.1rem; height: 1.4rem; padding-inline: .35rem;
  background: var(--red); color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 82% 100%, 0 100%); /* esquina diagonal: guiño a la "e" */
}
.kicker-dot { width: 8px; height: 8px; background: var(--red); display: inline-block; }

.section-title {
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  max-width: 18ch;
  margin-top: 1.1rem;
}
.section-title em, .contact-title em, .hero-title em {
  font-style: normal;
  font-weight: 300;
  font-stretch: 118%;
  color: var(--cream-2);
}
.section-light .section-title em { color: var(--ink-mute); }
.section-lead {
  margin-top: 1.25rem; max-width: 56ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--cream-2);
}
.section-light .section-lead { color: var(--ink-soft); }
.mini-label {
  display: block; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: .55rem;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .65rem;
  padding: 1rem 1.6rem; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border-radius: var(--radius); isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn-sm { padding: .7rem 1.15rem; font-size: .86rem; }
.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red-2);
  transform: translateX(-101%) skewX(-20deg); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(0) skewX(0); }
.btn-ghost { border: 1px solid rgba(244, 241, 236, .4); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-arrow { transition: transform .5s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.chip {
  padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .84rem; color: var(--cream-2);
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: rgba(244, 241, 236, .4); color: var(--cream); }
.chip.is-active { background: var(--red); border-color: var(--red); color: var(--cream); }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center; background: var(--bg-deep);
  animation: splashSafety .01s 4.5s forwards;
  transition: clip-path 1s var(--ease-out), opacity .6s;
  clip-path: inset(0 0 0 0);
}
.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); } }
.splash-inner { display: grid; gap: 1.6rem; justify-items: center; }
.splash-inner img {
  width: clamp(160px, 22vw, 260px);
  animation: splashLogo 1.1s var(--ease-out) both;
}
@keyframes splashLogo {
  from { clip-path: inset(0 100% 0 0); transform: translateY(8px); }
  to   { clip-path: inset(0 0 0 0); transform: none; }
}
.splash-bar { width: clamp(160px, 22vw, 260px); height: 2px; background: var(--line); overflow: hidden; }
.splash-bar span { display: block; height: 100%; background: var(--red); animation: splashBar 1.4s var(--ease-soft) forwards; transform-origin: left; }
@keyframes splashBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001;
  background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0));
}

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  transition: background-color .4s, border-color .4s, height .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(17, 17, 19, .92); border-color: var(--line); --nav-h: 64px;
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled { background: rgba(17, 17, 19, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo img { width: auto; height: 40px; transition: height .4s var(--ease-out); }
.nav.is-scrolled .nav-logo img { height: 34px; }
.nav-links { display: none; margin-left: auto; gap: 2rem; }
.nav-links a[data-link] {
  position: relative; font-size: .9rem; color: var(--cream-2); padding-block: .3rem;
  transition: color .3s;
}
.nav-links a[data-link]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a[data-link]:hover, .nav-links a[data-link].is-active { color: var(--cream); }
.nav-links a[data-link]:hover::after, .nav-links a[data-link].is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-mobile { display: none; }
.nav-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); transition: transform .4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 959px) {
  .nav-links {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column;
    justify-content: center; gap: 1.4rem; padding: var(--gutter);
    background: var(--bg-deep);
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out);
  }
  .nav-links.is-open { clip-path: inset(0 0 0 0); }
  .nav.menu-open { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav-links a[data-link] { font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; color: var(--cream); letter-spacing: -.02em; }
  .nav-cta-mobile { display: inline-flex; margin-top: 1.5rem; padding: 1rem 1.4rem; background: var(--red); font-weight: 600; align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(5rem, 11vh, 8rem);
  overflow: clip;
}
.hero-media { position: absolute; inset: -6% 0; z-index: -3; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenBurns 28s var(--ease-soft) infinite alternate;
  filter: saturate(1.05) contrast(1.04);
}
@keyframes kenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-2%, -1.5%, 0); }
}
.hero-tint {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(17,17,19,.72) 0%, rgba(17,17,19,.12) 28%, rgba(17,17,19,.35) 58%, rgba(17,17,19,.94) 92%, var(--bg) 100%),
    linear-gradient(90deg, rgba(17,17,19,.78) 0%, rgba(17,17,19,.35) 45%, rgba(17,17,19,0) 75%);
}
.hero-slash { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-slash line {
  stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; opacity: .85;
  animation: drawSlash 2.2s 1.2s var(--ease-out) forwards;
}
@keyframes drawSlash { to { stroke-dashoffset: 0; } }

/* HUD */
.hud {
  position: absolute; inset: calc(var(--nav-h) + 12px) clamp(14px, 2.4vw, 36px) clamp(14px, 2.4vw, 36px);
  z-index: 0; pointer-events: none;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244, 241, 236, .72);
}
.hud b { font-weight: 500; color: var(--cream); font-variant-numeric: tabular-nums; }
.hud-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(244,241,236,.6); }
.hud-corner.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-corner.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud-row { position: absolute; left: 34px; right: 34px; display: flex; justify-content: space-between; gap: 1rem; }
.hud-top { top: 4px; }
.hud-bottom { bottom: 4px; display: none; }
.rec-dot { display: inline-block; width: 7px; height: 7px; margin-right: .6rem; border-radius: 50%; background: var(--red-hi); vertical-align: 1px; animation: recBlink 1.6s steps(2, start) infinite; }
@keyframes recBlink { to { visibility: hidden; } }
.hud-cross {
  position: absolute; top: 42%; left: 62%; width: 64px; height: 64px; display: none;
  border: 1px solid rgba(244,241,236,.35); border-radius: 50%; transform: translate(-50%, -50%);
}
.hud-cross::before, .hud-cross::after { content: ""; position: absolute; background: rgba(244,241,236,.55); }
.hud-cross::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.hud-cross::after  { top: 50%; left: -14px; right: -14px; height: 1px; }
.hud-cross span { position: absolute; inset: 26px; background: var(--red-hi); border-radius: 50%; }

.hero-inner { position: relative; z-index: 1; }
.hero-kicker { margin-bottom: 1.4rem; color: var(--cream); }
.hero-title {
  font-size: clamp(2.5rem, 6.6vw, 6.4rem);
  line-height: .98; letter-spacing: -0.035em; font-weight: 750;
  max-width: 14ch;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero-title em { display: inline; color: var(--cream); }
.hero-foot {
  margin-top: clamp(1.8rem, 4vh, 3rem);
  display: grid; gap: 2.5rem; align-items: end;
}
.hero-sub { max-width: 46ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: rgba(244,241,236,.86); }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-index { display: none; border-left: 1px solid var(--line); padding-left: 1.6rem; }
.hero-index li + li { margin-top: .15rem; }
.hero-index a {
  display: flex; gap: 1rem; align-items: baseline; padding: .32rem 0;
  font-size: .9rem; color: rgba(244,241,236,.72); transition: color .3s, transform .5s var(--ease-out);
}
.hero-index a span { font-family: var(--mono); font-size: .7rem; color: var(--red-hi); }
.hero-index a:hover { color: var(--cream); transform: translateX(6px); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 1;
  width: 24px; height: 40px; border: 1.5px solid rgba(244,241,236,.5); border-radius: 14px;
}
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--cream); border-radius: 2px; animation: scrollCue 2s var(--ease-soft) infinite; }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Hero split words */
.has-js .hero-title .split-word {
  display: inline-block; opacity: 0; transform: translateY(.45em);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + 150ms);
}
.has-js .hero-title.is-in .split-word { opacity: 1; transform: none; }
.has-js .hero-kicker, .has-js .hero-foot {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease-out) .8s, transform 1s var(--ease-out) .8s;
}
.has-js .hero.is-in .hero-kicker { opacity: 1; transform: none; transition-delay: .05s; }
.has-js .hero.is-in .hero-foot { opacity: 1; transform: none; }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 3;
  width: 108%; margin-left: -4%; margin-block: -1.6rem;
  background: var(--red); transform: rotate(-2deg);
  padding-block: 1.05rem; overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
}
.ticker-track { display: flex; align-items: center; gap: 1.8rem; width: max-content; animation: tick 46s linear infinite; }
.ticker-track span {
  font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.45rem);
  text-transform: uppercase; letter-spacing: .02em; color: var(--cream); white-space: nowrap;
}
.ticker-track i { width: 14px; height: 22px; background: rgba(244,241,236,.85); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Section base ---------- */
.section { position: relative; padding-block: clamp(5.5rem, 12vw, 10rem); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light .kicker-num { color: var(--cream); }

/* ---------- About ---------- */
.about { padding-top: clamp(7rem, 14vw, 11rem); padding-bottom: 0; }
.statement {
  margin-top: 2rem; max-width: 26ch;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -0.03em;
  color: var(--ink);
}
.has-js .statement .sw { opacity: .14; transition: opacity .35s linear; }
.has-js .statement .sw.is-lit { opacity: 1; }
.has-js .statement .sw.is-accent.is-lit { color: var(--red); }

.about-grid { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; gap: 3.5rem; }
.about-text p { font-size: 1.06rem; color: var(--ink-soft); max-width: 58ch; }
.about-text p + p { margin-top: 1.1rem; }
.about-text strong { color: var(--ink); }
.mainline { margin-top: clamp(4rem, 8vw, 6.5rem); background: var(--ink); color: var(--cream); display: grid; position: relative; overflow: hidden; }
.mainline::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.mainline-head { padding: clamp(2rem, 4vw, 3.4rem); position: relative; }
.mainline-head::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38%; height: 70%; background: rgba(194,30,54,.14); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
.mainline-tag { display: inline-block; padding: .35rem .7rem; background: var(--red); font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.mainline h3 { margin-top: 1.4rem; font-size: clamp(1.8rem, 3.2vw, 2.9rem); max-width: 17ch; }
.mainline-head p { margin-top: 1rem; color: var(--cream-2); max-width: 50ch; }
.mainline-link { display: inline-flex; gap: .5rem; margin-top: 1.6rem; font-weight: 600; border-bottom: 2px solid var(--red); padding-bottom: .2rem; }
.mainline-link span { transition: transform .5s var(--ease-out); }
.mainline-link:hover span { transform: translateX(5px); }
.mainline-cats { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.mainline-cats li { background: var(--ink); padding: 1.6rem clamp(1.4rem, 2.6vw, 2.2rem); display: grid; gap: .35rem; align-content: start; transition: background-color .4s; }
.mainline-cats li:hover { background: #1b1b1f; }
.mainline-cats svg { width: 34px; height: 34px; margin-bottom: .6rem; fill: none; stroke: var(--red-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mainline-cats b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.01em; }
.mainline-cats span { font-size: .9rem; color: var(--cream-2); }
@media (min-width: 540px) { .mainline-cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .mainline { grid-template-columns: 1.05fr 1fr; } .mainline-cats { border-top: 0; border-left: 1px solid var(--line); } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 1.6rem 1rem 1.6rem 0; border-bottom: 1px solid var(--line-dark); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .4rem; }
.stat:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.stat:nth-child(even) { padding-left: 1.4rem; }
.stat dd { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat dd small { font-size: .55em; color: var(--red); margin-right: .05em; vertical-align: .35em; font-weight: 700; }
.stat dt { font-size: .86rem; color: var(--ink-mute); max-width: 22ch; }

.values { margin-top: clamp(4rem, 8vw, 6.5rem); display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.value { position: relative; background: var(--paper); padding: 2.2rem 1.8rem 2.4rem; overflow: hidden; transition: background-color .5s var(--ease-out); }
.value::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(.12); transform-origin: left; transition: transform .7s var(--ease-out); }
.value:hover { background: #fff; }
.value:hover::before { transform: scaleX(1); }
.value-num { font-family: var(--mono); font-size: .78rem; color: var(--red); letter-spacing: .1em; }
.value h3 { margin-top: 2.6rem; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.value p { margin-top: .8rem; color: var(--ink-soft); }

.motto {
  margin-top: clamp(4.5rem, 9vw, 8rem);
  background: var(--red); color: var(--cream);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  clip-path: polygon(0 0, 100% 9%, 100% 100%, 0 100%);
  position: relative; overflow: hidden;
}
.motto::after {
  content: ""; position: absolute; right: -6%; bottom: -40%; width: 46%; aspect-ratio: 1;
  background: rgba(0,0,0,.12); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.motto .container { position: relative; z-index: 1; }
.motto-mark { font-family: var(--display); font-size: clamp(5rem, 10vw, 9rem); line-height: .6; display: block; height: .5em; opacity: .5; }
.motto p { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.8vw, 3.4rem); line-height: 1.1; letter-spacing: -.025em; max-width: 24ch; }
.motto footer { margin-top: 1.6rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .82; }

/* ---------- Divisions ---------- */
.divisions { background: var(--bg); overflow-x: clip; padding-bottom: clamp(4rem, 8vw, 6rem); }
.divisions-head { margin-bottom: clamp(2.8rem, 5vw, 4rem); }
.div-nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.div-tabs { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.div-tabs::-webkit-scrollbar { display: none; }
.div-tab {
  position: relative; flex: none; display: flex; align-items: baseline; gap: .55rem;
  padding: .95rem 1rem; font-size: .9rem; color: var(--mute); white-space: nowrap; transition: color .3s;
}
.div-tab span { font-family: var(--mono); font-size: .7rem; color: var(--red-hi); }
.div-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.div-tab:hover { color: var(--cream); }
.div-tab.is-active { color: var(--cream); }
.div-tab.is-active::after { transform: scaleX(1); }
.div-tab small { margin-left: .2rem; padding: .1rem .4rem; background: var(--red); color: var(--cream); font-size: .6rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.div-arrows { display: flex; gap: .5rem; flex: none; padding-bottom: .6rem; }
.div-arrow { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(244,241,236,.25); font-size: 1.1rem; transition: background-color .3s, border-color .3s, opacity .3s; }
.div-arrow:hover:not([disabled]) { background: var(--red); border-color: var(--red); }
.div-arrow[disabled] { opacity: .3; cursor: default; }
.divisions-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.divisions-viewport::-webkit-scrollbar { display: none; }
.divisions-track { display: flex; gap: 1.5rem; }
.division {
  position: relative; display: grid; background: var(--bg-2); flex: 0 0 100%; min-width: 0; width: 100%; scroll-snap-align: start;
  border: 1px solid var(--line); overflow: hidden; align-content: start;
}
.division-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .35rem .7rem; background: var(--red); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.division-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.division-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out), filter .8s; filter: saturate(.92) contrast(1.05); }
.division-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(22,22,26,.9)); }
.division:hover .division-media img { transform: scale(1.1); filter: saturate(1.1) contrast(1.05); }
.division-body { padding: 1.8rem 1.5rem 2.2rem; display: flex; flex-direction: column; }
.division-head { display: flex; align-items: center; justify-content: space-between; }
.division-num { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px rgba(244,241,236,.4); }
.division-icon { width: 46px; height: 46px; padding: 10px; background: var(--red); fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; clip-path: polygon(0 0, 100% 0, 100% 70%, 78% 100%, 0 100%); }
.division h3 { margin-top: 1.4rem; font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.division-lead { margin-top: .8rem; color: var(--cream-2); max-width: 48ch; }
.division-list { margin-top: 1.5rem; display: grid; gap: .5rem 1.6rem; }
.division-list li { position: relative; padding-left: 1.3rem; font-size: .93rem; color: rgba(244,241,236,.86); }
.division-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--red-hi); }
.division-brands { margin-top: 1.6rem; }
.division-brands img { background: #fff; padding: .55rem .8rem; max-width: 320px; border-radius: 2px; }
.division-extra { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--cream-2); }
.creds { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.creds li { background: var(--bg-2); padding: .85rem .9rem; font-size: .8rem; color: var(--cream-2); line-height: 1.35; }
.creds b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--cream); }
.divisions-progress { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.6rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: var(--mute); }
.dp-count b { color: var(--cream); font-weight: 500; }
.dp-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.dp-bar span { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--dp, .2)); transition: transform .5s var(--ease-out); }

/* ---------- Process ---------- */
.process { background: var(--paper); color: var(--ink); }
.process .kicker { color: var(--ink-soft); }
.process .section-title em { color: var(--ink-mute); }
.process .section-lead { color: var(--ink-soft); }
.process-head { max-width: 760px; }
.steps { position: relative; margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: 2.2rem; padding-left: 2.2rem; z-index: 1; }
.step { position: relative; }
.step-dot { position: absolute; left: calc(-2.2rem + 1px); top: .35rem; width: 13px; height: 13px; background: var(--paper); border: 2px solid rgba(17,17,19,.3); transform: rotate(45deg); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.step.is-active .step-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(194,30,54,.18); }
.step-num { font-family: var(--mono); font-size: .74rem; color: var(--ink-mute); letter-spacing: .1em; }
.step h3 { margin-top: .4rem; font-size: 1.35rem; letter-spacing: -.015em; transition: color .4s; }
.step p { margin-top: .4rem; color: var(--ink-soft); font-size: .95rem; max-width: 30ch; }
.step-tag { display: inline-block; margin-top: .8rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.process-line { position: absolute; left: calc(var(--gutter) + 7px); top: var(--steps-top, 0px); height: var(--steps-h, 100%); width: 2px; background: var(--line-dark); pointer-events: none; }
.process-line span { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--lp, 0)); }
.process .container { position: relative; }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--bg); }
.portfolio-head { display: grid; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.pf-grid { display: grid; gap: 1.1rem; }
.pf-card { position: relative; perspective: 1200px; }
.pf-card.is-hidden { display: none; }
.pf-open {
  position: relative; display: block; width: 100%; height: 100%; min-height: 360px;
  text-align: left; overflow: hidden; background: var(--bg-3);
  transform-style: preserve-3d; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.pf-open img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out), filter .8s; filter: saturate(.95); }
.pf-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,19,.3) 0%, rgba(17,17,19,0) 26%, rgba(17,17,19,.6) 52%, rgba(17,17,19,.97) 100%); transition: background-color .6s; }
.pf-open::after { /* barrido diagonal rojo */
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(194,30,54,.55) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 1.1s var(--ease-out); pointer-events: none;
}
.pf-tags { position: absolute; top: 1.1rem; left: 1.1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.pf-tags span { padding: .3rem .65rem; background: rgba(17,17,19,.7); border: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.pf-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.3rem 1.5rem; display: grid; gap: .45rem; }
.pf-client { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); display: inline-flex; align-items: center; gap: .55rem; }
.pf-client::before { content: ""; width: 18px; height: 2px; background: var(--red-hi); }
.pf-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.1vw, 1.95rem); line-height: 1.05; letter-spacing: -.02em; color: var(--cream); max-width: 22ch; }
.pf-desc { font-size: .9rem; color: var(--cream-2); max-width: 52ch; }
.pf-more { margin-top: .35rem; font-size: .84rem; font-weight: 600; color: var(--cream); display: inline-flex; gap: .5rem; }
.pf-more i { font-style: normal; transition: transform .5s var(--ease-out); }
@media (hover: hover) {
  .pf-open:hover img { transform: scale(1.07); filter: saturate(1.12); }
  .pf-open:hover::after { transform: translateX(100%); }
  .pf-open:hover .pf-more i { transform: translateX(6px); }
  .pf-open:hover { box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(194,30,54,.5); }
}

/* ---------- Clients ---------- */
.clients { overflow: hidden; }
.clients-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.logo-rows { display: grid; gap: 1rem; }
.logo-row { display: flex; width: max-content; }
.logo-track { display: flex; gap: 1rem; padding-right: 1rem; animation: logos 48s linear infinite; }
.logo-row-rev .logo-track { animation-direction: reverse; animation-duration: 54s; }
.logo-rows:hover .logo-track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-100%); } }
.logo-track li {
  flex: none; width: clamp(170px, 18vw, 230px); height: clamp(92px, 9vw, 116px);
  display: grid; place-items: center; padding: 1.1rem 1.5rem;
  background: #fff; border: 1px solid var(--line-dark);
  transition: border-color .4s, transform .5s var(--ease-out), box-shadow .5s;
}
.logo-track img { max-height: clamp(48px, 5vw, 66px); max-width: 100%; width: auto; height: auto; object-fit: contain; transition: transform .5s var(--ease-out); }
.logo-track li:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(17,17,19,.35); }
.logo-track li:hover img { transform: scale(1.06); }
.clients-foot { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1.6rem; }
.sector { border-top: 2px solid var(--ink); padding-top: 1rem; }
.sector-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.sector p { margin-top: .5rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--bg); overflow: hidden; isolation: isolate; }
.contact-glow {
  position: absolute; inset: -30% -20% auto auto; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px; z-index: -1;
  background: radial-gradient(closest-side, rgba(194,30,54,.38), rgba(194,30,54,.08) 55%, transparent 75%);
  filter: blur(30px); animation: glowDrift 18s var(--ease-soft) infinite alternate;
}
@keyframes glowDrift { to { transform: translate3d(-12%, 14%, 0) scale(1.1); } }
.contact::before { /* diagonal de la "e" */
  content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 2px; background: var(--red);
  transform: rotate(-4deg); transform-origin: left; opacity: .7;
}
.contact-grid { display: grid; gap: 3.5rem; }
.contact-title { margin-top: 1.1rem; font-size: clamp(2.4rem, 5.6vw, 5rem); max-width: 13ch; }
.contact-list { margin-top: 2.6rem; display: grid; gap: 1.5rem; }
.contact-list li { display: grid; gap: .2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.cl-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.cl-name { font-weight: 600; }
.contact-list a { width: fit-content; background: linear-gradient(var(--red), var(--red)) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease-out), color .3s; }
.contact-list a:hover { background-size: 100% 1px; color: #fff; }

.contact-form { background: rgba(29,29,34,.92); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.6rem); display: grid; gap: 1.3rem; align-self: start; }
@supports (backdrop-filter: blur(10px)) { .contact-form { background: rgba(29,29,34,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.form-row { display: grid; gap: 1.3rem; }
.field { display: grid; gap: .45rem; }
.field span { font-size: .8rem; color: var(--cream-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--cream); background: transparent;
  border: 0; border-bottom: 1px solid rgba(244,241,236,.25); padding: .6rem 0; border-radius: 0;
  transition: border-color .3s;
}
.field select { cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--cream); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-hi); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red-hi); }
.form-foot { display: grid; gap: 1rem; margin-top: .4rem; }
.form-foot .btn { justify-self: start; }
.form-note { font-size: .8rem; color: var(--mute); }
.form-note.is-ok { color: var(--cream); padding: .8rem 1rem; border-left: 3px solid var(--red); background: rgba(194,30,54,.12); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: #ffffff; color: var(--ink); border-top: 4px solid var(--red); padding-top: clamp(4rem, 8vw, 6rem); }
.footer-grid { display: grid; gap: 2.6rem; }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 1.2rem; color: var(--ink-mute); font-size: .9rem; }
.footer-h { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.footer ul li { margin-bottom: .55rem; font-size: .92rem; color: var(--ink-soft); }
.footer ul a { transition: color .3s; }
.footer ul a:hover { color: var(--red); }
.footer-bottom { margin-top: clamp(3rem, 6vw, 4.5rem); padding-block: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .82rem; color: var(--ink-mute); padding-right: 76px; }
.footer-motto { font-family: var(--display); font-weight: 600; color: var(--ink); }

/* ---------- Equipo ---------- */
.team { margin-top: clamp(4.5rem, 9vw, 7rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); position: relative; z-index: 1; }
.team-title { margin-top: 1rem; font-size: clamp(1.8rem, 3.4vw, 3rem); max-width: 22ch; }
.team-title em { font-style: normal; font-weight: 300; font-stretch: 118%; color: var(--cream-2); }
.team-grid { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } .team-grid .member-body { padding: 1.3rem 1.15rem 1.4rem; } .team-grid .member-name { font-size: 1.28rem; } .team-grid .member-contact a { font-size: .8rem; letter-spacing: -.005em; gap: .5rem; } }
.member { background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: border-color .5s, transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.member-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.2s var(--ease-out); }
.member-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease-out); }
.member-body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.member-div { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); }
.member-name { margin-top: .2rem; font-size: 1.45rem; letter-spacing: -.02em; }
.member-role { color: var(--cream-2); font-size: .95rem; }
.member-badge { margin-top: .7rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .7rem; border: 1px solid rgba(194,30,54,.6); background: rgba(194,30,54,.12); font-size: .78rem; font-weight: 600; }
.member-badge svg { width: 16px; height: 16px; fill: none; stroke: var(--red-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.member-contact { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .55rem; }
.member-contact a { display: inline-flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--cream-2); transition: color .3s; overflow-wrap: anywhere; min-width: 0; }
.member-contact a:hover { color: var(--cream); }
.member-contact svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--red-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .member:hover { border-color: rgba(194,30,54,.6); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
  .member:hover .member-photo img { transform: scale(1.05); }
  .member:hover .member-photo::after { transform: scaleX(1); }
}

/* WhatsApp */
.wa-float {
  position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 900;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); box-shadow: 0 14px 34px -10px rgba(194,30,54,.7);
  transition: transform .5s var(--ease-out), background-color .3s;
}
.wa-float { border: 2px solid rgba(244,241,236,.85); }
.wa-float svg { width: 27px; height: 27px; fill: var(--cream); }
.wa-float:hover { transform: translateY(-4px) scale(1.05); background: var(--red-2); }

/* Lightbox */
.lightbox { margin: auto; padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; color: var(--cream); }
.lightbox::backdrop { background: rgba(8,8,10,.94); }
.lb-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 4.5rem clamp(12px, 6vw, 96px) 3rem; }
.lb-figure { display: grid; gap: .9rem; max-width: 1400px; width: 100%; }
.lb-figure img { width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; animation: lbIn .6s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.98); } }
.lb-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--cream-2); }
.lb-count { font-family: var(--mono); font-size: .78rem; color: var(--red-hi); white-space: nowrap; }
.lb-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 44px; height: 44px; border: 1px solid var(--line); font-size: 1rem; transition: background-color .3s; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(17,17,19,.6); border: 1px solid var(--line); font-size: 1.2rem; transition: background-color .3s; }
.lb-close:hover, .lb-nav:hover { background: var(--red); border-color: var(--red); }
.lb-prev { left: clamp(6px, 1.6vw, 24px); }
.lb-next { right: clamp(6px, 1.6vw, 24px); }

/* =============================================================
   7. Effects — reveals
   ============================================================= */
.has-js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
/* red de seguridad: si el JS falla, todo aparece igual */
.has-js .reveal:not(.is-visible), .has-js .hero:not(.is-in) .hero-kicker, .has-js .hero:not(.is-in) .hero-foot { animation: revealSafety .01s 7s forwards; }
@keyframes revealSafety { to { opacity: 1; transform: none; } } /* defensa: nunca ocultar texto partido */
.has-js .mainline.reveal { transform: translateY(32px); }
.has-js .mainline.reveal.is-visible { transform: none; }
.has-js .motto.reveal { transform: none; clip-path: polygon(0 0, 100% 9%, 100% 100%, 0 100%); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .creds { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 720px) {
  .hud-bottom { display: flex; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .division-list { grid-template-columns: 1fr 1fr; }
  .clients-foot { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .pf-grid { grid-template-columns: repeat(6, 1fr); }
  .pf-a { grid-column: span 6; }
  .pf-b { grid-column: span 3; }
  .pf-c { grid-column: span 3; }
  .pf-d { grid-column: span 3; }
  .pf-e { grid-column: span 3; }
  .pf-grid.is-filtered .pf-card { grid-column: span 3; }
  .creds { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hud-cross { display: block; }
  .hero-foot { grid-template-columns: 1fr auto; }
  .hero-index { display: block; }
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; }
  .portfolio-head { grid-template-columns: 1fr auto; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 5rem; align-items: start; }

  /* Divisiones: carrusel con pestañas y flechas */
  .division { grid-template-columns: 1fr 1.08fr; align-content: stretch; min-height: 560px; }
  .division-media { aspect-ratio: auto; height: 100%; min-height: 100%; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
  .division-media::after { background: linear-gradient(90deg, transparent 50%, rgba(22,22,26,.35)); }
  .division-body { padding: 2.6rem 2.8rem 2.6rem 1.4rem; }

  /* Proceso horizontal */
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.6rem; padding-left: 0; padding-top: 2.6rem; }
  .step-dot { left: 0; top: -2.6rem; transform: translateY(-5.5px) rotate(45deg); }
  .process-line { left: var(--gutter); right: var(--gutter); width: auto; height: 2px; bottom: auto; top: var(--steps-top, 0px); }
  .process-line span { transform-origin: left; transform: scaleX(var(--lp, 0)); }

  .pf-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(300px, auto); }
  .pf-a { grid-column: span 7; grid-row: span 2; }
  .pf-b { grid-column: span 5; grid-row: span 2; }
  .pf-c { grid-column: span 4; }
  .pf-d { grid-column: span 4; }
  .pf-e { grid-column: span 4; }
  .pf-grid.is-filtered .pf-card { grid-column: span 6; grid-row: span 1; }
  .pf-open { min-height: 460px; }
  .pf-a .pf-open, .pf-b .pf-open { min-height: 640px; }
}

@media (min-width: 1280px) {
  .hero-title { max-width: 15ch; }
  .division-body { padding: 3rem 3.2rem 3rem 1.6rem; }
}
@media (max-width: 719px) {
  .div-nav { flex-direction: column; align-items: stretch; border-bottom: 0; }
  .div-tabs { border-bottom: 1px solid var(--line); }
  .div-arrows { justify-content: flex-end; padding-bottom: 0; order: 2; }
  .dp-hint { display: none; }
}

@media (max-width: 539px) {
  .hud-top span:last-child { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stat:nth-child(even) { padding-left: 1rem; }
  .wa-float { width: 52px; height: 52px; }
  .hero-scroll { display: none; }
  .pf-open { min-height: 480px; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation-duration: 60s; }
  .rec-dot, .hero-scroll span { animation: none; }
}
