/* Nexuva · Web v2 «Estudio editorial»
   Colores del manual NX-DSG-001. Cada sección define su tema con data-theme;
   main.js cambia el fondo de la página según la sección que está en pantalla. */

:root {
  --noche: #111418;
  --blanco: #FFFFFF;
  --crema: #F4F1EA;
  --azul: #3B4EFF;
  --profundo: #0C101D;
  --grafito: #1C2128;
  --arena: #E5E0D8;
  --gris: #94A3B8;

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: max(16px, 4vw);
  --max: 1280px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Tema activo (lo cambia main.js) */
  --bg: #0A0C10;
  --fg: var(--crema);
  --muted: #B9C0CB;
  --line: rgba(244, 241, 234, .14);
  --card: var(--grafito);
  --accent: var(--azul);
}
[data-theme] { --t-accent: var(--azul); }

[data-theme="oscuro"]   { --t-bg: #0A0C10;       --t-fg: var(--crema); --t-muted: #B9C0CB; --t-line: rgba(244,241,234,.14); --t-card: var(--grafito); }
[data-theme="noche"]    { --t-bg: var(--noche);    --t-fg: var(--crema); --t-muted: #B9C0CB; --t-line: rgba(244,241,234,.14); --t-card: var(--grafito); }
[data-theme="profundo"] { --t-bg: var(--profundo); --t-fg: var(--crema); --t-muted: #B9C0CB; --t-line: rgba(244,241,234,.14); --t-card: #151B2E; }
[data-theme="crema"]    { --t-bg: var(--crema);    --t-fg: var(--noche); --t-muted: #4A5260; --t-line: rgba(17,20,24,.16);   --t-card: var(--blanco); }
[data-theme="blanco"]   { --t-bg: var(--blanco);   --t-fg: var(--noche); --t-muted: #4A5260; --t-line: rgba(17,20,24,.14);   --t-card: var(--crema); }
[data-theme="azul"]     { --t-bg: var(--azul);     --t-fg: var(--blanco); --t-muted: #E8EBFF; --t-line: rgba(255,255,255,.32); --t-card: var(--noche); --t-accent: var(--noche); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .7s ease, color .7s ease;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--crema); color: var(--noche); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .7s ease; }
.muted { color: var(--muted); transition: color .7s ease; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--azul); color: var(--blanco); }
.btn--light { background: var(--crema); color: var(--noche); }
.btn--ghost { border-color: var(--line); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(80px, 14vh, 160px); position: relative; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 6vh, 64px); }
.sec-num { display: flex; gap: 12px; align-items: center; }
.sec-num b { font: 500 .75rem var(--mono); letter-spacing: .08em; background: var(--fg); color: var(--bg); padding: 3px 9px; border-radius: 999px; transition: background-color .7s, color .7s; }
.h2 { font-size: clamp(2rem, 5.2vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; max-width: 18ch; }
.h2 span { color: var(--muted); }
.lead { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 56ch; }

/* ---------- Intro del logo ---------- */
.intro {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: var(--noche); color: var(--crema);
  background-image: radial-gradient(circle, rgba(148,163,184,.14) 1px, transparent 1.3px);
  background-size: 22px 22px;
  transition: opacity .6s ease, visibility .6s;
  cursor: pointer;
}
/* Sin JavaScript la intro se va sola a los 3.4 s */
.intro { animation: introOut .6s 3.4s forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro .lg { width: min(440px, 68vw); height: auto; overflow: visible; }
.intro .cap { position: absolute; bottom: max(32px, 8vh); left: 0; right: 0; text-align: center; opacity: 0; animation: fadein .5s 2.1s forwards; color: #B9C0CB; }
.intro .skip-intro { position: absolute; top: 16px; right: 16px; background: transparent; border: 1px solid rgba(244,241,234,.2); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #B9C0CB; cursor: pointer; }
.lg path { fill: currentColor; }
.lg .lg-d { fill: var(--azul); }
.intro .lg-n { fill-opacity: 0; stroke: currentColor; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .2s cubic-bezier(.7,0,.2,1) forwards, fillin .35s 1s ease forwards; }
.intro .lg-l { opacity: 0; transform: translateY(40px); transform-box: fill-box; animation: rise .5s var(--ease) forwards; }
.intro .lg-l:nth-of-type(6) { animation-delay: 1.17s; }
.intro .lg-l:nth-of-type(5) { animation-delay: 1.24s; }
.intro .lg-l:nth-of-type(4) { animation-delay: 1.31s; }
.intro .lg-l:nth-of-type(3) { animation-delay: 1.38s; }
.intro .lg-l:nth-of-type(2) { animation-delay: 1.45s; }
.intro .lg-d { transform: scale(0); transform-box: fill-box; transform-origin: center; animation: pop .5s 1.6s cubic-bezier(.3,1.6,.5,1) forwards, glow 1.2s 2.1s ease-out; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; stroke-width: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes glow { 0% { filter: drop-shadow(0 0 0 rgba(59,78,255,0)); } 40% { filter: drop-shadow(0 0 30px rgba(59,78,255,.9)); } 100% { filter: drop-shadow(0 0 0 rgba(59,78,255,0)); } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Encabezado ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .4s, color .7s; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; color: var(--fg); transition: color .7s; }
.brand .lg { width: 112px; height: auto; }
.brand .lg .lg-d { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 2px; list-style: none; padding: 0; }
.nav-links a { display: inline-block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 999px; }
.nav-links a:hover { background: var(--line); }
.nav-cta { background: var(--accent); margin-left: 8px; min-height: 42px; padding: 8px 18px; }
.nav-toggle { display: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { display: block; padding: 14px 4px; font-size: 1.25rem; font-weight: 700; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: 0; padding: 8px 14px; font-size: .9rem; }
}

/* ---------- Hero · Espiral ---------- */
.hero { position: relative; height: 440vh; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1400px;
  background:
    radial-gradient(60% 50% at 60% 50%, rgba(59,78,255,.14), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px;
}
.hero-top { position: absolute; top: 92px; left: var(--gutter); z-index: 2; max-width: min(520px, calc(100vw - 32px)); }
.hero-top h1 { font-size: clamp(1.7rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 10px 0 18px; }
.hero-top h1 span { color: var(--gris); }
.helix { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.card { position: absolute; left: calc(var(--w) / -2); top: calc(var(--h) / -2); width: var(--w); height: var(--h); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); will-change: transform, opacity; background: var(--c-bg); color: var(--c-fg); }
.hero-cap { position: absolute; left: var(--gutter); bottom: max(28px, 6vh); z-index: 2; max-width: min(460px, calc(100vw - 32px)); }
.hero-cap .count { display: flex; gap: 10px; align-items: center; }
.chip-azul { background: var(--azul); color: var(--blanco); border-radius: 999px; padding: 3px 10px; font: 500 .7rem var(--mono); letter-spacing: .06em; }
.hero-cap h2 { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; line-height: .95; margin: 10px 0; }
.hero-cap p { color: var(--muted); font-size: clamp(.92rem, 1.4vw, 1.05rem); line-height: 1.45; }
.hero-cap small { display: block; margin-top: 8px; }
.hero-cap > * { transition: opacity .35s ease, transform .35s ease; }
.hero-cap.is-swapping > * { opacity: 0; transform: translateY(8px); }
.hero-side { position: absolute; right: var(--gutter); bottom: max(28px, 6vh); z-index: 2; display: grid; gap: 12px; justify-items: end; text-align: right; }
.hero-bar { display: flex; gap: 6px; }
.hero-bar i { width: 18px; height: 3px; border-radius: 2px; background: #2B3140; transition: background-color .3s; }
.hero-bar i.on { background: var(--azul); }
@media (max-width: 700px) {
  .hero-top { top: 80px; }
  .hero-top .btn { display: none; }
  .hero-cap { bottom: 22px; }
  .hero-side { display: none; }
}

/* Mini pantallas de la espiral (decorativas) */
.mk { position: absolute; inset: 0; padding: 7%; display: flex; flex-direction: column; gap: 5%; --soft: color-mix(in srgb, var(--c-fg) 12%, transparent); --mid: color-mix(in srgb, var(--c-fg) 26%, transparent); }
.mk .t { font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-size: 14px; }
.mk .s { font: 500 8px var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.mk .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mk .pill { border-radius: 99px; padding: 3px 9px; font-size: 9px; font-weight: 600; background: var(--c-fg); color: var(--c-bg); white-space: nowrap; }
.mk .pill.acc { background: var(--c-ac); color: var(--c-bg); }
.card-tag { position: absolute; right: 6%; top: 6%; z-index: 1; font: 500 9px var(--mono); letter-spacing: .06em; padding: 3px 7px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; }
.mk-browser { flex: 1; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: var(--soft); }
.mk-browser .bb { height: 14px; display: flex; gap: 4px; align-items: center; padding: 0 6px; }
.mk-browser .bb b { width: 6px; height: 6px; border-radius: 50%; background: var(--mid); }
.mk-web-body { flex: 1; display: flex; gap: 6%; padding: 6%; align-items: center; }
.mk-web-body > div { flex: 1.3; display: grid; gap: 8px; justify-items: start; }
.mk-web-body .t { font-size: 17px; }
.mk-img { flex: 1; align-self: stretch; border-radius: 8px; background: linear-gradient(140deg, var(--c-ac), var(--mid)); }
.mk-cal { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mk-cal i { border-radius: 4px; background: var(--soft); }
.mk-cal i.on { background: var(--c-ac); }
.mk-kan { flex: 1; display: flex; gap: 4px; }
.mk-kan > div { flex: 1; border-radius: 6px; padding: 4px; display: flex; flex-direction: column; gap: 4px; background: var(--soft); }
.mk-kan i { height: 14px; border-radius: 4px; background: var(--mid); }
.mk-kan i.on { background: var(--c-ac); }
.mk-med { flex-direction: row; }
.mk-med .l { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mk-g9 { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mk-g9 i { border-radius: 3px; background: var(--soft); }
.mk-g9 i:nth-child(even) { background: var(--mid); }
.mk-g9 i:nth-child(4n+1) { background: var(--c-ac); }
.mk-med .r { width: 38%; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mk-med .r .t { font-size: 22px; }
.mk-bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.mk-bars i { flex: 1; border-radius: 2px; background: var(--c-fg); opacity: .8; }
.mk-bars i:nth-child(1) { height: 30%; } .mk-bars i:nth-child(2) { height: 45%; } .mk-bars i:nth-child(3) { height: 40%; } .mk-bars i:nth-child(4) { height: 70%; } .mk-bars i:nth-child(5) { height: 95%; }
.mk-app { flex-direction: row; }
.mk-side { width: 22%; border-radius: 6px; background: var(--c-fg); display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.mk-side i { height: 6px; border-radius: 2px; background: var(--c-bg); opacity: .4; }
.mk-side i.on { background: var(--c-ac); opacity: 1; }
.mk-tbl { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mk-tbl > span { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; border-radius: 4px; background: var(--soft); font-size: 8px; }
.mk-tbl .pill { font-size: 7px; padding: 1px 6px; background: var(--mid); color: var(--c-fg); }
.mk-tbl .pill.acc { background: var(--c-ac); color: #fff; }
.mk-vid { flex: 1; border-radius: 8px; background: linear-gradient(160deg, var(--c-ac), var(--mid)); display: grid; place-items: center; position: relative; }
.mk-vid b { width: 34px; height: 34px; border-radius: 50%; background: var(--c-bg); display: grid; place-items: center; font-size: 12px; }
.mk-vid .s { position: absolute; left: 8px; bottom: 6px; color: var(--c-bg); opacity: 1; }
.mk-tl { display: flex; gap: 3px; height: 12px; }
.mk-tl i { flex: 1; border-radius: 2px; background: var(--mid); }
.mk-tl i:nth-child(-n+3) { background: var(--c-ac); }
.mk-up { flex: 1; display: flex; align-items: flex-end; gap: 2px; }
.mk-up i { flex: 1; border-radius: 2px; background: var(--c-ac); height: 70%; }
.mk-up i:nth-child(3n) { height: 88%; } .mk-up i:nth-child(4n+1) { height: 62%; } .mk-up i:nth-child(5n+2) { height: 94%; }
.mk-up i:nth-child(22) { background: #FFB648; }
.mk .pill.ok { background: #1FA971; color: #fff; }

/* ---------- S.01 Manifiesto ---------- */
.manifesto-text { font-size: clamp(1.6rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; max-width: 24ch; }
.manifesto-text em { font-style: normal; color: var(--azul); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(48px, 8vh, 88px); border-top: 1px solid var(--line); }
.pillars li { list-style: none; padding: 22px 22px 0 0; display: grid; gap: 6px; }
.pillars li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.pillars h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.pillars { padding: 0; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars li, .pillars li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- S.02 Servicios (acordeón) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 16px; padding: clamp(18px, 3vh, 30px) 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc .acc-title { font-size: clamp(1.3rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; transition: color .2s; }
.acc summary:hover .acc-title { color: var(--muted); }
.acc .plus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s var(--ease), background-color .3s; }
.acc details[open] .plus { transform: rotate(45deg); background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.acc .own { font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--azul); color: var(--blanco); padding: 3px 8px; border-radius: 999px; vertical-align: middle; margin-left: 10px; white-space: nowrap; }
.acc-body { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 16px; padding-bottom: 32px; }
.acc-body > :first-child { grid-column: 2; }
.svc-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.svc-list li { display: grid; gap: 2px; }
.svc-list b { font-weight: 700; }
.svc-list .mono { font-size: .68rem; }
.acc-cta { align-self: end; justify-self: start; }
@media (max-width: 760px) {
  .acc summary { grid-template-columns: 1fr auto; }
  .acc summary .mono { grid-column: 1 / -1; order: -1; margin-bottom: -10px; }
  .acc-body { grid-template-columns: 1fr; }
  .acc-body > :first-child { grid-column: auto; }
}

.faq summary { grid-template-columns: 1fr auto; }
.faq .acc-title { font-size: clamp(1.15rem, 2.4vw, 1.7rem); }
.faq-a { max-width: 70ch; padding-bottom: 28px; font-size: 1.05rem; }
.form-foot .hint a { color: inherit; }

/* ---------- S.03 El sistema trabajando ---------- */
.system { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.phone { justify-self: center; width: min(320px, 82vw); aspect-ratio: 9 / 18.5; border-radius: 44px; border: 1px solid rgba(244,241,234,.18); background: linear-gradient(180deg, #151B2E, #0C101D); padding: 18px 14px; position: relative; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 6px #0A0D18; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%); background: #05070D; border-radius: 999px; }
.phone-time { text-align: center; margin: 46px 0 22px; }
.phone-time b { display: block; font-size: 3.4rem; font-weight: 300; letter-spacing: -.03em; line-height: 1; color: var(--crema); }
.notes { list-style: none; padding: 0; display: grid; gap: 10px; }
.notes li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(244,241,234,.08); border: 1px solid rgba(244,241,234,.1); backdrop-filter: blur(6px); color: var(--crema); opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.notes.is-live li { opacity: 1; transform: none; }
.notes.is-live li:nth-child(2) { transition-delay: .5s; }
.notes.is-live li:nth-child(3) { transition-delay: 1s; }
.notes.is-live li:nth-child(4) { transition-delay: 1.5s; }
.notes i { width: 34px; height: 34px; border-radius: 10px; background: var(--azul); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .8rem; color: #fff; }
.notes p { font-size: .82rem; font-weight: 600; line-height: 1.25; }
.notes small { display: block; font-weight: 400; color: #B9C0CB; }
.notes .mono { font-size: .62rem; }
.checks { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); transform: translateY(-2px); }
.phone-note { grid-column: 2; justify-self: center; margin-top: -8px; }
@media (max-width: 860px) { .system { grid-template-columns: 1fr; } .phone-note { grid-column: auto; } }

/* ---------- S.04 Rubros (tabla periódica) ---------- */
.rubros { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.el { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: transparent; padding: 10px; display: grid; grid-template-rows: auto 1fr auto; text-align: left; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease); }
.el:hover { transform: translateY(-2px); border-color: var(--fg); }
.el small { font: 500 .7rem var(--mono); color: var(--muted); }
.el b { font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; align-self: center; }
.el span { font-size: .82rem; font-weight: 600; }
.el[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.el[aria-pressed="true"] small { color: #E8EBFF; }
.rubro-panel { position: sticky; top: 100px; border-radius: var(--radius); background: var(--card); padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; transition: background-color .7s; }
.rubro-panel h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.rubro-panel ul { padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 860px) { .rubros { grid-template-columns: minmax(0, 1fr); } .rubro-panel { position: static; } }
@media (max-width: 420px) { .table { gap: 6px; } .el { padding: 7px; border-radius: 10px; } .el span { font-size: .7rem; overflow-wrap: anywhere; } .el b { font-size: 1.4rem; } }

/* ---------- S.05 Proceso ---------- */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.phase + .phase { border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 28px); }
.phase-label { padding-bottom: 14px; border-bottom: 2px solid var(--fg); margin-bottom: 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 20px 18px 0 0; display: grid; gap: 8px; align-content: start; }
.step-n { font: 500 .8rem var(--mono); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.step-n.on { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
.steps h3 { font-size: 1.1rem; font-weight: 700; }
.steps p { color: var(--muted); font-size: .93rem; transition: color .7s; }
@media (max-width: 960px) {
  .phases { grid-template-columns: 1fr; gap: 40px; }
  .phase + .phase { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .steps li { grid-template-columns: 38px 1fr; column-gap: 14px; } .steps li > :not(.step-n) { grid-column: 2; } .steps li .step-n { grid-row: span 2; } }

/* ---------- S.06 Proyectos ---------- */
.projects { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-height: 340px; }
.project-shot { aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--card) 0 12px, transparent 12px 24px); border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.project-body { padding: 20px; display: grid; gap: 6px; align-content: start; }
.project-body h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.project--next { background: var(--noche); color: var(--crema); border-color: var(--noche); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; transition: transform .25s var(--ease); }
.project--next:hover { transform: translateY(-3px); }
.project--next h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.project--next .mono { color: #B9C0CB; }
.project--next .arrow { width: 56px; height: 56px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; font-size: 1.4rem; }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } .project { min-height: 0; } }

/* ---------- S.07 Cotiza ahora ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.next-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; margin: 24px 0; }
.next-steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.next-steps li::before { content: "0" counter(s); font: 500 .75rem var(--mono); }
.contact-alt { margin-top: 10px; }
.contact-alt a { font-weight: 600; }
.form-card { background: var(--noche); color: var(--crema); border-radius: 22px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 70px rgba(12,16,29,.35); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: #B9C0CB; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(244,241,234,.18); background: var(--profundo); color: var(--crema); font-size: 1rem; }
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: var(--profundo); color: var(--crema); }
.field ::placeholder { color: #7D8794; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--crema); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #FF8A8A; }
.error { color: #FF8A8A; font-size: .85rem; min-height: 0; }
.error:empty { display: none; }
.hint { color: #B9C0CB; font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 8px; }
.form-status:empty { display: none; }
.form-status { border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.form-status strong { display: block; }
.form-status.is-ok { background: rgba(31,169,113,.16); border: 1px solid rgba(31,169,113,.5); }
.form-status.is-error { background: rgba(255,138,138,.12); border: 1px solid rgba(255,138,138,.45); }
.form-status a { color: inherit; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Cierre ¿Hablamos? ---------- */
.close { padding-block: clamp(80px, 14vh, 160px) 40px; }
.close-big { display: block; font-size: clamp(2.6rem, 15vw, 15rem); font-weight: 800; letter-spacing: -.055em; line-height: .9; text-decoration: none; transition: color .3s; }
.close-big:hover { color: var(--accent); }
.close-big span { color: var(--accent); transition: color .7s; }
.close-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 8vh, 80px); padding-top: 24px; border-top: 1px solid var(--line); }
.close-grid ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.close-grid a { text-decoration: none; }
.close-grid a:hover { text-decoration: underline; }
.close-grid h3 { margin-bottom: 8px; }
.footer-meta { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .close-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .close-grid { grid-template-columns: minmax(0, 1fr); } }
.close-grid a, .footer-meta span { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-content: center; gap: 18px; padding: 24px var(--gutter); }
.notfound .row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  body, .mono, .muted, .site-header, .brand, .intro { transition: none; }
  .intro .lg-n, .intro .lg-l, .intro .lg-d, .intro .cap { animation: none; opacity: 1; transform: none; fill-opacity: 1; stroke-width: 0; }
  .notes li { transition: none; opacity: 1; transform: none; }
  .btn:hover, .el:hover, .project--next:hover { transform: none; }
}
@media (min-width: 861px) { .nav-links li:last-child { display: none; } }

/* ---------- Página de privacidad ---------- */
.legal { --bg: var(--crema); --fg: var(--noche); --muted: #4A5260; --line: rgba(17,20,24,.16); --accent: var(--azul); }
.legal-body { max-width: 760px; padding-block: 64px 96px; display: grid; gap: 14px; }
.legal-body h1 { margin: 12px 0 0; }
.legal-body h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin-top: 22px; }
.legal-body ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-body a { font-weight: 600; }
