/* ==========================================================================
   FAGNER — Maquinados, Instalaciones y Mantenimiento Industrial
   ========================================================================== */

:root {
  /* Marca */
  --orange: #F26125;
  --orange-hi: #FF7B3A;
  --orange-deep: #C9461A;
  --orange-glow: rgba(242, 97, 37, .45);

  /* Azul pizarra del logo */
  --ink: #071923;
  --slate-950: #0A2130;
  --slate-900: #10293A;
  --slate-850: #143040;
  --slate-800: #193746;
  --slate-700: #25434F;
  --slate-600: #3A5563;
  --slate-500: #566F7C;
  --steel: #93A7B2;
  --mist: #C9D5DB;
  --paper: #F2F5F6;
  --paper-2: #E6ECEF;
  --white: #FFFFFF;

  --text: #E9EEF1;
  --text-dim: #A9BAC3;
  --text-dark: #13293A;
  --text-dark-dim: #4E6572;

  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-tech: 'Michroma', 'Barlow', sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 76px;
  --radius: 6px;
  --chamfer: 14px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--slate-950);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { position: relative; padding: clamp(5rem, 11vw, 9.5rem) 0; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-tech);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.4rem;
}
.hexdot {
  width: .95rem; height: .82rem; flex: none;
  background: var(--orange);
  clip-path: var(--hex);
  box-shadow: 0 0 18px var(--orange-glow);
}
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.h2 em, .hero__title em, .cta__title em {
  font-style: normal;
  color: var(--orange);
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--orange); --fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: 1.05rem 1.7rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--fg);
  background: var(--bg);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  overflow: hidden;
  isolation: isolate;
  transition: background-color .3s, color .3s, transform .35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateX(120%); }
.btn .ico { transition: transform .35s var(--ease-out); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn--primary:hover { --bg: var(--orange-hi); box-shadow: 0 10px 40px -10px var(--orange-glow); }
.btn--ghost { --bg: rgba(255,255,255,.07); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.btn--ghost:hover { --bg: rgba(255,255,255,.14); }
.btn--dark { --bg: var(--slate-900); }
.btn--dark:hover { --bg: var(--orange); }
.btn--white { --bg: #fff; --fg: var(--slate-900); }
.btn--white:hover { --bg: var(--slate-900); --fg: #fff; }
.btn--outline-white { --bg: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn--outline-white:hover { --bg: rgba(255,255,255,.24); }
.btn--sm { padding: .78rem 1.2rem; font-size: .95rem; --chamfer: 10px; }
.btn--block { width: 100%; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  pointer-events: none;
}
.preloader__panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: radial-gradient(ellipse at 50% 100%, #2b4554 0%, var(--slate-950) 70%);
  transition: transform 1s var(--ease-io);
}
.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; background: radial-gradient(ellipse at 50% 0%, #2b4554 0%, var(--slate-950) 70%); }
.preloader__center { position: relative; width: 132px; display: grid; place-items: center; transition: opacity .4s, transform .6s var(--ease-io); }
.preloader__hex { width: 132px; overflow: visible; }
.preloader__hex polygon {
  fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: pre-draw 1.1s var(--ease-io) forwards;
  filter: drop-shadow(0 0 8px var(--orange-glow));
}
.preloader__mark {
  position: absolute; top: 50%; left: 50%; width: 92px;
  transform: translate(-50%, -62%) scale(.6); opacity: 0;
  animation: pre-mark .7s .6s var(--ease-out) forwards;
}
.preloader__count {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  font-family: var(--f-tech); font-size: .7rem; letter-spacing: .2em; color: var(--steel);
}
@keyframes pre-draw { to { stroke-dashoffset: 0; } }
@keyframes pre-mark { to { opacity: 1; transform: translate(-50%, -62%) scale(1); } }
.is-loaded .preloader__center { opacity: 0; transform: scale(.85); }
.is-loaded .preloader__panel--top { transform: translateY(-101%); }
.is-loaded .preloader__panel--bottom { transform: translateY(101%); }
.is-loaded .preloader { visibility: hidden; transition: visibility 0s 1.1s; }
.no-js .preloader { display: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease-out), height .4s;
}
.header.is-scrolled {
  background: rgba(10, 33, 48, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 40px -20px rgba(0,0,0,.6);
  --header-h: 66px;
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.header__logo { flex: none; display: block; width: clamp(150px, 15vw, 190px); }
.header__logo img { width: 100%; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: .3rem; }
.nav__link {
  position: relative; display: block;
  padding: .55rem .85rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__cta { flex: none; }

.burger { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .45s var(--ease-out), opacity .3s, top .45s var(--ease-out);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; right: 18px; background: var(--orange); }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), #ffb07a);
  transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 12px var(--orange-glow);
}

/* Menú móvil */
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(circle at 80% 10%, rgba(242,97,37,.18), transparent 45%),
    var(--slate-950);
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path .8s var(--ease-io);
  overflow-y: auto;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mmenu__list li { overflow: hidden; }
.mmenu__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .35rem 0;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3.4rem);
  text-transform: uppercase; line-height: 1.05;
  transform: translateY(110%);
  transition: transform .7s var(--ease-out), color .3s;
}
.mmenu__list a small { font-family: var(--f-tech); font-size: .65rem; color: var(--orange); letter-spacing: .1em; }
.mmenu__list a:hover { color: var(--orange); }
.menu-open .mmenu__list a { transform: none; }
.menu-open .mmenu__list li:nth-child(1) a { transition-delay: .18s; }
.menu-open .mmenu__list li:nth-child(2) a { transition-delay: .23s; }
.menu-open .mmenu__list li:nth-child(3) a { transition-delay: .28s; }
.menu-open .mmenu__list li:nth-child(4) a { transition-delay: .33s; }
.menu-open .mmenu__list li:nth-child(5) a { transition-delay: .38s; }
.menu-open .mmenu__list li:nth-child(6) a { transition-delay: .43s; }
.menu-open .mmenu__list li:nth-child(7) a { transition-delay: .48s; }
.mmenu__contact { display: grid; gap: .8rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); opacity: 0; transition: opacity .5s .5s; }
.menu-open .mmenu__contact { opacity: 1; }
.mmenu__contact a { display: flex; align-items: center; gap: .8rem; color: var(--text-dim); }
.mmenu__contact .ico { color: var(--orange); }
.menu-open { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #47606e 0%, #2c4553 38%, #16313f 70%, #0a2130 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
  position: absolute; z-index: -1; width: 46vw; height: 46vw; right: -10vw; top: 10%;
  background: radial-gradient(circle, rgba(242,97,37,.22), transparent 62%);
  filter: blur(20px);
  animation: glow-float 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__glow--2 { left: -16vw; right: auto; top: auto; bottom: -20vw; background: radial-gradient(circle, rgba(147,167,178,.18), transparent 62%); animation-duration: 16s; }
@keyframes glow-float { to { transform: translate(-6vw, 4vw) scale(1.1); } }

.hero__inner {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__eyebrow { color: #fff; }
.hero__eyebrow .hexdot { animation: hex-pulse 2.4s ease-in-out infinite; }
@keyframes hex-pulse { 50% { box-shadow: 0 0 0 6px rgba(242,97,37,0), 0 0 22px var(--orange); transform: scale(1.08); } }
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero__title em { position: relative; display: inline-block; }
.hero__rotator {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--mist);
  margin-bottom: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .4em; align-items: baseline;
}
.rotator { display: inline-grid; color: #fff; position: relative; }
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(70%) rotateX(-60deg);
  transform-origin: 50% 100%;
  transition: opacity .5s, transform .7s var(--ease-out);
  white-space: nowrap;
  border-bottom: 2px solid var(--orange);
}
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-out { opacity: 0; transform: translateY(-70%) rotateX(60deg); }
.hero__lead { max-width: 34rem; color: var(--text-dim); font-size: 1.12rem; margin-bottom: 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero__chips li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--text-dim); }
.hero__chips .ico { color: var(--orange); width: 1.4em; height: 1.4em; }
.hero__chips b { color: #fff; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .02em; margin-right: .15rem; }

/* Entrada del hero (tras preloader) */
.js [data-hero-in] { opacity: 0; transform: translateY(26px); }
.is-ready [data-hero-in] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.is-ready .hero__eyebrow { transition-delay: .05s !important; }
.is-ready .hero__rotator { transition-delay: .55s !important; }
.is-ready .hero__lead { transition-delay: .7s !important; }
.is-ready .hero__ctas { transition-delay: .85s !important; }
.is-ready .hero__chips { transition-delay: 1s !important; }
.is-ready .hero__visual { transition-delay: .35s !important; transition-duration: 1.4s !important; }

/* CNC panel */
.hero__visual { position: relative; }
.cnc {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 560px; margin-left: auto;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.01) 40%),
    linear-gradient(180deg, #1c3644, #0f2532);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.09),
    0 40px 80px -30px rgba(0,0,0,.65),
    0 0 0 10px rgba(255,255,255,.025);
  overflow: hidden;
}
.cnc canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cnc__hud {
  position: absolute; inset: 0; pointer-events: none;
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--f-tech); font-size: .6rem; letter-spacing: .14em; color: var(--steel);
}
.cnc__top, .cnc__bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cnc__bottom { align-items: flex-end; padding-bottom: .7rem; }
.cnc__brand { color: rgba(255,255,255,.75); }
.cnc__status { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .6rem; background: rgba(7,25,35,.6); border: 1px solid rgba(255,255,255,.08); border-radius: 2px; }
.cnc__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: blink 1s steps(2) infinite; }
.cnc__status b { color: #fff; font-weight: 400; }
@keyframes blink { 50% { opacity: .25; } }
.cnc__coords, .cnc__job { display: grid; gap: .3rem; }
.cnc__job { text-align: right; }
.cnc__coords b { color: #fff; font-weight: 400; font-variant-numeric: tabular-nums; }
.cnc__job span:first-child { color: var(--orange); }
.cnc__bar { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .9rem; height: 2px; background: rgba(255,255,255,.08); }
.cnc__bar span { display: block; height: 100%; width: 0; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.cnc__corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--orange); pointer-events: none; }
.cnc__corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cnc__corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.cnc__corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.cnc__corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: var(--steel); font-family: var(--f-tech); font-size: .55rem; letter-spacing: .3em; text-transform: uppercase;
  transition: color .3s;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue__mouse { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-cue__mouse span { width: 3px; height: 7px; background: var(--orange); border-radius: 2px; animation: wheel 1.8s var(--ease-io) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquees { position: relative; height: clamp(150px, 16vw, 210px); margin-top: -1px; background: var(--paper); overflow: hidden; display: grid; place-items: center; }
.marquee {
  position: absolute; left: -5%; right: -5%;
  overflow: hidden; white-space: nowrap;
  padding: 1.05rem 0;
}
.marquee--orange { background: var(--orange); transform: rotate(-2.2deg); z-index: 2; box-shadow: 0 20px 40px -20px rgba(242,97,37,.6); }
.marquee--dark { background: var(--slate-900); transform: rotate(2deg); }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track span {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  text-transform: uppercase; letter-spacing: .04em; line-height: 1;
  padding: 0 1.6rem;
}
.marquee--orange span { color: #fff; }
.marquee--dark span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee__track i { width: 1.05rem; height: .91rem; clip-path: var(--hex); flex: none; }
.marquee--orange i { background: var(--slate-900); }
.marquee--dark i { background: var(--orange); }

/* ==========================================================================
   NOSOTROS
   ========================================================================== */
.about { background: var(--paper); color: var(--text-dark); padding-top: clamp(3.5rem, 7vw, 6rem); }
.about .eyebrow { color: var(--orange-deep); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__content .h2 { margin-bottom: 1.8rem; color: var(--slate-900); }
.about__highlight {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.22;
  margin-bottom: 1.6rem;
  color: var(--slate-900);
}
.about__highlight .hw { opacity: .16; transition: opacity .35s, color .35s; }
.about__highlight .hw.is-lit { opacity: 1; }
.about__highlight .hw.is-key.is-lit { color: var(--orange-deep); }
.no-js .about__highlight .hw, .reveal-all .about__highlight .hw { opacity: 1; }
.about__text { color: var(--text-dark-dim); margin-bottom: 2rem; }

/* Honeycomb fotos */
.honeycomb { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 600px; margin-inline: auto; }
.hc {
  position: absolute;
  aspect-ratio: 1.113 / 1;
  filter: drop-shadow(0 24px 30px rgba(16,41,58,.28));
  transition: filter .5s;
}
.hc img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease-out); }
.hc:hover img { transform: scale(1.05); }
.hc:hover { filter: drop-shadow(0 30px 40px rgba(242,97,37,.35)); }
.hc--a { width: 62%; left: 0; top: 17%; z-index: 2; }
.hc--b { width: 47%; right: 0; top: 0; }
.hc--c { width: 47%; right: 3%; bottom: 3%; }
.hc--d { width: 27%; left: 8%; bottom: 2%; z-index: 3; }
.hc--e { width: 22%; left: 30%; top: 0; z-index: 1; }
.hc--logo {
  width: 25%; left: 50%; top: 46%; z-index: 4;
  clip-path: var(--hex);
  background: linear-gradient(140deg, var(--slate-800), var(--slate-950));
  display: grid; place-items: center;
  aspect-ratio: 1.1547 / 1;
  filter: none;
}
.hc--logo img { width: 66%; height: auto; transform: translateY(-4%); }
.hc-ring {
  position: absolute; width: 70%; left: -4%; top: 12%; z-index: 0; overflow: visible;
  pointer-events: none;
}
.hc-ring polygon { fill: none; stroke: var(--orange); stroke-width: .6; stroke-dasharray: 3 3; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -120; } }
.hc .float, .hc { animation: floaty 7s ease-in-out infinite; }
.hc--b { animation-duration: 8s; animation-delay: -2s; }
.hc--c { animation-duration: 9s; animation-delay: -4s; }
.hc--d { animation-duration: 6s; animation-delay: -1s; }
.hc--e { animation-duration: 7.5s; animation-delay: -3s; }
.hc--logo { animation-duration: 5.5s; }
@keyframes floaty { 50% { translate: 0 -10px; } }

/* Tabs */
.tabs__list { position: relative; display: inline-flex; gap: .3rem; padding: .3rem; background: #fff; border-radius: 40px; box-shadow: 0 6px 24px -12px rgba(16,41,58,.25); margin-bottom: 1.3rem; }
.tabs__btn {
  position: relative; z-index: 1;
  padding: .6rem 1.3rem;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .98rem;
  color: var(--text-dark-dim);
  transition: color .35s;
}
.tabs__btn.is-active { color: #fff; }
.tabs__ink { position: absolute; top: .3rem; bottom: .3rem; left: 0; width: 0; background: var(--slate-900); border-radius: 40px; transition: transform .55s var(--ease-out), width .55s var(--ease-out); }
.tabs__panel { color: var(--text-dark-dim); min-height: 5.5rem; animation: fade-up .6s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .9rem; border-radius: 30px; background: rgba(242,97,37,.1); color: var(--orange-deep); font-weight: 600; font-size: .95rem; }

/* Stats */
.stats {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--slate-900);
  color: #fff;
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--sx, 20%) 0%, rgba(242,97,37,.25), transparent 50%);
  transition: background .3s;
}
.stat { position: relative; padding: clamp(1.8rem, 3.5vw, 2.8rem) clamp(1.2rem, 2.4vw, 2rem); }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: rgba(255,255,255,.12); }
.stat__num {
  font-family: var(--f-display); font-weight: 800; line-height: 1;
  font-size: clamp(3rem, 5.4vw, 4.6rem);
  color: var(--orange);
  display: flex; align-items: baseline; gap: .04em;
  margin-bottom: .6rem;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: .45em; color: #fff; font-weight: 700; }
.stat__label { color: var(--text-dim); font-size: .95rem; line-height: 1.45; max-width: 15rem; }

/* ==========================================================================
   SECCIONES — encabezados
   ========================================================================== */
.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem 4rem; align-items: end; }
.section-head--center { text-align: center; max-width: 48rem; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__lead { color: var(--text-dim); font-size: 1.1rem; }
.section-head--center .section-head__lead { margin-top: 1.4rem; }

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(242,97,37,.12), transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(71,96,110,.35), transparent 60%),
    var(--slate-950);
  overflow: hidden;
}
.services::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M14 0h28l14 24.25L42 48.5H14L0 24.25zM56 24.25h28' fill='none' stroke='%2393A7B2' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.services__bgword, .process__bgword {
  position: absolute; top: 2.5rem; left: 0;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(7rem, 22vw, 20rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.cards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.8rem 1.6rem 1.6rem;
  min-height: 100%;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), background .4s;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(242,97,37,.2), transparent 45%);
  transition: opacity .4s;
}
.card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 30px; height: 30px;
  background: linear-gradient(to bottom left, transparent calc(50% - 1px), rgba(242,97,37,.7) 50%, transparent calc(50% + 1px));
}
.card:hover::before { opacity: 1; }
.card:hover { background: linear-gradient(165deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.6rem; }
.card__icon {
  width: 62px; height: 54px; display: grid; place-items: center;
  clip-path: var(--hex);
  background: rgba(242,97,37,.12);
  color: var(--orange);
  transition: background .4s, color .4s, transform .6s var(--ease-out);
}
.card__icon .ico { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--orange); color: #fff; transform: rotate(-8deg) scale(1.05); }
.ico .accent { stroke: var(--orange); }
.card:hover .card__icon .accent { stroke: #fff; }
.card__num { font-family: var(--f-tech); font-size: .7rem; color: var(--slate-500); letter-spacing: .12em; }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; margin-bottom: .75rem; }
.card__text { color: var(--text-dim); font-size: .98rem; line-height: 1.55; margin-bottom: 1.2rem; }
.card__list { display: grid; gap: .45rem; margin-bottom: 1.6rem; }
.card__list li { position: relative; padding-left: 1.2rem; font-size: .92rem; color: var(--mist); line-height: 1.4; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .42em; width: .55rem; height: .48rem; background: var(--orange); clip-path: var(--hex); }
.card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  color: var(--orange);
}
.card__link .ico { transition: transform .4s var(--ease-out); }
.card__link:hover .ico { transform: translateX(5px); }

/* ==========================================================================
   CAPACIDADES
   ========================================================================== */
.caps { background: var(--paper); color: var(--text-dark); overflow: hidden; }
.caps .eyebrow { color: var(--orange-deep); }
.caps .h2 { color: var(--slate-900); }
.caps .section-head__lead { color: var(--text-dark-dim); }
.caps__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.caps__tab {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.4rem .9rem 1.1rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 30px -18px rgba(16,41,58,.4), inset 0 0 0 1px rgba(16,41,58,.06);
  text-align: left;
  transition: background .35s, color .35s, transform .4s var(--ease-out), box-shadow .35s;
}
.caps__tab .ico { width: 30px; height: 30px; color: var(--orange); }
.caps__tab b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; color: var(--slate-900); }
.caps__tab small { font-size: .82rem; color: var(--text-dark-dim); }
.caps__tab:hover { transform: translateY(-3px); }
.caps__tab.is-active { background: var(--slate-900); box-shadow: 0 18px 40px -18px rgba(16,41,58,.7); }
.caps__tab.is-active b { color: #fff; }
.caps__tab.is-active small { color: var(--steel); }
.caps__tab.is-active .ico .accent { stroke: #fff; }

.caps__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.caps__visual { display: grid; gap: 2rem; }
.caps__photo { position: relative; width: min(100%, 470px); margin-inline: auto; aspect-ratio: 1.113 / 1; }
.caps__photo img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(16,41,58,.3)); transition: opacity .35s, transform .6s var(--ease-out); }
.caps__photo img.is-swapping { opacity: 0; transform: scale(.92) rotate(-3deg); }
.caps__ring { position: absolute; inset: -7%; width: 114%; height: 114%; overflow: visible; animation: spin 40s linear infinite; }
.caps__ring polygon { fill: none; stroke: var(--orange); stroke-width: .7; stroke-dasharray: 6 4; }
@keyframes spin { to { transform: rotate(360deg); } }
.caps__info h3 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; text-transform: uppercase; color: var(--slate-900); line-height: 1; margin-bottom: .6rem; }
.caps__info p { color: var(--text-dark-dim); margin-bottom: 1.1rem; }
.caps__specs { display: grid; gap: .55rem; }
.caps__specs li { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: #fff; border-left: 3px solid var(--orange); font-size: .98rem; box-shadow: 0 6px 20px -16px rgba(16,41,58,.5); animation: fade-up .5s var(--ease-out) both; }
.caps__specs li:nth-child(2) { animation-delay: .07s; }
.caps__specs li:nth-child(3) { animation-delay: .14s; }
.caps__specs b { font-family: var(--f-display); font-size: 1.1rem; color: var(--slate-900); letter-spacing: .02em; margin-left: auto; white-space: nowrap; }

.checker {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(242,97,37,.2), transparent 45%),
    linear-gradient(160deg, var(--slate-800), var(--slate-950));
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  box-shadow: 0 40px 80px -40px rgba(10,33,48,.8);
  display: grid; gap: 1.7rem;
}
.checker__label { font-family: var(--f-tech); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.checker__head { display: grid; gap: .8rem; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; background: rgba(0,0,0,.25); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.seg__btn { position: relative; z-index: 1; padding: .75rem .5rem; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); transition: color .35s; }
.seg__btn.is-active { color: #fff; }
.seg__ink { position: absolute; top: .3rem; bottom: .3rem; left: .3rem; width: calc(50% - .3rem); background: var(--orange); border-radius: 3px; transition: transform .5s var(--ease-out); box-shadow: 0 6px 20px -6px var(--orange-glow); }
.seg[data-pos="1"] .seg__ink { transform: translateX(100%); }
.checker__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.checker__value { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .03em; }

.gauge { position: relative; padding: 14px 0 0; }
.gauge__rail { position: relative; height: 12px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.gauge__rail::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 14 - 1px), rgba(7,25,35,.7) calc(100% / 14 - 1px) calc(100% / 14)); }
.gauge__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), #ff9a5c);
  box-shadow: 0 0 20px var(--orange-glow);
  transition: width .8s var(--ease-out);
}
.gauge__fill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 30px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6)); animation: shimmer 1.8s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .2; } }
.gauge__ticks { position: relative; height: 34px; margin-top: 8px; }
.gauge__ticks span {
  position: absolute; top: 0; transform: translateX(-50%);
  font-family: var(--f-display); font-size: .78rem; font-weight: 600; color: var(--slate-500); white-space: nowrap;
  transition: color .3s;
}
.gauge__ticks span::before { content: ""; display: block; width: 1px; height: 6px; margin: 0 auto 3px; background: currentColor; }
.gauge__ticks span.in { color: var(--mist); }
.gauge__ticks span.sel { color: var(--orange); }
.gauge input[type=range] {
  position: absolute; left: -11px; right: -11px; top: 0; width: calc(100% + 22px); height: 40px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.gauge input[type=range]:focus-visible { outline: none; }
.gauge input[type=range]::-webkit-slider-runnable-track { height: 40px; background: transparent; }
.gauge input[type=range]::-moz-range-track { height: 40px; background: transparent; }
.gauge input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 40px; margin-top: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 40'%3E%3Cpath d='M11 1l9 5.2v10.4L11 21.8 2 16.6V6.2z' fill='%23fff' stroke='%23F26125' stroke-width='2.5'/%3E%3Cpath d='M11 22v18' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  border: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
  transition: transform .2s;
}
.gauge input[type=range]::-moz-range-thumb {
  width: 22px; height: 40px; border: 0; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 40'%3E%3Cpath d='M11 1l9 5.2v10.4L11 21.8 2 16.6V6.2z' fill='%23fff' stroke='%23F26125' stroke-width='2.5'/%3E%3Cpath d='M11 22v18' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.gauge input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.gauge input[type=range]:focus-visible::-webkit-slider-thumb { filter: drop-shadow(0 0 6px var(--orange)); }
.gauge__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .3rem; font-size: .82rem; color: var(--steel); }
.gauge__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.gauge__legend i { width: 14px; height: 6px; border-radius: 1px; }
.lg-ok { background: var(--orange); }
.lg-no { background: rgba(255,255,255,.12); }

.checker__result {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(242,97,37,.1);
  border: 1px solid rgba(242,97,37,.35);
  border-radius: 4px;
  transition: background .4s, border-color .4s;
}
.checker__result.is-no { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.checker__badge {
  flex: none; width: 48px; height: 42px; display: grid; place-items: center;
  clip-path: var(--hex); background: var(--orange); color: #fff;
  transition: background .4s, transform .5s var(--ease-out);
}
.checker__badge .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.checker__result.is-no .checker__badge { background: var(--slate-600); }
.checker__result.pop .checker__badge { animation: pop .5s var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.25) rotate(-8deg); } }
.checker__verdict { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.checker__detail { color: var(--mist); font-size: .95rem; line-height: 1.45; margin-top: .15rem; }

/* ==========================================================================
   PROCESO (scroll horizontal)
   ========================================================================== */
.process {
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(242,97,37,.14), transparent 60%),
    linear-gradient(180deg, var(--slate-900), var(--slate-950));
}
.process__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.8rem, 4vh, 3rem); padding: var(--header-h) 0 2rem; }
.process__bgword { top: auto; bottom: -2rem; left: auto; right: -2rem; }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.process__counter { font-family: var(--f-display); font-weight: 800; color: var(--slate-500); font-size: 1.4rem; white-space: nowrap; }
.process__counter b { font-size: 4rem; color: var(--orange); line-height: 1; margin-right: .3rem; font-variant-numeric: tabular-nums; }
.process__viewport { overflow: visible; }
.process__track {
  display: flex; gap: 1.4rem;
  padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2);
  will-change: transform;
}
.step {
  position: relative; flex: none;
  width: clamp(280px, 30vw, 400px);
  min-height: clamp(300px, 44vh, 400px);
  padding: 2rem 1.9rem;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(255,255,255,.075), rgba(255,255,255,.015));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  transition: background .5s, transform .5s var(--ease-out);
}
.step.is-current { background: linear-gradient(165deg, rgba(242,97,37,.2), rgba(255,255,255,.03)); }
.step__num {
  font-family: var(--f-display); font-weight: 800; font-size: 6.2rem; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22);
  transition: -webkit-text-stroke-color .5s, color .5s;
}
.step.is-current .step__num { -webkit-text-stroke-color: var(--orange); }
.step__icon { position: absolute; top: 2rem; right: 1.9rem; width: 56px; height: 48px; display: grid; place-items: center; clip-path: var(--hex); background: var(--orange); color: #fff; transition: transform .6s var(--ease-out); }
.step.is-current .step__icon { transform: rotate(-10deg) scale(1.08); }
.step__icon .ico { width: 24px; height: 24px; }
.step__icon .ico .accent { stroke: #fff; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; margin: auto 0 .6rem; padding-top: 2rem; }
.step p { color: var(--text-dim); font-size: 1rem; line-height: 1.55; min-height: calc(1.55em * 3); }
.process__rail { position: relative; height: 2px; background: rgba(255,255,255,.1); }
.process__rail span { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--orange-deep), var(--orange)); }
.process__rail i {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(242,97,37,.35), 0 0 22px 6px var(--orange);
}

/* ==========================================================================
   DOLORES DE CABEZA
   ========================================================================== */
.pains { background: var(--paper); color: var(--text-dark); }
.pains .eyebrow { color: var(--orange-deep); }
.pains__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.pains__sticky { position: sticky; top: calc(var(--header-h) + 3rem); }
.pains__title { color: var(--slate-900); margin-bottom: 1.4rem; }
.pains__lead { color: var(--text-dark-dim); margin-bottom: 2rem; max-width: 28rem; }
.pains__list { display: grid; gap: 1rem; counter-reset: pain; }
.pain {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  padding: 1.8rem 1.8rem;
  background: #fff;
  box-shadow: 0 14px 40px -28px rgba(16,41,58,.5);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.pain__idx { font-family: var(--f-tech); font-size: .75rem; color: var(--orange-deep); padding-top: .45rem; letter-spacing: .1em; }
.pain__problem, .pain__solution { display: flex; align-items: flex-start; gap: .7rem; }
.pain__problem {
  position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; text-transform: uppercase;
  color: var(--slate-900);
  transition: color .6s;
}
.pain__problem .ico { color: #C0392B; margin-top: .15em; transition: opacity .4s; }
.pain__problem span { position: relative; }
.pain__problem span::after {
  content: ""; position: absolute; left: 0; top: 52%; height: 3px; width: 100%;
  background: var(--orange); box-shadow: 0 0 10px var(--orange-glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-io);
}
.pain__solution {
  max-height: 0; opacity: 0; overflow: hidden;
  color: var(--text-dark-dim); font-size: 1.05rem;
  transition: max-height .8s var(--ease-out) .35s, opacity .6s .5s, margin .6s .35s;
}
.pain__solution .ico { color: #fff; background: var(--orange); border-radius: 50%; padding: 3px; width: 1.35em; height: 1.35em; stroke-width: 3; margin-top: .1em; }
.pain.is-solved { transform: translateX(10px); box-shadow: 0 24px 50px -28px rgba(242,97,37,.6); }
.pain.is-solved .pain__problem { color: var(--slate-500); }
.pain.is-solved .pain__problem .ico { opacity: .35; }
.pain.is-solved .pain__problem span::after { transform: scaleX(1); }
.pain.is-solved .pain__solution { max-height: 7rem; opacity: 1; margin-top: .8rem; }
.no-js .pain__solution, .reveal-all .pain__solution { max-height: none; opacity: 1; margin-top: .8rem; }

/* ==========================================================================
   INDUSTRIAS — panal hexagonal
   ========================================================================== */
.industries {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(71,96,110,.5), transparent 70%),
    var(--slate-950);
  overflow: hidden;
}
.honey {
  --n: 8; --g: 12px;
  --w: min(178px, calc((100vw - var(--gutter) * 2 - (var(--n) - 1) * var(--g)) / (var(--n) * .75 + .25)));
  --h: calc(var(--w) * .866);
  display: grid;
  grid-template-columns: repeat(var(--n), calc(var(--w) * .75));
  column-gap: var(--g); row-gap: var(--g);
  justify-content: center;
  padding-right: calc(var(--w) * .25);
  padding-bottom: calc(var(--h) / 2 + var(--g) / 2);
}
.ind {
  position: relative; width: var(--w); height: var(--h);
  clip-path: var(--hex);
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  transition: transform .6s var(--ease-out), background .4s;
  cursor: default;
}
.ind:nth-child(even) { translate: 0 calc(var(--h) / 2 + var(--g) / 2); }
.ind__in {
  position: absolute; inset: 1.5px;
  clip-path: var(--hex);
  background: linear-gradient(160deg, var(--slate-800), var(--slate-900));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  padding: 0 18%;
  text-align: center;
  transition: background .4s;
}
.ind__in .ico { width: clamp(26px, calc(var(--w) * .2), 38px); height: clamp(26px, calc(var(--w) * .2), 38px); color: var(--orange); transition: color .4s, transform .6s var(--ease-out); }
.ind__in span { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.78rem, calc(var(--w) * .085), 1.05rem); line-height: 1.05; }
.ind:hover { transform: translateY(-8px) scale(1.04); background: var(--orange); }
.ind:hover .ind__in { background: linear-gradient(160deg, var(--orange), var(--orange-deep)); }
.ind:hover .ico { color: #fff; transform: scale(1.12); }
.ind:hover .ico .accent { stroke: #fff; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--paper); color: var(--text-dark); }
.faq .eyebrow { color: var(--orange-deep); }
.faq .h2 { color: var(--slate-900); margin-bottom: 1.3rem; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 3rem); }
.faq__lead { color: var(--text-dark-dim); margin-bottom: 2rem; }
.faq__card { display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem 1rem 1rem; background: var(--slate-900); color: #fff; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.faq__card-icon { width: 50px; height: 44px; display: grid; place-items: center; clip-path: var(--hex); background: var(--orange); }
.faq__card b { display: block; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--steel); }
.faq__card a { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.faq__card a:hover { color: var(--orange); }
.accordion { display: grid; gap: .8rem; }
.acc { background: #fff; box-shadow: 0 10px 30px -24px rgba(16,41,58,.5); border-left: 3px solid transparent; transition: border-color .4s, box-shadow .4s; }
.acc[open] { border-left-color: var(--orange); box-shadow: 0 20px 40px -26px rgba(16,41,58,.55); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 1.5rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.28rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15;
  color: var(--slate-900);
}
.acc summary::-webkit-details-marker { display: none; }
.acc__icon { flex: none; width: 38px; height: 33px; display: grid; place-items: center; clip-path: var(--hex); background: var(--paper-2); color: var(--slate-900); transition: background .35s, color .35s, transform .5s var(--ease-out); }
.acc[open] .acc__icon { background: var(--orange); color: #fff; transform: rotate(135deg); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 1.5rem 1.4rem; color: var(--text-dark-dim); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background: linear-gradient(120deg, var(--orange-deep), var(--orange) 45%, #ff8a4c);
  color: #fff;
}
.cta__stripes {
  position: absolute; inset: -50%; z-index: -1; opacity: .12;
  background: repeating-linear-gradient(-45deg, #000 0 18px, transparent 18px 40px);
  animation: stripes 30s linear infinite;
}
@keyframes stripes { to { transform: translate(56px, 0); } }
.cta__mark { position: absolute; z-index: -1; right: -4%; top: 50%; width: min(46vw, 560px); transform: translateY(-50%) rotate(-8deg); opacity: .5; mix-blend-mode: soft-light; animation: cta-float 10s ease-in-out infinite alternate; }
@keyframes cta-float { to { transform: translateY(-55%) rotate(4deg) scale(1.05); } }
.cta__inner { display: grid; gap: 2.4rem; }
.cta__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .92; text-transform: uppercase; max-width: 15ch; }
.cta__title em { color: var(--slate-900); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact {
  background:
    radial-gradient(ellipse 50% 50% at 0% 0%, rgba(242,97,37,.12), transparent 60%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(71,96,110,.4), transparent 60%),
    var(--slate-950);
}
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact__info .h2 { margin-bottom: 1.3rem; }
.contact__lead { color: var(--text-dim); margin-bottom: 2.2rem; max-width: 28rem; }
.contact__cards { display: grid; gap: .8rem; }
.ccard {
  position: relative;
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.3rem 1.1rem 1.1rem;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  overflow: hidden;
  transition: background .4s, transform .5s var(--ease-out);
}
.ccard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transition: transform .5s var(--ease-out); }
.ccard:hover { background: rgba(255,255,255,.08); transform: translateX(6px); }
.ccard:hover::before { transform: scaleY(1); }
.ccard__icon { flex: none; width: 52px; height: 45px; display: grid; place-items: center; clip-path: var(--hex); background: rgba(242,97,37,.14); color: var(--orange); transition: background .4s, color .4s; }
.ccard:hover .ccard__icon { background: var(--orange); color: #fff; }
.ccard__body small { display: block; font-family: var(--f-tech); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: .15rem; }
.ccard__body b { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; word-break: break-word; }
.ccard__arrow { margin-left: auto; color: var(--slate-500); transition: color .4s, transform .5s var(--ease-out); }
.ccard:hover .ccard__arrow { color: var(--orange); transform: translateX(4px) rotate(-45deg); }

.form {
  position: relative;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  background: linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -40px rgba(0,0,0,.6);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  backdrop-filter: blur(6px);
}
.form::after { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--orange) 50%, transparent calc(50% + 1px)); }
.form__head { margin-bottom: 1.8rem; }
.form__head h3 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; margin-bottom: .4rem; }
.form__head p { color: var(--steel); font-size: .92rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 1.45rem 1rem .6rem;
  font: inherit; font-size: 1rem; color: #fff;
  background: rgba(7,25,35,.5);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { cursor: pointer; padding-right: 2.6rem; }
.field select option { background: var(--slate-900); color: #fff; }
.field--select::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 9px; height: 9px; margin-top: -2px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: translateY(-50%) rotate(45deg); pointer-events: none;
}
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  color: var(--steel); font-size: 1rem; pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); background: rgba(7,25,35,.75); box-shadow: 0 0 0 4px rgba(242,97,37,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-.62rem) scale(.74); color: var(--orange); }
.field__error { display: none; margin-top: .35rem; font-size: .82rem; color: #FF8A80; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF6E6E; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.form__note { margin-top: 1rem; font-size: .92rem; color: var(--mist); min-height: 1.4em; }
.form__note.is-ok { color: #8BE3A6; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; background: var(--ink); color: var(--text-dim); padding-top: clamp(4rem, 8vw, 6rem); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; position: relative; z-index: 1; }
.footer__brand img { width: 210px; margin-bottom: 1.3rem; }
.footer__brand p { max-width: 22rem; font-size: .98rem; }
.footer__col h4 { font-family: var(--f-tech); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.2rem; font-weight: 400; }
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a { font-size: .98rem; transition: color .3s; display: inline-flex; align-items: center; gap: .6rem; }
.footer__col a:hover { color: #fff; }
.footer__contact .ico { color: var(--orange); }
.footer__bigword {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(6rem, 25vw, 22rem); line-height: .78; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
  margin-top: 3rem; letter-spacing: .02em; user-select: none;
  background: linear-gradient(90deg, transparent, rgba(242,97,37,.35), transparent) no-repeat;
  background-size: 30% 100%; background-position: var(--bx, -40%) 0;
  -webkit-background-clip: text; background-clip: text;
}
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .88rem; position: relative; z-index: 1; }

/* ==========================================================================
   FLOTANTES
   ========================================================================== */
.fab-wa {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 80;
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(242,97,37,.7);
  transition: transform .4s var(--ease-out);
}
.fab-wa .ico { width: 28px; height: 28px; stroke-width: 1.8; }
.fab-wa::before, .fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: ring 2.4s ease-out infinite; }
.fab-wa::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.fab-wa:hover { transform: scale(1.08) rotate(-6deg); }
.fab-wa__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(10px, -50%); opacity: 0;
  padding: .5rem .85rem; white-space: nowrap; border-radius: 4px;
  background: #fff; color: var(--slate-900); font-weight: 600; font-size: .9rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
  transition: opacity .35s, transform .45s var(--ease-out);
  pointer-events: none;
}
.fab-wa:hover .fab-wa__tip, .fab-wa.show-tip .fab-wa__tip { opacity: 1; transform: translate(0, -50%); }

.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: calc(clamp(16px, 2.5vw, 28px) + 74px); z-index: 80;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(10,33,48,.85); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 24px -10px rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.to-top:hover .to-top__ring circle { stroke: #fff; }

/* ==========================================================================
   ANIMACIONES DE ENTRADA
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal] { transform: translateY(60px) perspective(900px) rotateX(12deg); }
.js .card[data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity 1s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .card[data-reveal].is-in.tilt-live { transition: opacity 1s, transform .15s linear; transition-delay: 0s; }
.js .ind[data-reveal] { transform: scale(.4) rotate(-30deg); }
.js .ind[data-reveal].is-in { transform: none; transition: opacity .8s var(--ease-out), transform 1s var(--ease-out), background .4s; transition-delay: calc(var(--i, 0) * 70ms); }
.js .ind[data-reveal].is-in:hover { transform: translateY(-8px) scale(1.04); transition-delay: 0s; }

/* Texto dividido por palabras */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split] .wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(105%) rotate(4deg); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms); }
.js [data-split].is-in .wi { transform: none; }

/* Mostrar todo si falla el JS */
.reveal-all [data-reveal], .reveal-all [data-hero-in], .reveal-all [data-split] .wi { opacity: 1 !important; transform: none !important; }
.reveal-all .preloader { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { margin-left: auto; }
  .burger { margin-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .honey { --n: 4; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 5.5rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .cnc { max-width: 520px; margin-inline: auto; }
  .scroll-cue { display: none; }
  .about__grid, .caps__grid, .pains__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { order: 2; }
  .honeycomb { max-width: 480px; }
  .section-head--split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .pains__sticky, .faq__aside { position: static; }

  /* Proceso: lista vertical */
  .process__sticky { position: relative; height: auto; overflow: visible; padding: clamp(5rem, 11vw, 9rem) 0; }
  .process__head { align-items: flex-start; }
  .process__counter, .process__rail { display: none; }
  .process__track { flex-direction: column; padding-inline: var(--gutter); transform: none !important; }
  .step { width: 100%; min-height: 0; }
  .step__num { font-size: 4.2rem; }
  .step h3 { padding-top: 1.4rem; }
  .step p { min-height: 0; }
  .process__bgword { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header__cta span { display: none; }
  .header__cta { padding: .75rem; }
  .header__cta .ico { width: 1.3em; height: 1.3em; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__chips { gap: .6rem 1.1rem; }
  .cnc__hud { font-size: .5rem; padding: .75rem .8rem; }
  .cards { grid-template-columns: 1fr; }
  .honey { --n: 2; --g: 10px; --w: min(200px, calc((100vw - var(--gutter) * 2 - var(--g)) / 1.75)); }
  .tabs__btn { padding: .55rem 1rem; }
  .form__grid { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .caps__tab { flex: 1 1 100%; }
  .gauge__ticks span:nth-child(even) { display: none; }
  .stat { padding: 1.5rem 1.1rem; }
  .stat__label { font-size: .86rem; }
  .pain { padding: 1.4rem 1.2rem; gap: .9rem; }
  .fab-wa__tip { display: none; }
}

@media (hover: none) {
  .card { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-hero-in], .js [data-split] .wi { opacity: 1; transform: none; }
}
