/* ==========================================================================
   HERDWYSE — styles.css
   1. Tokens · 2. Base · 3. Utilidades · 4. Botones · 5. Nav · 6. Hero
   7. Servicios · 8. Enfoque · 9. Proceso · 10. Filosofía · 11. Nosotros
   12. Contacto · 13. Footer · 14. Legal · 15. Movimiento · 16. Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #08090B;
  --ink-2: #0D0F12;
  --panel: #15171B;
  --paper: #F4F3EF;
  --metal: #92969E;
  --metal-dim: #5C6068;
  --accent: #C6F36A;
  --accent-ink: #0B0D06;
  --line: rgba(244, 243, 239, .08);
  --line-2: rgba(244, 243, 239, .16);
  --danger: #FF8F7D;

  --sans: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 13vw, 200px);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* Grano sutil sobre toda la página */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico, .card__ico, .logo__mark { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 18px; height: 18px; flex: none; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 500; transition: top .2s; }
.skip:focus { top: 16px; }

/* 3. UTILIDADES ------------------------------------------------------------ */
.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

.tag {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.4; letter-spacing: .14em;
  text-transform: uppercase; color: var(--metal); display: flex; align-items: center; gap: 12px;
}
.tag b { font-weight: 500; color: var(--accent); }
.tag b::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); margin-left: 12px; vertical-align: middle; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(198, 243, 106, .14); flex: none; }

.display {
  font-size: clamp(40px, 6.6vw, 108px); line-height: .98; letter-spacing: -.045em; font-weight: 500;
  text-wrap: balance;
}
.display--xl { font-size: clamp(44px, 7.4vw, 124px); }
.mute { color: var(--metal-dim); }
.accent { color: var(--accent); }
.title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--metal); max-width: 34em; text-wrap: pretty; }
.body { color: var(--metal); max-width: 32em; text-wrap: pretty; }

.head { display: grid; gap: 28px; margin-bottom: clamp(56px, 8vw, 120px); }
.head--split { grid-template-columns: 1.5fr 1fr; align-items: end; gap: clamp(32px, 6vw, 96px); }
.head--split > div { display: grid; gap: 28px; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; padding-bottom: 6px; position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); }
.link::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); z-index: 1; }
.link:hover::before { transform: scaleX(1); }
.link .ico { transition: transform .4s var(--ease-out); }
.link:hover .ico { transform: translate(3px, -3px); color: var(--accent); }

/* 4. BOTONES --------------------------------------------------------------- */
.btn {
  --tx: 0px; --ty: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transform: translate(var(--tx), var(--ty)); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), background-color .3s, border-color .3s, color .3s, box-shadow .4s;
}
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper);
  transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease-out);
}
.btn--accent:hover::before { transform: translateY(0); }
.btn--accent:hover { box-shadow: 0 10px 40px -12px rgba(198, 243, 106, .5); }
.btn--ghost { border-color: var(--line-2); color: var(--paper); background: rgba(244, 243, 239, .02); }
.btn--ghost:hover { border-color: rgba(244, 243, 239, .4); background: rgba(244, 243, 239, .07); }
.btn .ico { transition: transform .45s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translate(var(--tx), var(--ty)) scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 5. NAV ------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(8, 9, 11, .72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.nav__inner { max-width: 1480px; margin-inline: auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 32px; transition: padding .4s var(--ease); }
.nav.is-scrolled .nav__inner { padding-block: 12px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .14em; font-size: 14px; }
.logo__mark { width: 22px; height: 22px; stroke-width: 2; color: var(--paper); transition: transform .6s var(--ease-out); }
.logo__mark circle { fill: var(--accent); stroke: none; }
.logo:hover .logo__mark { transform: rotate(90deg); }

.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 14px; color: var(--metal); border-radius: 999px; transition: color .3s, background-color .3s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--paper); }
.nav__links a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.nav__toggle i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--paper); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav__toggle i:first-child { top: 17px; } .nav__toggle i:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity .35s; }
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(38px, 11vw, 64px); letter-spacing: -.04em; font-weight: 500; line-height: 1.25; border-bottom: 1px solid var(--line); padding: 8px 0; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu nav a:nth-child(2) { transition-delay: .05s; } .menu nav a:nth-child(3) { transition-delay: .1s; }
.menu nav a:nth-child(4) { transition-delay: .15s; } .menu nav a:nth-child(5) { transition-delay: .2s; }
.menu nav small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.menu__foot { display: grid; gap: 18px; justify-items: start; }
.menu__mail { color: var(--metal); font-size: 15px; }

/* 6. HERO ------------------------------------------------------------------ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 clamp(40px, 6vh, 72px); overflow: hidden; isolation: isolate; }
.hero__glow { position: absolute; inset: -10% -10% 0 -10%; z-index: -3; background:
  radial-gradient(52% 46% at 74% 34%, rgba(198, 243, 106, .13), transparent 70%),
  radial-gradient(40% 40% at 16% 8%, rgba(120, 150, 255, .08), transparent 70%),
  radial-gradient(60% 50% at 50% 110%, rgba(198, 243, 106, .05), transparent 70%); }
.hero__grid { position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 62% at 70% 36%, #000 0%, transparent 78%); mask-image: radial-gradient(70% 62% at 70% 36%, #000 0%, transparent 78%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; animation: fade 1.8s var(--ease) 1.3s forwards; }
.hero__content { position: relative; }
.hero__tag { margin-bottom: clamp(20px, 3.2vh, 40px); opacity: 0; animation: rise 1s var(--ease-out) 1.45s forwards; }

.hero__title {
  font-size: clamp(44px, min(13.4vw, 16.5vh), 212px); line-height: .87; letter-spacing: -.058em; font-weight: 500;
  margin-left: -.04em; text-shadow: 0 0 80px rgba(8, 9, 11, .6);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.25s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: 1.5s; }
.hero__title .line:nth-child(2) > span { animation-delay: 1.6s; }
.hero__title .line:nth-child(3) > span { animation-delay: 1.7s; }
.hero__title em { font-style: normal; color: var(--accent); }

.hero__bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 110px); align-items: end; margin-top: clamp(28px, 5vh, 56px); padding-top: clamp(22px, 3vh, 32px); border-top: 1px solid var(--line); opacity: 0; animation: rise 1.1s var(--ease-out) 2.05s forwards; }
.hero__sub { font-size: clamp(19px, 1.9vw, 28px); line-height: 1.32; letter-spacing: -.02em; max-width: 26em; text-wrap: balance; }
.hero__side { display: grid; gap: 24px; }
.hero__note { color: var(--metal); font-size: 15.5px; max-width: 30em; }
.hero__actions, .contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta { position: absolute; right: var(--gutter); top: 50%; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--metal-dim); transform: rotate(90deg) translateX(50%); transform-origin: right center; opacity: 0; animation: fade 1s 2.4s forwards; }
.hero__meta i { width: 64px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__meta i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scan 2.4s var(--ease) infinite; }

/* Splash: se oculta por CSS sin depender de JS */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; animation: splashOut .7s var(--ease) 1.25s forwards; }
.splash__inner { display: grid; gap: 18px; justify-items: center; }
.splash__word { font-weight: 600; letter-spacing: .42em; font-size: 13px; padding-left: .42em; animation: fade .6s both; }
.splash__bar { width: 140px; height: 1px; background: var(--line-2); overflow: hidden; }
.splash__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: load 1.15s var(--ease) both; }
.splash.is-gone { display: none; }

/* 7. SERVICIOS ------------------------------------------------------------- */
.services { border-top: 1px solid var(--line); }
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.area--b { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.area--b .area__intro { order: 2; }
.area__intro { position: sticky; top: 120px; align-self: start; display: grid; gap: 24px; justify-items: start; }
.area__idx { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--metal); }
.area__idx b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent); font-weight: 500; font-size: 13px; letter-spacing: 0; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 0 12px;
  min-height: 232px; padding: 26px 26px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(244, 243, 239, .035), rgba(244, 243, 239, .012));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .6s var(--ease-out), background-color .4s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(198, 243, 106, .11), transparent 62%); }
.card::after { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__ico { width: 30px; height: 30px; stroke-width: 1.25; color: var(--paper); transition: color .4s, transform .6s var(--ease-out); }
.card:hover .card__ico { color: var(--accent); transform: translateY(-2px); }
.card__n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--metal-dim); }
.card h4 { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 64px); font-size: 19px; line-height: 1.22; letter-spacing: -.02em; font-weight: 500; text-wrap: balance; }
.card p { grid-column: 1 / -1; margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--metal); }
.card--wide { grid-column: 1 / -1; min-height: 0; }
.card--wide h4 { margin-top: 36px; font-size: 22px; }
.card--wide p { max-width: 38em; }

/* Manual → Automatizado */
.shift { margin-top: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(80% 120% at 100% 0%, rgba(198, 243, 106, .05), transparent 60%), var(--ink-2); }
.shift__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.shift__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: stretch; }
.shift__arrow { align-self: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.panel { border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line); }
.panel__label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: var(--metal); }
.panel__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--metal-dim); }
.panel__foot { margin-top: auto; font-size: 14px; color: var(--metal); padding-top: 18px; border-top: 1px solid var(--line); }

.panel--manual { background: rgba(244, 243, 239, .015); border-style: dashed; border-color: var(--line-2); }
.steps { display: grid; gap: 10px; }
.steps li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 14.5px; color: var(--metal); }
.steps li:nth-child(1) { transform: rotate(-.5deg) translateX(-2px); }
.steps li:nth-child(2) { transform: rotate(.7deg) translateX(8px); }
.steps li:nth-child(3) { transform: rotate(-.3deg) translateX(-5px); }
.steps li:nth-child(4) { transform: rotate(.5deg) translateX(10px); }
.steps li:nth-child(5) { transform: rotate(-.8deg) translateX(2px); }
.steps em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--metal-dim); white-space: nowrap; }

.panel--auto { background: linear-gradient(180deg, rgba(198, 243, 106, .06), rgba(198, 243, 106, .01)); border-color: rgba(198, 243, 106, .22); }
.panel--auto .panel__label { color: var(--accent); }
.panel--auto .panel__label i { background: var(--accent); box-shadow: 0 0 0 4px rgba(198, 243, 106, .16); }
.pipe { position: relative; display: grid; gap: 10px; padding-left: 28px; }
.pipe::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 1px; background: rgba(198, 243, 106, .28); }
.pipe::after { content: ""; position: absolute; left: 2px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 3px rgba(198, 243, 106, .7); animation: travel 4.5s cubic-bezier(.6, 0, .4, 1) infinite; }
.pipe li { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 13px 16px; border-radius: 10px; background: rgba(8, 9, 11, .5); border: 1px solid rgba(198, 243, 106, .14); font-size: 14.5px; }
.pipe li::before { content: ""; position: absolute; left: -27px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--accent); }
.pipe b { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); min-width: 88px; }

/* 8. ENFOQUE --------------------------------------------------------------- */
.diff { background: var(--ink-2); border-block: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.pillar { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); display: grid; gap: 18px; align-content: start; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
.pillar:hover::before, .pillar.is-in::before { transform: scaleX(.22); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__n { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.pillar h3 { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.02em; line-height: 1.1; font-weight: 500; margin-top: clamp(40px, 6vw, 96px); }
.pillar p { color: var(--metal); max-width: 26em; }

/* 9. PROCESO --------------------------------------------------------------- */
.track { --p: 1; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); padding-top: 56px; }
.track::before, .track::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.track::after { background: var(--accent); transform: scaleX(var(--p)); transform-origin: left; box-shadow: 0 0 16px rgba(198, 243, 106, .6); }
.stage { position: relative; display: grid; gap: 14px; align-content: start; }
.stage__node { position: absolute; left: 0; top: -56px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 1px solid var(--metal-dim); z-index: 1; transition: background-color .5s, border-color .5s, box-shadow .5s; }
.stage__n { font-size: clamp(72px, 9vw, 148px); line-height: .9; letter-spacing: -.06em; font-weight: 500; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color .7s var(--ease), -webkit-text-stroke-color .7s; }
.stage h3 { font-size: 15px; letter-spacing: .14em; font-weight: 500; margin-top: 18px; transition: color .5s; color: var(--metal); }
.stage p { color: var(--metal); font-size: 16px; max-width: 22em; opacity: .55; transition: opacity .6s; }
.stage.is-on .stage__node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(198, 243, 106, .14); }
.stage.is-on .stage__n { color: var(--paper); -webkit-text-stroke-color: transparent; }
.stage.is-on h3 { color: var(--accent); }
.stage.is-on p { opacity: 1; }
html:not(.js) .stage .stage__n { color: var(--paper); -webkit-text-stroke-color: transparent; }
html:not(.js) .stage p { opacity: 1; }

/* 10. FILOSOFÍA ------------------------------------------------------------ */
.philo { position: relative; padding-block: clamp(120px, 20vw, 300px); overflow: hidden; border-top: 1px solid var(--line); isolation: isolate; }
.philo__glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: 110vw; height: 80vw; max-height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(198, 243, 106, .09), transparent 70%); }
.philo__quote { margin-top: 36px; font-size: clamp(40px, 9.4vw, 168px); line-height: .92; letter-spacing: -.055em; font-weight: 500; text-wrap: balance; }
.philo__quote .w { display: inline-block; opacity: .13; transition: opacity .5s var(--ease), color .5s; }
.philo__quote .w.is-lit { opacity: 1; }
.philo__quote .w.is-key.is-lit { color: var(--accent); }
.philo__text { margin-top: clamp(48px, 7vw, 96px); margin-left: auto; max-width: 560px; display: grid; gap: 18px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--metal); }
.philo__text p:first-child { color: var(--paper); }

/* 11. NOSOTROS ------------------------------------------------------------- */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 130px); }
.about__left { display: grid; gap: 28px; align-content: start; }
.about__list { margin-top: clamp(24px, 4vw, 64px); display: grid; max-width: 440px; }
.about__list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.about__list li:last-child { border-bottom: 1px solid var(--line); }
.about__list li::before { content: "+"; font-family: var(--mono); color: var(--accent); }
.about__list i { flex: 1; }
.about__text { display: grid; gap: 22px; align-content: start; color: var(--metal); font-size: 18px; line-height: 1.6; padding-top: clamp(0px, 3vw, 44px); }
.about__first { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.22; letter-spacing: -.03em; color: var(--paper); margin-bottom: 12px; text-wrap: balance; }

/* 12. CONTACTO ------------------------------------------------------------- */
.contact { border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.contact__glow { position: absolute; z-index: -1; left: -20%; bottom: -40%; width: 90vw; height: 90vw; max-width: 1200px; max-height: 1200px; background: radial-gradient(closest-side, rgba(198, 243, 106, .1), transparent 70%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact__left { display: grid; gap: 28px; justify-items: start; position: sticky; top: 120px; }
.contact__mail { margin-top: 12px; font-size: clamp(16px, 1.5vw, 20px); color: var(--metal); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color .3s, border-color .3s; word-break: break-all; }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }

.form { display: grid; gap: 26px; padding: clamp(24px, 3.2vw, 48px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(244, 243, 239, .04), rgba(244, 243, 239, .012)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--metal); display: flex; gap: 8px; align-items: baseline; }
.field label small { font-size: 10px; color: var(--metal-dim); letter-spacing: .08em; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 10px 0 12px; font-size: 17px; color: var(--paper); outline: none; transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2392969E' stroke-width='1.5'%3E%3Cpath d='M1 1.500l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { background: var(--panel); color: var(--paper); }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: rgba(244, 243, 239, .4); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: var(--danger); box-shadow: 0 1px 0 0 var(--danger); }
.field__err { font-size: 13px; color: var(--danger); min-height: 0; }
.field__err:empty { display: none; }
.checks { display: grid; gap: 16px; padding-top: 4px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; align-items: start; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s var(--ease-out); }
.check input:hover { border-color: rgba(244, 243, 239, .5); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input[aria-invalid="true"] { border-color: var(--danger); }
.check label { font-size: 14.5px; line-height: 1.45; color: var(--paper); cursor: pointer; }
.check a { grid-column: 2; font-size: 13.5px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.check .field__err { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__legal { font-size: 12.5px; line-height: 1.5; color: var(--metal-dim); max-width: 34em; flex: 1 1 260px; }
.form__legal strong { color: var(--metal); font-weight: 500; }
.form__legal a { color: var(--metal); text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 15px; line-height: 1.5; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); }
.form__status:empty { display: none; }
.form__status.is-ok { border-color: rgba(198, 243, 106, .4); background: rgba(198, 243, 106, .07); color: var(--accent); }
.form__status.is-err { border-color: rgba(255, 143, 125, .4); background: rgba(255, 143, 125, .06); color: var(--danger); }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }

/* 13. FOOTER --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.footer__line { margin-top: 18px; color: var(--metal); font-size: 15px; }
.footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; justify-content: space-between; }
.footer__nav div { display: grid; gap: 10px; align-content: start; }
.footer__nav .tag { margin-bottom: 8px; color: var(--metal-dim); }
.footer__nav a { font-size: 15px; color: var(--metal); transition: color .3s; width: fit-content; }
.footer__nav a:hover, .footer__bottom a:hover { color: var(--paper); }
.footer__nav .social { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; }
.footer__nav a:not(.social) + .social { margin-top: 10px; }
.footer__nav .social .ico { transition: color .3s, transform .4s var(--ease-out); }
.footer__nav .social[href]:hover .ico { color: var(--accent); transform: translateY(-1px); }
.footer__nav .social:not([href]) { cursor: default; }
.footer__nav .social:not([href]):hover { color: var(--metal); }
.footer__word { margin-top: clamp(48px, 7vw, 110px); font-size: 20.5vw; line-height: .76; letter-spacing: -.05em; font-weight: 600; text-align: center; white-space: nowrap; margin-inline: -4vw; color: transparent; -webkit-text-stroke: 1px rgba(244, 243, 239, .14); background: linear-gradient(180deg, rgba(244, 243, 239, .09), transparent 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--metal-dim); position: relative; background: var(--ink); }
.footer__bottom a { transition: color .3s; }

/* 14. PÁGINAS LEGALES Y AVISO DE COOKIES ----------------------------------- */
.legal { max-width: 820px; margin-inline: auto; padding: 160px var(--gutter) 120px; }
.legal h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; font-weight: 500; margin: 24px 0 16px; }
.legal__date { color: var(--metal-dim); font-size: 14px; margin-bottom: 56px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; font-weight: 500; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--metal); margin-bottom: 14px; }
.legal ul { list-style: none; }
.legal li { padding-left: 20px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent); }
.legal a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--paper); font-weight: 500; }
.legal mark { background: rgba(198, 243, 106, .14); color: var(--accent); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: .85em; }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 520px; margin-left: auto; padding: 20px; border-radius: 16px; background: rgba(21, 23, 27, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-2); display: grid; gap: 14px; font-size: 14px; color: var(--metal); }
.consent a { color: var(--paper); text-decoration: underline; }
.consent div { display: flex; gap: 10px; flex-wrap: wrap; }

/* 15. MOVIMIENTO ----------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in { transition: opacity 1s var(--ease-out) var(--d, 0s), transform .6s var(--ease-out), border-color .4s; }
.reveal[data-split] { opacity: 1; transform: none; }

@keyframes lineUp { to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes travel { 0% { top: 14px; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 21px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__meta i::after, .pipe::after { animation: none; }
  .js .reveal { transform: none; transition-duration: .5s; }
}

/* 16. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .area, .area--b { grid-template-columns: 1fr; }
  .area--b .area__intro { order: 0; }
  .area__intro, .contact__left { position: static; }
  .head--split, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__meta { display: none; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__bottom { grid-template-columns: 1fr; gap: 20px; }
  .shift__grid { grid-template-columns: 1fr; }
  .shift__arrow { justify-self: center; transform: rotate(90deg); }
  .pillars { grid-template-columns: 1fr; gap: 40px; }
  .pillar h3 { margin-top: 20px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; }

  /* Proceso en vertical */
  .track { grid-template-columns: 1fr; gap: 48px; padding-top: 0; padding-left: 44px; }
  .track::before, .track::after { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .track::after { transform: scaleY(var(--p)); transform-origin: top; }
  .stage__node { left: -44px; top: 8px; }
  .stage__n { font-size: 88px; }
  .stage h3 { margin-top: 6px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 104px; }
  .hero__title { font-size: clamp(44px, 14.6vw, 96px); line-height: .9; }
  .hero__tag { font-size: 9.5px; letter-spacing: .1em; gap: 8px; }
  .hero__grid { background-size: 56px 56px; -webkit-mask-image: radial-gradient(90% 46% at 50% 30%, #000, transparent 80%); mask-image: radial-gradient(90% 46% at 50% 30%, #000, transparent 80%); }
  .hero__actions .btn, .contact__actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h4 { margin-top: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .steps li { transform: none !important; }
  .steps em { display: none; }
  .pipe li { flex-direction: column; gap: 4px; }
  .footer__nav { grid-template-columns: 1fr; gap: 32px; }
  .philo__text { margin-left: 0; }
}
