/* =========================================================
   LOUD BRAND — Sistema de diseño
   Un solo archivo de estilos para todo el sitio.
   Tema oscuro por defecto; tema claro con [data-theme="light"].
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta de marca (no cambia entre temas) */
  --lb-black: #050505;
  --lb-carbon: #101014;
  --lb-white: #ffffff;
  --lb-gray-light: #F1F1F4;
  --lb-gray: #A4A4AE;
  --lb-blue: #315CFF;
  --lb-violet: #7547FF;
  --lb-magenta: #D82E80;
  --lb-coral: #F3294F;
  --lb-grad: linear-gradient(100deg, var(--lb-blue) 0%, var(--lb-violet) 38%, var(--lb-magenta) 70%, var(--lb-coral) 100%);

  /* Tema oscuro (predeterminado) */
  --bg: var(--lb-black);
  --bg-2: var(--lb-carbon);
  --bg-3: #17171d;
  --fg: var(--lb-white);
  --fg-2: var(--lb-gray);
  --fg-3: #6f6f79;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .28);
  --btn-bg: var(--lb-white);
  --btn-fg: var(--lb-black);
  --header-bg: rgba(5, 5, 5, .72);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --glow-opacity: .55;
  color-scheme: dark;

  /* Tipografía */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-mega: clamp(2.9rem, 10.5vw, 9.5rem);
  --fs-display: clamp(2.4rem, 7vw, 6rem);
  --fs-h1: clamp(2.2rem, 5.6vw, 4.6rem);
  --fs-h2: clamp(1.8rem, 4vw, 3.2rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.75rem);
  --fs-lead: clamp(1.08rem, 1.6vw, 1.35rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-xs: .75rem;

  /* Espaciado y forma */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --section: clamp(80px, 12vw, 168px);
  --radius-s: 6px;
  --radius: 14px;
  --radius-l: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="light"] {
  --bg: var(--lb-white);
  --bg-2: var(--lb-gray-light);
  --bg-3: #e6e6ec;
  --fg: var(--lb-black);
  --fg-2: #4f4f5a;          /* gris oscurecido para cumplir contraste AA sobre blanco */
  --fg-3: #74747f;
  --line: rgba(5, 5, 5, .12);
  --line-strong: rgba(5, 5, 5, .3);
  --btn-bg: var(--lb-black);
  --btn-fg: var(--lb-white);
  --header-bg: rgba(255, 255, 255, .78);
  --shadow: 0 30px 80px -40px rgba(20, 20, 40, .35);
  --glow-opacity: .28;
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: .98; letter-spacing: -.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lb-violet); color: #fff; }

:focus-visible { outline: 2px solid var(--lb-blue); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--alt { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }

/* ---------- 4. Tipografía ---------- */
.display, .h1, .h2, .mega {
  font-stretch: 118%;
  text-transform: uppercase;
  font-weight: 850;
}
.mega { font-size: var(--fs-mega); line-height: .9; letter-spacing: -.035em; }
.display { font-size: var(--fs-display); line-height: .92; letter-spacing: -.03em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-weight: 750; line-height: 1.1; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-2); max-width: 46ch; }
.muted { color: var(--fg-2); }
.small { font-size: var(--fs-small); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--lb-grad); border-radius: 2px;
}

.grad-text {
  background: var(--lb-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}

/* ---------- 5. Botones ---------- */
.btn {
  --pad-x: 26px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 var(--pad-x);
  border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ease-out), color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn .btn-arrow { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px) rotate(-45deg); }
.btn:active { transform: scale(.97); }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lb-grad);
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn--primary:hover { color: #fff; }
.btn--primary:hover::before { transform: translateY(0); }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }

.btn--lg { min-height: 64px; --pad-x: 34px; font-size: 1.05rem; }
.btn--sm { min-height: 42px; --pad-x: 18px; font-size: .85rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  background-image: var(--lb-grad); background-repeat: no-repeat;
  background-size: 0% 2px; background-position: 0 100%;
  padding-bottom: 2px; transition: background-size .45s var(--ease-out);
}
.text-link:hover { background-size: 100% 2px; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- 6. Header y navegación ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--lb-grad); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 120; pointer-events: none;
}

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; height: 44px; }
.brand-logo { height: 46px; width: auto; object-fit: contain; margin-left: -5px; }
.brand-fallback {
  display: none; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; font-size: 1.15rem; line-height: 1;
}
.brand-fallback small { display: block; font-size: .55rem; letter-spacing: .3em; font-weight: 600; color: var(--fg-2); margin-top: 3px; }
.brand.no-logo .brand-logo { display: none; }
.brand.no-logo .brand-fallback { display: block; }
/* Si el logo tiene fondo negro, en tema claro se presenta como "placa" negra para respetarlo */
:root[data-theme="light"] .brand-logo.is-dark-bg { background: var(--lb-black); padding: 6px 10px; border-radius: 8px; height: 44px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--fg-2);
  transition: color .25s, background-color .25s;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { color: var(--fg); }
.nav-link[aria-current="page"]::after, .nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--lb-grad);
}
.nav-mega { display: flex; align-items: center; }
.nav-mega .nav-link:first-child { padding-right: 4px; }
.nav-mega .has-mega { padding: 10px 10px 10px 4px; }
.nav-mega .has-mega:hover { color: var(--fg); }
.nav-link svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.has-mega[aria-expanded="true"] svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  transition: border-color .3s, background-color .3s, color .3s;
}
.lang-switch:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.lang-switch--mm { display: inline-flex; justify-self: start; height: 40px; font-size: .85rem; letter-spacing: .02em; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: border-color .3s, transform .5s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--line-strong); transform: rotate(25deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* Mega menú de servicios */
.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s .3s;
}
.mega-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; padding-block: 40px 48px; }
.mega-intro h2 { font-size: 2rem; font-stretch: 118%; text-transform: uppercase; margin: 14px 0 12px; }
.mega-intro p { color: var(--fg-2); font-size: .95rem; max-width: 30ch; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mega-item {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--bg);
  transition: background-color .3s;
}
.mega-item:hover, .mega-item:focus-visible { background: var(--bg-2); }
.mega-item .num { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--fg-3); }
.mega-item strong { font-size: 1.02rem; line-height: 1.2; }
.mega-item .glyph { width: 34px; height: 34px; color: var(--fg-2); transition: color .3s, transform .5s var(--ease-out); }
.mega-item:hover .glyph { color: var(--fg); transform: translateY(-3px); }
.mega-item::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--lb-grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out);
}
.mega-item:hover::after { transform: scaleX(1); }


.mega-item--all { background: var(--bg-2); justify-content: space-between; }
.mega-item--all .text-link { font-size: .85rem; color: var(--fg-2); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: 100px var(--gutter) 40px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu nav a { display: block; padding: 10px 0; font-size: clamp(1.7rem, 8vw, 2.6rem); font-weight: 850; font-stretch: 115%; text-transform: uppercase; line-height: 1.05; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current="page"] { color: transparent; background: var(--lb-grad); -webkit-background-clip: text; background-clip: text; }
.mobile-menu .sub { display: grid; gap: 2px; padding: 6px 0 12px 0; }
.mobile-menu .sub a { font-size: 1rem; font-weight: 600; font-stretch: 100%; text-transform: none; color: var(--fg-2); border: 0; padding: 7px 0; }
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 14px; color: var(--fg-2); font-size: .95rem; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: 170px; padding-bottom: clamp(48px, 8vh, 96px); overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.6rem, min(9.4vw, 13.5vh), 8.6rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line--accent > span { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.hero-bottom { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-top: clamp(28px, 4vw, 48px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { position: absolute; top: 108px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; z-index: 2; }
.hero-meta span { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }

.hero-art {
  position: absolute; z-index: 1; pointer-events: none;
  right: max(-14vw, -200px); top: 50%; width: min(66vw, 800px); aspect-ratio: 1;
  transform: translateY(-58%);
}
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-glow {
  position: absolute; z-index: 0; width: 60vw; height: 60vw; right: -10vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(117, 71, 255, .35), rgba(216, 46, 128, .15) 50%, transparent 72%);
  opacity: var(--glow-opacity); filter: blur(20px); pointer-events: none;
}
.art-layer { transition: transform .9s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.waves path { fill: none; stroke: url(#lbGrad); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: wave 3.6s var(--ease) infinite; }
.waves path:nth-child(2) { animation-delay: .5s; }
.waves path:nth-child(3) { animation-delay: 1s; }
@keyframes wave { 0% { opacity: 0; } 25% { opacity: .9; } 70%, 100% { opacity: 0; } }
.tri { transform-box: fill-box; transform-origin: 100% 50%; animation: triIn 1.4s var(--ease-out) both; }
.tri--1 { animation-delay: .35s; } .tri--2 { animation-delay: .5s; } .tri--3 { animation-delay: .65s; }
@keyframes triIn { from { opacity: 0; transform: translateX(60px) scaleX(.6); } }
.ring { fill: none; stroke: url(#lbGrad); stroke-width: 1.2; opacity: .55; transform-box: fill-box; transform-origin: center; }
.ring--pulse { animation: ringPulse 5.5s var(--ease) infinite; }
.ring--pulse:nth-of-type(2) { animation-delay: 1.8s; }
.ring--pulse:nth-of-type(3) { animation-delay: 3.6s; }
@keyframes ringPulse {
  0% { transform: scale(.55); opacity: 0; }
  20% { opacity: .65; }
  100% { transform: scale(1.25); opacity: 0; }
}
.spin-slow { animation: spin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
.spin-rev { animation: spin 90s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--fg-3), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lb-grad); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- 8. Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 800; font-stretch: 118%; text-transform: uppercase; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; background: var(--lb-grad); transform: rotate(45deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Declaración ---------- */
.statement { font-size: clamp(1.9rem, 5vw, 4.4rem); font-weight: 800; font-stretch: 112%; line-height: 1.04; letter-spacing: -.025em; max-width: 20ch; }
.statement .w { display: inline-block; opacity: .16; transition: opacity .6s var(--ease); }
.statement .w.is-lit { opacity: 1; }
.statement .hl { background: var(--lb-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement-side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }

/* ---------- 10. Lista de servicios (Inicio) ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 70px 1.2fr 1fr 64px; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); isolation: isolate;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--bg-2); opacity: 0; transition: opacity .4s var(--ease);
}
.svc-row:hover::before, .svc-row:focus-visible::before { opacity: 1; }
.svc-row .num { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--fg-3); }
.svc-row h3 { font-size: clamp(1.5rem, 3.4vw, 2.8rem); font-stretch: 116%; text-transform: uppercase; font-weight: 850; transition: transform .5s var(--ease-out); }
.svc-row:hover h3 { transform: translateX(10px); }
.svc-row p { margin: 0; color: var(--fg-2); font-size: .98rem; max-width: 42ch; }
.svc-row .arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center;
  transition: background-color .4s, border-color .4s, transform .5s var(--ease-out);
}
.svc-row .arrow svg { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.svc-row:hover .arrow { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.svc-row:hover .arrow svg { transform: rotate(-45deg); }
.svc-glyph {
  position: absolute; right: 120px; top: 50%; width: 120px; height: 120px; margin-top: -60px;
  opacity: 0; transform: scale(.8) rotate(-8deg); transition: opacity .4s, transform .6s var(--ease-out); pointer-events: none; color: var(--fg);
}
.svc-row:hover .svc-glyph { opacity: .9; transform: none; }
.svc-glyph svg { width: 100%; height: 100%; }

/* ---------- 11. Contraste (el problema no es publicar más) ---------- */
.contrast-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contrast-row { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; gap: 20px; padding: clamp(20px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.contrast-row .from { font-size: clamp(1.3rem, 3vw, 2.4rem); font-weight: 800; font-stretch: 112%; color: var(--fg-3); position: relative; justify-self: start; }
.contrast-row .from::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 3px; background: var(--lb-coral);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease-out) .25s;
}
.contrast-row.is-in .from::after { transform: scaleX(1); }
.contrast-row .neq { font-size: 2rem; font-weight: 300; color: var(--fg-2); text-align: center; }
.contrast-row .to { font-size: clamp(1.3rem, 3vw, 2.4rem); font-weight: 800; font-stretch: 112%; }
.closing-line { font-size: clamp(1.6rem, 4vw, 3.4rem); font-weight: 850; font-stretch: 116%; text-transform: uppercase; line-height: 1; max-width: 22ch; }

/* ---------- 12. Necesidades ---------- */
.needs { display: flex; flex-wrap: wrap; gap: 12px; }
.need {
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 18px 24px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 700;
  overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s, transform .4s var(--ease-out);
}
.need::before { content: ""; position: absolute; inset: 0; background: var(--lb-grad); z-index: -1; opacity: 0; transition: opacity .35s; }
.need:hover, .need:focus-visible { color: #fff; border-color: transparent; transform: translateY(-3px); }
.need:hover::before, .need:focus-visible::before { opacity: 1; }
.need svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.need:hover svg { transform: translateX(4px); }
.need small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--fg-3); transition: color .35s; }
.need:hover small { color: rgba(255,255,255,.75); }

/* ---------- 13. Proyectos ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.project-card { display: flex; flex-direction: column; gap: 18px; }
.project-card:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.project-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--fg-2); font-size: var(--fs-small); }
.project-card h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); font-stretch: 112%; font-weight: 800; }
.tag { display: inline-flex; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--fg-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-badge { position: absolute; top: 14px; left: 14px; background: var(--lb-black); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }

.empty-state {
  position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 64px); overflow: hidden;
}
.empty-state h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-stretch: 114%; text-transform: uppercase; font-weight: 850; margin-bottom: 14px; }
.empty-state p { color: var(--fg-2); max-width: 46ch; }
.empty-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.empty-frames span { aspect-ratio: 3/4; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--bg-2), transparent); position: relative; overflow: hidden; }
.empty-frames span::after { content: ""; position: absolute; inset: auto 12px 12px 12px; height: 6px; border-radius: 6px; background: var(--line); }
.empty-frames span:nth-child(2) { transform: translateY(-16px); border-color: transparent; background: linear-gradient(160deg, rgba(49,92,255,.25), rgba(243,41,79,.12)); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--fg-2);
  transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.filter-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter-btn .count { opacity: .55; margin-left: 4px; font-size: .78rem; }
.projects-status { color: var(--fg-2); font-size: var(--fs-small); }

/* ---------- 14. Método ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-top: 48px; }
.process-line { position: absolute; top: 12px; left: 0; right: 0; height: 1px; background: var(--line); }
.process-line i { position: absolute; inset: 0; background: var(--lb-grad); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; height: 2px; top: -.5px; }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -42px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); transition: border-color .4s, background-color .4s, transform .4s var(--ease-out);
}
.step.is-on::before { border-color: transparent; background: var(--lb-violet); transform: scale(1.2); box-shadow: 0 0 0 6px rgba(117,71,255,.18); }
.step .num { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--fg-3); }
.step h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-stretch: 116%; text-transform: uppercase; font-weight: 850; margin: 10px 0 10px; }
.step p { color: var(--fg-2); font-size: .95rem; margin: 0; }

/* ---------- 15. CTA final ---------- */
.cta-final { position: relative; overflow: hidden; text-align: left; }
.cta-final .mega { max-width: 13ch; }
.cta-orb {
  position: absolute; right: -14vw; bottom: -30vw; width: 70vw; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--lb-blue), var(--lb-violet), var(--lb-magenta), var(--lb-coral), var(--lb-blue));
  filter: blur(80px); opacity: calc(var(--glow-opacity) * .7); pointer-events: none;
  animation: spin 40s linear infinite;
}
.cta-final .wrap { position: relative; z-index: 1; }

/* ---------- 16. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { color: var(--fg-2); max-width: 34ch; margin-top: 18px; font-size: .95rem; }
.footer-col h2 { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); font-weight: 700; margin-bottom: 18px; line-height: 1.4; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--fg-2); font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color: var(--fg); }
.footer-big { margin-top: clamp(48px, 8vw, 96px); font-size: clamp(2.2rem, 8.6vw, 9.4rem); font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--line-strong); user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .85rem; }
.footer-bottom a:hover { color: var(--fg); }

/* ---------- 17. Encabezado de página interna ---------- */
.page-hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero .display { margin-top: 22px; max-width: 16ch; }
.page-hero .lead { margin-top: 28px; }
.page-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--fg-3); }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb span[aria-hidden] { opacity: .5; }
.page-hero .bg-num {
  position: absolute; right: var(--gutter); top: 90px; font-size: clamp(8rem, 26vw, 24rem); font-weight: 900; font-stretch: 125%; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; user-select: none;
}

/* ---------- 18. Servicios: ecosistema ---------- */
.eco { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.eco-svg text { font-family: var(--font); font-weight: 800; font-stretch: 112%; fill: var(--fg); text-transform: uppercase; }
.eco-svg .eco-node { fill: var(--bg); stroke: var(--line-strong); }
.eco-svg .eco-core { fill: url(#ecoGrad); }
.eco-svg .eco-link { stroke: var(--line-strong); stroke-dasharray: 4 6; fill: none; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }

.svc-block { display: grid; grid-template-columns: 0.9fr 2fr; gap: clamp(28px, 5vw, 80px); padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.svc-block-head { position: sticky; top: 110px; align-self: start; }
.svc-block-head .num { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--fg-3); }
.svc-block-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-stretch: 116%; text-transform: uppercase; font-weight: 850; margin: 14px 0 24px; }
.svc-block-head .glyph { width: 64px; height: 64px; margin-bottom: 20px; }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qa { background: var(--bg); padding: clamp(20px, 2.4vw, 32px); }
.section--alt .qa { background: var(--bg-2); }
.qa h3 { font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; font-weight: 700; line-height: 1.4; }
.qa p { color: var(--fg); margin: 0; }
.qa ul { display: grid; gap: 8px; }
.qa li { display: flex; gap: 10px; font-size: .95rem; }
.qa li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: .6em; background: var(--lb-grad); transform: rotate(45deg); }
.svc-block-foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* ---------- 19. Páginas de servicio ---------- */
.include-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.include-list li { display: flex; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 650; }
.include-list li:nth-child(odd) { padding-right: 24px; }
.include-list li span { font-size: .75rem; font-weight: 700; color: var(--fg-3); letter-spacing: .1em; min-width: 26px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }

.factor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.factor-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.factor { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; display: flex; flex-direction: column; gap: 28px; min-height: 180px; transition: border-color .3s, transform .4s var(--ease-out); }
.factor:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.factor .num { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--fg-3); }
.factor h3 { font-size: 1.15rem; font-weight: 800; margin-top: auto; line-height: 1.15; }
.factor p { margin: 6px 0 0; font-size: .88rem; color: var(--fg-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .4s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 1.5px; background: var(--fg); }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq .answer { padding: 0 0 26px; color: var(--fg-2); max-width: 70ch; }

/* Mockups (ilustrativos) */
.mock { position: relative; }
.mock-browser { border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar b { margin-left: 12px; flex: 1; height: 20px; border-radius: 6px; background: var(--bg-3); font-size: .65rem; font-weight: 500; color: var(--fg-3); display: flex; align-items: center; padding-left: 10px; }
.mock-body { padding: 22px; display: grid; gap: 14px; }
.mock-hero { height: 120px; border-radius: 10px; background: var(--lb-grad); position: relative; overflow: hidden; }
.mock-hero::after { content: ""; position: absolute; left: 18px; bottom: 18px; width: 46%; height: 14px; border-radius: 4px; background: rgba(255,255,255,.85); box-shadow: 0 -24px 0 0 rgba(255,255,255,.85), 0 24px 0 -3px rgba(255,255,255,.4); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-row span { height: 70px; border-radius: 8px; background: var(--bg-3); }
.mock-lines span { display: block; height: 8px; border-radius: 4px; background: var(--bg-3); margin-bottom: 8px; }
.mock-lines span:nth-child(2) { width: 80%; }
.mock-lines span:nth-child(3) { width: 55%; }
.mock-phone {
  position: absolute; right: -6%; bottom: -12%; width: 34%; aspect-ratio: 9 / 19; border-radius: 26px; background: var(--lb-black); border: 6px solid #1d1d24; box-shadow: var(--shadow); overflow: hidden; padding: 14px 10px; display: grid; gap: 8px; align-content: start;
}
.mock-phone span { height: 10px; border-radius: 4px; background: #23232b; }
.mock-phone .ph-hero { height: 70px; border-radius: 10px; background: var(--lb-grad); }
.mock-phone .ph-btn { height: 26px; border-radius: 999px; background: #fff; width: 70%; }

.mock-dash { border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-columns: 70px 1fr; overflow: hidden; min-height: 340px; }
.mock-side { border-right: 1px solid var(--line); padding: 16px 12px; display: grid; gap: 12px; align-content: start; }
.mock-side span { height: 30px; border-radius: 8px; background: var(--bg-3); }
.mock-side span:first-child { background: var(--lb-grad); }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis span { height: 64px; border-radius: 10px; background: var(--bg-3); position: relative; }
.mock-kpis span::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 40%; height: 10px; border-radius: 3px; background: var(--line-strong); }
.mock-chart { height: 150px; border-radius: 10px; background: var(--bg-3); display: flex; align-items: flex-end; gap: 8px; padding: 14px; }
.mock-chart i { flex: 1; border-radius: 4px 4px 0 0; background: var(--lb-grad); background-size: 100% 300%; opacity: .9; transform-origin: bottom; }
.mock-table span { display: block; height: 12px; border-radius: 4px; background: var(--bg-3); margin-bottom: 9px; }

.mock-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.mock-calendar span { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); position: relative; }
.mock-calendar span.on { border: 0; background: var(--lb-grad); }
.mock-calendar span.on2 { border-color: transparent; background: var(--bg-3); }
.mock-calendar b { font-size: .65rem; color: var(--fg-3); text-align: center; font-weight: 700; letter-spacing: .08em; }

.flow { display: grid; gap: 14px; }
.flow-node { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); position: relative; }
.section--alt .flow-node { background: var(--bg-2); }
.flow-node + .flow-node::before { content: ""; position: absolute; left: 34px; top: -15px; width: 1px; height: 14px; background: var(--line-strong); }
.flow-node .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-3); display: grid; place-items: center; flex-shrink: 0; }
.flow-node .dot svg { width: 16px; height: 16px; }
.flow-node.is-active .dot { background: var(--lb-grad); color: #fff; }
.flow-node strong { font-size: .98rem; }
.flow-node small { display: block; color: var(--fg-2); font-size: .82rem; }

.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.method-steps > div { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); position: relative; }
.method-steps > div:last-child { border-right: 0; }
.method-steps .num { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--fg-3); }
.method-steps h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-stretch: 116%; text-transform: uppercase; font-weight: 850; margin: 40px 0 12px; }
.method-steps p { color: var(--fg-2); margin: 0; }
.method-steps > div::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--lb-grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease-out); }
.method-steps.is-in > div::after { transform: scaleX(1); }
.method-steps.is-in > div:nth-child(2)::after { transition-delay: .25s; }
.method-steps.is-in > div:nth-child(3)::after { transition-delay: .5s; }

.cta-band { border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(117,71,255,.35), transparent); opacity: var(--glow-opacity); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-stretch: 116%; text-transform: uppercase; font-weight: 850; line-height: .98; position: relative; }
.cta-band p { color: var(--fg-2); margin: 16px 0 0; position: relative; max-width: 48ch; }
.cta-band .btn { position: relative; }

.next-svc { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.next-svc .label { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); font-weight: 700; }
.next-svc strong { display: block; font-size: clamp(1.5rem, 4vw, 3.2rem); font-stretch: 116%; text-transform: uppercase; font-weight: 850; line-height: 1; margin-top: 10px; transition: transform .5s var(--ease-out); }
.next-svc:hover strong { transform: translateX(10px); }
.next-svc .arrow { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; transition: all .4s var(--ease-out); }
.next-svc:hover .arrow { background: var(--fg); color: var(--bg); transform: rotate(-45deg); }
.next-svc .arrow svg { width: 22px; height: 22px; }

/* Chat ilustrativo (agentes de IA) */
.chat-mock { border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; max-width: 460px; margin-inline: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: .95rem; line-height: 1.2; }
.chat-head small { color: var(--fg-3); font-size: .78rem; }
.chat-head small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2fd27a; margin-right: 6px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; padding: 6px; }
.chat-body { padding: 18px; display: grid; gap: 10px; }
.msg { margin: 0; max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; }
.msg--in { background: var(--bg-3); border-bottom-left-radius: 4px; justify-self: start; }
.msg--out { background: var(--lb-grad); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.msg--typing { background: var(--bg-3); display: inline-flex; gap: 4px; justify-self: start; padding: 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); animation: typing 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- 20. Nosotros ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { background: var(--bg); padding: clamp(28px, 4vw, 52px); min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; transition: background-color .35s; }
.principle:hover { background: var(--bg-2); }
.principle .num { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--fg-3); }
.principle h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-stretch: 114%; font-weight: 850; text-transform: uppercase; line-height: 1; }
.principle p { color: var(--fg-2); margin: 10px 0 0; }
.discipline-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.discipline { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; text-align: center; padding: 18px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(.85rem, 1.5vw, 1.1rem); line-height: 1.1; position: relative; transition: border-color .4s, transform .5s var(--ease-out); }
.discipline:nth-child(even) { transform: translateY(24px); }
.discipline:hover { border-color: var(--lb-violet); }

/* ---------- 21. Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, background-color .3s; }
.channel:hover { border-color: var(--line-strong); background: var(--bg-2); }
.channel small { display: block; color: var(--fg-3); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.channel strong { font-size: 1.05rem; word-break: break-word; }
.channel svg { width: 22px; height: 22px; flex-shrink: 0; }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.field label .opt { color: var(--fg-3); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lb-violet); box-shadow: 0 0 0 4px rgba(117, 71, 255, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--lb-coral); }
.field-error { color: var(--lb-coral); font-size: .82rem; font-weight: 600; min-height: 0; }
:root[data-theme="light"] .field-error { color: #c4153a; }
.field-hint { color: var(--fg-3); font-size: .8rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--fg-2); }
.check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lb-violet); }
.check a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px !important; }

.form-status { display: none; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; }
.form-status.is-visible { display: block; }
.form-status.is-success { border-color: rgba(49, 92, 255, .6); background: rgba(49, 92, 255, .1); }
.form-status.is-error { border-color: rgba(243, 41, 79, .6); background: rgba(243, 41, 79, .08); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn-arrow { display: none; }

/* ---------- 22. Legal y detalle de proyecto ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 2.2em 0 .7em; line-height: 1.15; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; margin-bottom: 1em; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.project-detail-gallery { display: grid; gap: 20px; }
.project-detail-gallery img { border-radius: var(--radius); width: 100%; }
.project-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.project-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--fg-3); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding-top: 3px; }
.project-facts dd { margin: 0; }

/* ---------- 23. Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

.line-reveal > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-ready .line-reveal > span { transform: none; }

.fade-in { opacity: 0; transition: opacity 1s var(--ease) var(--d, 0s); }
.is-ready .fade-in { opacity: 1; }

/* Transición entre páginas */
body { animation: pageIn .6s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { opacity: 0; transition: opacity .22s var(--ease); }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .mega-menu { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .svc-glyph { display: none; }
  .factor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qa-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero-art { width: 120vw; right: -40vw; top: 34%; opacity: .55; }
  .hero-meta span:last-child { display: none; }
  .svc-row { grid-template-columns: 36px minmax(0, 1fr) 46px; gap: 14px 16px; }
  .svc-row h3 { font-size: clamp(1.3rem, 6.4vw, 2rem); overflow-wrap: anywhere; hyphens: auto; }
  .svc-row p { grid-column: 2 / 3; grid-row: 2; }
  .svc-row .arrow { grid-column: 3; grid-row: 1 / 3; width: 46px; height: 46px; }
  .contrast-row { grid-template-columns: 1fr; gap: 6px; }
  .contrast-row .neq { text-align: left; font-size: 1.4rem; line-height: 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(even) { margin-top: 0; }
  .empty-state { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; padding-top: 0; padding-left: 36px; gap: 36px; }
  .process-line { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .process-line i { transform: scaleY(var(--p, 0)); transform-origin: 50% 0; width: 2px; height: auto; left: -.5px; top: 0; }
  .step::before { top: 4px; left: -36px; }
  .page-hero-grid, .eco, .svc-block, .split, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .svc-block-head { position: static; }
  .include-list { grid-template-columns: 1fr; }
  .include-list li:nth-child(odd) { padding-right: 0; }
  .factor-grid, .factor-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-steps { grid-template-columns: 1fr; }
  .method-steps > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .method-steps > div:last-child { border-bottom: 0; }
  .principles { grid-template-columns: 1fr; }
  .discipline-row { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
  .form-row { grid-template-columns: 1fr; }
  .mock-phone { right: 0; }
  .statement-side { margin-top: 32px; }
  .grid-12 > * { grid-column: 1 / -1 !important; }
}

@media (max-width: 560px) {
  :root { --fs-mega: clamp(2.5rem, 12.4vw, 4rem); }
  .header-inner { height: 68px; }
  .brand-logo { height: 38px; }
  .theme-toggle { width: 42px; height: 42px; }
  .header-actions { gap: 6px; }
  .header-actions > .lang-switch { min-width: 42px; height: 42px; padding: 0 10px; }
  .hero { padding-top: 110px; }
  .hero-meta { top: 92px; }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .footer-top { grid-template-columns: 1fr; }
  .need { width: 100%; justify-content: space-between; border-radius: 18px; }
  .factor-grid, .factor-grid--4 { grid-template-columns: 1fr; }
  .factor { min-height: 0; }
  .project-facts div { grid-template-columns: 1fr; gap: 4px; }
  .next-svc .arrow { width: 50px; height: 50px; }
  .cta-band .btn { width: 100%; justify-content: space-between; }
}

/* ---------- 25. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .line-reveal > span, .fade-in { opacity: 1 !important; transform: none !important; }
  .statement .w { opacity: 1; }
  .marquee-track { animation: none; }
  .ring--pulse { opacity: .35; transform: none; }
  .waves path { opacity: .6; }
}
