/* =========================================================
   WEBMASTERWWW · Arquitectura web
   Sistema de diseño: negro profundo + oro, editorial y vanguardista
   ========================================================= */

/* Fuentes alojadas en la propia web (sin Google: más rápido y sin ceder datos a terceros) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/Manrope-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSerif-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/InstrumentSerif-italic-latin.woff2") format("woff2"); }

/* El navegador solo calcula las secciones cuando se acercan a la pantalla */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

:root {
  --bg: #07070a;
  --bg-2: #0c0c11;
  --bg-3: #13131a;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f0e8;
  --muted: #a7a29a;
  --dim: #908b83;
  --gold: #d9b45f;
  --gold-light: #f3dc9f;
  --gold-deep: #a07c32;
  --grad-gold: linear-gradient(120deg, #f6e2a6 0%, #d9b45f 38%, #a8822f 68%, #f0d58c 100%);
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 78px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #0b0b0b; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

html { scrollbar-color: #2a2a33 var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a33; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

.container { width: 100%; max-width: 1260px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: #111; font-weight: 700;
  transform: translateY(-150%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

em { font-style: normal; }
h1 em, h2 em, .pv__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
h1 em, h2 em { color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 em, h2 em, h1 em .word > span, h2 em .word > span {
    background: var(--grad-gold);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}

.link { color: var(--gold-light); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--grad-gold); }
.hero .eyebrow::before { display: none; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, background-color .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --pad-y: 10px; --pad-x: 20px; font-size: .88rem; }
.btn--lg { --pad-y: 18px; --pad-x: 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--grad-gold); background-size: 160% 100%; color: #14110a; box-shadow: 0 10px 30px -12px rgba(217, 180, 95, .55); }
.btn--gold::after { /* destello */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--gold:hover { box-shadow: 0 18px 40px -14px rgba(217, 180, 95, .8); background-position: 100% 0; }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Barra de progreso ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: var(--grad-gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }


/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  transition: transform .5s var(--ease), background-color .4s, border-color .4s;
  will-change: transform;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(9, 9, 13, .94); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { display: inline-flex; align-items: flex-end; font-weight: 800; font-size: 1.36rem; letter-spacing: -.035em; }
.brand__crown { width: 2.05em; height: .97em; margin: 0 0 .09em .14em; overflow: visible; transform-origin: 50% 100%; transition: transform .6s var(--ease), filter .6s; }
.brand:hover .brand__crown { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 8px rgba(217, 180, 95, .55)); }
.brand__tag { margin-top: 6px; font-size: .58rem; font-weight: 600; letter-spacing: .32em; word-spacing: .25em; text-transform: uppercase; color: var(--gold); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__link { position: relative; display: block; padding: 8px 14px; white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--grad-gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta-mobile { display: none; }

.lang { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; flex-shrink: 0; }
.lang a { padding: 5px 9px; border-radius: 999px; color: var(--muted); transition: color .3s, background-color .3s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: rgba(217, 180, 95, .15); color: var(--gold-light); }

.menu-toggle { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1120px) {
  .site-header__inner { gap: 12px; }
  .lang { margin-left: auto; }
  .menu-toggle { display: block; margin-left: 0; }
  .site-header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    display: grid; place-items: center;
    background: rgba(7, 7, 10, .97);
    clip-path: circle(0 at calc(100% - 46px) 39px);
    transition: clip-path .8s var(--ease);
    visibility: hidden;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 46px) 39px); visibility: visible; }
  .menu-open .site-header { background: transparent; border-color: transparent; }
  .nav__list { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .nav__link { font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: var(--text); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
  .nav__link::after { display: none; }
  .nav__link:hover { color: var(--gold); }
  .menu-open .nav__link { opacity: 1; transform: none; }
  .menu-open .nav__list li:nth-child(2) .nav__link { transition-delay: .05s; }
  .menu-open .nav__list li:nth-child(3) .nav__link { transition-delay: .1s; }
  .menu-open .nav__list li:nth-child(4) .nav__link { transition-delay: .15s; }
  .menu-open .nav__list li:nth-child(5) .nav__link { transition-delay: .2s; }
  .nav__cta-mobile { display: block; margin-top: 22px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Reveal / split ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin: 0 -.06em -.14em 0; }
.word > span { display: inline-block; transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0s)); }
.is-in .word > span { transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(84px, 12vw, 160px); }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.section-head { max-width: 820px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
.section-head__lead { margin-top: 22px; color: var(--muted); font-size: clamp(1.02rem, 1rem + .3vw, 1.18rem); max-width: 640px; }
.section-head:not(.section-head--left) .section-head__lead { margin-inline: auto; }
.section-head .btn, .section-head .hero__actions { margin-top: 34px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 110px;
  overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* Tamaño fijo (no depende del contenido) para que no provoque cambios de diseño al cargar las fuentes */
.hero__glow { position: absolute; z-index: -2; top: -20vh; left: -10vw; right: -10vw; height: 140vh; pointer-events: none; will-change: transform;
  background:
    radial-gradient(40% 40% at 70% 30%, rgba(217, 180, 95, .16), transparent 70%),
    radial-gradient(35% 35% at 15% 70%, rgba(120, 90, 200, .10), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(217, 180, 95, .07), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 220px; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 7.4vw, 6.6rem); line-height: 1.0; letter-spacing: -.045em; font-weight: 600; max-width: 14.5em; }
.hero__lead { margin-top: 30px; max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1rem + .45vw, 1.28rem); }
.hero__lead strong { color: var(--text); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.section-head--left .hero__actions { justify-content: flex-start; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 44px; font-size: .88rem; color: var(--muted); }
.hero__meta span { color: var(--gold); margin-right: 6px; }
.scroll-cue { position: absolute; left: 50%; bottom: 32px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-2); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--gold); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- Marquee ---------- */
/* Cinta continua: solo se anima "transform" en su propia capa (la mueve la tarjeta gráfica) y no se detiene nunca */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-2); contain: paint; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; will-change: transform; backface-visibility: hidden; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li { display: flex; align-items: center; padding: 0 28px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; color: var(--dim); white-space: nowrap; }
.marquee li::after { content: "✦"; margin-left: 56px; font-size: .7em; color: var(--gold-deep); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  min-height: 330px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease);
  transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217, 180, 95, .14), transparent 45%); }
.card::after { /* borde iluminado */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(243, 220, 159, .8), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card:hover { border-color: rgba(217, 180, 95, .2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__num { position: absolute; top: 26px; right: 30px; font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--dim); }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: auto; background: rgba(217, 180, 95, .08); border: 1px solid rgba(217, 180, 95, .2); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__title { margin-top: 40px; font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem); }
.card__text { margin-top: 12px; color: var(--muted); font-size: .97rem; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: .88rem; font-weight: 700; color: var(--gold); }
.card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(5px); }
/* Las 6 tarjetas con el mismo tamaño (3x2 en ordenador, 2x3 en tableta); la destacada solo cambia de color */
.card--featured { background: radial-gradient(120% 80% at 100% 0%, rgba(217, 180, 95, .16), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border-color: rgba(217, 180, 95, .3); }
.card--featured .card__icon { background: rgba(217, 180, 95, .16); border-color: rgba(217, 180, 95, .4); }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } .card__title { margin-top: 30px; } }

/* ---------- Software a medida ---------- */
.software { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.software__bg { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 75% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 75% 30%, #000, transparent 75%);
}
.software__intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.software__intro .section-head { margin-bottom: 0; }
.checklist { display: grid; gap: 12px; margin-top: 30px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(217, 180, 95, .45);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3dc9f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }

.dash { position: relative; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, #15151d, #0d0d12); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(217, 180, 95, .06), 0 0 80px -20px rgba(217, 180, 95, .18); overflow: hidden; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transition: transform 1.2s var(--ease); }
.dash.is-in { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
.dash:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.dash__bar, .window__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: .75rem; color: var(--dim); }
.dash__bar i, .window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c35; }
.dash__bar i:first-child, .window__bar i:first-child { background: #e0625a; }
.dash__bar i:nth-child(2), .window__bar i:nth-child(2) { background: #e6b450; }
.dash__bar i:nth-child(3), .window__bar i:nth-child(3) { background: #5fc46f; }
.dash__bar span, .window__bar span { margin-left: 10px; font-family: var(--font-mono); }
.dash__body { display: grid; grid-template-columns: 58px 1fr; min-height: 340px; }
.dash__side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; border-right: 1px solid var(--line); }
.dash__side svg { width: 28px; height: 20px; margin-bottom: 8px; }
.dash__side b { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); }
.dash__side b.on { background: rgba(217, 180, 95, .3); box-shadow: inset 0 0 0 1px var(--gold); }
.dash__main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.kpi small { font-size: .66rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { font-size: clamp(.95rem, 1.6vw, 1.3rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi em { font-size: .7rem; color: var(--dim); }
.kpi em.up { color: #74d38a; }
.dash__chart { position: relative; height: 130px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.dash__chart svg { position: absolute; inset: 10px 0 0; width: 100%; height: calc(100% - 10px); }
.dash__line { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 2.4s var(--ease) .4s; }
.dash__area { opacity: 0; transition: opacity 1.4s 1.2s; }
.dash.is-in .dash__line { stroke-dashoffset: 0; }
.dash.is-in .dash__area { opacity: 1; }
.dash__bars { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.dash__bars span { width: 7px; height: var(--h); border-radius: 3px; background: rgba(255, 255, 255, .12); transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease); }
.dash.is-in .dash__bars span { transform: none; }
.dash__bars span:nth-child(2) { transition-delay: .08s; } .dash__bars span:nth-child(3) { transition-delay: .16s; } .dash__bars span:nth-child(4) { transition-delay: .24s; } .dash__bars span:nth-child(5) { transition-delay: .32s; } .dash__bars span:nth-child(6) { transition-delay: .4s; background: var(--gold); } .dash__bars span:nth-child(7) { transition-delay: .48s; }
.dash__feed { display: grid; gap: 8px; font-size: .78rem; color: var(--muted); }
.dash__feed li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: feedIn .7s var(--ease) both; }
.dash__feed i { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); } }

.soft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(64px, 8vw, 110px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.soft-item { position: relative; padding: 30px 26px 34px; background: var(--bg-2); transition: background-color .4s; }
.soft-item::before { content: ""; position: absolute; left: 26px; top: 0; width: 34px; height: 2px; background: var(--grad-gold); transform: scaleX(.4); transform-origin: left; transition: transform .6s var(--ease); }
.soft-item:hover { background: #121219; }
.soft-item:hover::before { transform: scaleX(1); }
.soft-item h3 { font-size: 1.12rem; letter-spacing: -.015em; }
.soft-item p { margin-top: 10px; font-size: .93rem; color: var(--muted); }

.soft-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-top: 24px; }
.soft-compare__col { height: 100%; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.soft-compare__col h3 { font-size: 1.2rem; margin-bottom: 16px; }
.soft-compare__col li { position: relative; padding: 8px 0 8px 28px; color: var(--muted); border-top: 1px solid var(--line); }
.soft-compare__col li::before { content: "–"; position: absolute; left: 4px; color: var(--dim); }
.soft-compare__col--gold { border-color: rgba(217, 180, 95, .3); background: radial-gradient(100% 100% at 100% 0, rgba(217, 180, 95, .12), transparent 60%), var(--surface); }
.soft-compare__col--gold h3 { color: var(--gold-light); }
.soft-compare__col--gold li { color: var(--text); }
.soft-compare__col--gold li::before { content: "✦"; color: var(--gold); font-size: .8em; top: 10px; }
.soft-compare__vs { font-family: var(--font-serif); font-style: italic; font-size: 2rem; color: var(--gold); }
@media (max-width: 1020px) {
  .software__intro { grid-template-columns: 1fr; }
  .dash, .dash.is-in { transform: none; }
  .soft-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .soft-grid { grid-template-columns: 1fr; }
  .soft-compare { grid-template-columns: 1fr; }
  .soft-compare__vs { text-align: center; font-size: 1.6rem; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .dash__kpis .kpi:nth-child(3) { display: none; }
}

/* ---------- Manifiesto ---------- */
.manifesto__text { max-width: 1100px; margin-inline: auto; font-size: clamp(1.75rem, 4.4vw, 3.9rem); font-weight: 600; line-height: 1.16; letter-spacing: -.035em; text-align: center; }
.manifesto__text .w { color: rgba(244, 240, 232, .42); transition: color .5s; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.manifesto__text .w.on { color: var(--text); }
.manifesto__text .w.gold.on { color: var(--gold); font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ---------- Gauges ---------- */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gauge { position: relative; display: grid; justify-items: center; gap: 14px; padding: 34px 18px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gauge svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 6; }
.gauge__track { stroke: rgba(255, 255, 255, .07); }
.gauge__value { stroke: url(#g-gold); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 2s var(--ease) calc(var(--d, 0s) + .2s); filter: drop-shadow(0 0 6px rgba(217, 180, 95, .45)); }
.gauge.is-in .gauge__value { stroke-dashoffset: 0; }
.gauge strong { position: absolute; top: 34px; height: 130px; display: grid; place-items: center; font-size: 2.3rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gauge span { font-size: .9rem; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .gauges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gauge svg { width: 110px; height: 110px; } .gauge strong { height: 110px; font-size: 2rem; } .gauges { gap: 12px; } }

/* ---------- Demo de código ---------- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.window { border-radius: var(--radius); border: 1px solid var(--line-2); background: #0e0e14; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); min-width: 0; }
.window__btn { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .3s, border-color .3s, transform .5s var(--ease); }
.window__btn:hover { color: var(--gold); border-color: var(--gold); transform: rotate(-180deg); }
.code { margin: 0; padding: 22px; height: 420px; overflow: hidden; font-family: var(--font-mono); font-size: clamp(.74rem, .7rem + .2vw, .86rem); line-height: 1.75; color: #cfcac0; white-space: pre-wrap; word-break: break-word; }
.code .t { color: #e8a87c; } .code .a { color: var(--gold-light); } .code .s { color: #9fd49a; } .code .c { color: #6f6b65; font-style: italic; } .code .p { color: #b39ddb; }
.code__caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pv { position: relative; height: 420px; padding: 18px; overflow: hidden; background: radial-gradient(80% 70% at 80% 0, #1d1a12, #0b0b0f 70%); isolation: isolate; }
.pv [data-s] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.pv [data-s].on { opacity: 1; transform: none; }
.pv__nav { display: flex; align-items: center; gap: 10px; }
.pv__nav b { width: 30px; height: 10px; border-radius: 4px; background: var(--grad-gold); margin-right: auto; }
.pv__nav span { width: 36px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.pv__hero { padding: 44px 6px 28px; text-align: center; }
.pv__title { font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.04em; }
.pv__title em { color: var(--gold); }
.pv__text { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.pv__btn { display: inline-block; margin-top: 18px; padding: 9px 20px; border-radius: 999px; background: var(--grad-gold); color: #15110a; font-size: .8rem; font-weight: 700; }
.pv__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv__cards span { height: 92px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.pv__glow { position: absolute; z-index: -1; width: 260px; height: 260px; left: 50%; top: 30%; margin-left: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 180, 95, .3), transparent 70%); }
.pv__glow.on { animation: glowMove 6s ease-in-out infinite alternate; will-change: transform; }
@keyframes glowMove { to { transform: translate(60px, 40px) scale(1.2); } }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } .code, .pv { height: 340px; } }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.process__head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.steps { position: relative; display: grid; gap: 14px; padding-left: 0; }
.steps__line { position: absolute; left: 31px; top: 30px; bottom: 30px; width: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0 0 auto; height: 100%; background: var(--grad-gold); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px var(--gold); }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 26px 26px 26px 0; }
.step__num { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--muted); transition: border-color .5s, color .5s, box-shadow .5s; }
.step.is-active .step__num { border-color: var(--gold); color: var(--gold-light); box-shadow: 0 0 0 6px rgba(217, 180, 95, .08), 0 0 30px rgba(217, 180, 95, .25); }
.step h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); padding-top: 14px; }
.step p { margin-top: 10px; color: var(--muted); }
@media (max-width: 1020px) { .process { grid-template-columns: 1fr; } .process__head { position: static; } }
@media (max-width: 520px) { .step { grid-template-columns: 50px 1fr; gap: 16px; padding-right: 0; } .step__num { width: 50px; height: 50px; font-size: 1.1rem; } .steps__line { left: 25px; } .step h3 { padding-top: 10px; } }

/* ---------- Configurador ---------- */
.configurator-section { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.config { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.config__options { display: grid; gap: 30px; }
.config__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.config__group legend { padding: 0; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .93rem; font-weight: 500; cursor: pointer; user-select: none; transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease); }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); transition: background-color .3s, box-shadow .3s; }
.chip span:hover { border-color: rgba(217, 180, 95, .5); }
.chip input:checked + span { background: rgba(217, 180, 95, .12); border-color: var(--gold); color: var(--gold-light); }
.chip input:checked + span::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.chip span:active { transform: scale(.96); }
.config__summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; border-radius: var(--radius); border: 1px solid rgba(217, 180, 95, .25); background: radial-gradient(120% 70% at 100% 0, rgba(217, 180, 95, .14), transparent 60%), #101016; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.config__label { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.config__level { margin-top: 8px; font-family: var(--font-serif); font-style: italic; font-size: 2.2rem; line-height: 1.1; color: var(--gold-light); }
.meter { margin-top: 16px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-gold); box-shadow: 0 0 14px var(--gold); transition: width .8s var(--ease); }
.config__list { display: grid; gap: 8px; margin: 22px 0 24px; max-height: 260px; overflow: auto; font-size: .92rem; }
.config__list li { display: flex; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); animation: feedIn .5s var(--ease) both; }
.config__list li::before { content: "✦"; color: var(--gold); font-size: .75em; padding-top: 4px; }
.config__list li.is-empty { color: var(--dim); border: 0; }
.config__list li.is-empty::before { display: none; }
.config__list small { margin-left: auto; color: var(--dim); white-space: nowrap; }
.config__note { margin-top: 14px; font-size: .8rem; color: var(--dim); text-align: center; }
@media (max-width: 900px) { .config { grid-template-columns: 1fr; } .config__summary { position: static; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { position: relative; display: block; padding: 26px 56px 26px 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); font-weight: 600; letter-spacing: -.015em; cursor: pointer; list-style: none; transition: color .3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--gold), var(--gold)) center / 11px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 11px no-repeat;
  transition: transform .5s var(--ease), border-color .3s; }
.faq__item[open] summary::after { transform: rotate(135deg); border-color: var(--gold); }
.faq__item summary:hover { color: var(--gold-light); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 40px 26px 0; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .section-head { position: static; } }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; isolation: isolate; }
.contact__glow { position: absolute; z-index: -1; left: 50%; top: 40%; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 180, 95, .12), transparent 60%); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__intro h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.contact__mail { display: inline-block; margin-top: 36px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--gold-light); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); word-break: break-all; }
.contact__mail:hover { background-size: 100% 1px; }
.form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(16, 16, 22, .92); }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 26px 18px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); outline: none; resize: vertical; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.field textarea { min-height: 150px; }
.field label { position: absolute; left: 19px; top: 18px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--gold); background: rgba(217, 180, 95, .04); box-shadow: 0 0 0 4px rgba(217, 180, 95, .1); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--gold); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e0625a; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.check.is-invalid { color: #f08a83; }
.form__status { min-height: 1.4em; font-size: .9rem; color: var(--gold-light); text-align: center; }
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 40px 0 34px; border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.footer__big { font-size: clamp(4rem, 19vw, 17rem); font-weight: 800; letter-spacing: -.07em; line-height: .85; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(217, 180, 95, .45); user-select: none; margin: 10px 0 60px; background: linear-gradient(180deg, rgba(217, 180, 95, .22), transparent 85%); -webkit-background-clip: text; background-clip: text; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { margin-top: 18px; color: var(--muted); font-size: .93rem; max-width: 340px; }
.footer__title { font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__grid ul { display: grid; gap: 10px; font-size: .93rem; color: var(--muted); }
.footer__grid ul a { transition: color .3s; }
.footer__grid ul a:hover { color: var(--gold-light); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--dim); }
.footer__top:hover { color: var(--gold); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Páginas de servicio ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(60px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.page-hero .hero__glow { opacity: .8; }
.page-hero .hero__canvas { opacity: .6; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); letter-spacing: -.045em; max-width: 15em; }
.page-hero .hero__lead { margin-top: 26px; }
.page-hero .hero__actions { justify-content: flex-start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; font-size: .84rem; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color .3s; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--dim); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, transform .6s var(--ease); }
.feature:hover { border-color: rgba(217, 180, 95, .3); transform: translateY(-4px); }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px; background: rgba(217, 180, 95, .1); color: var(--gold-light); font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.prose { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 100px); }
.prose__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.prose__aside h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.prose__body { display: grid; gap: 40px; }
.prose__body h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); margin-bottom: 14px; }
.prose__body p { color: var(--muted); }
.prose__body p + p { margin-top: 14px; }
@media (max-width: 900px) { .prose { grid-template-columns: 1fr; } .prose__aside { position: static; } }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.mini-steps li { position: relative; padding: 28px 24px; border-top: 1px solid var(--line-2); counter-increment: s; }
.mini-steps li::before { content: "0" counter(s); display: block; margin-bottom: 18px; font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--gold); }
.mini-steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--gold); }
.mini-steps h3 { font-size: 1.15rem; }
.mini-steps p { margin-top: 8px; color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .mini-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mini-steps { grid-template-columns: 1fr; } }
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 7vw, 90px) clamp(24px, 5vw, 70px); border-radius: calc(var(--radius) + 8px); border: 1px solid rgba(217, 180, 95, .3); background: radial-gradient(80% 120% at 100% 0, rgba(217, 180, 95, .2), transparent 60%), #101016; text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.cta-band p { margin: 18px auto 0; max-width: 560px; color: var(--muted); }
.cta-band .hero__actions { margin-top: 32px; }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 600; transition: border-color .3s, color .3s, transform .5s var(--ease); }
.related a::after { content: "→"; color: var(--gold); transition: transform .4s var(--ease); }
.related a:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-3px); }
.related a:hover::after { transform: translateX(4px); }
@media (max-width: 1020px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .related { grid-template-columns: 1fr; } }

/* Página legal */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 30px; }
.legal h2 { font-size: 1.5rem; margin: 46px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal], .word > span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}

/* ---------- Honeypot ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
.form.is-sent .form__status { color: #9fd49a; }

/* ---------- Contacto: pasos ---------- */
.contact__points { display: grid; gap: 14px; margin-top: 36px; }
.contact__points li { display: flex; align-items: center; gap: 16px; font-size: 1.02rem; }
.contact__points span { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(217, 180, 95, .4); font-family: var(--font-serif); font-style: italic; color: var(--gold-light); }

/* ---------- Historia ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold), transparent); }
.timeline__item { position: relative; padding: 0 6px; }
.timeline__year { display: block; font-family: var(--font-serif); font-style: italic; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--dim); margin-bottom: 34px; }
.timeline__item--now .timeline__year { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline__item::after { content: ""; position: absolute; left: 8px; top: 41px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.timeline__item--now::after { background: var(--gold); box-shadow: 0 0 0 6px rgba(217, 180, 95, .12), 0 0 20px var(--gold); }
.timeline__item h3 { font-size: 1.3rem; }
.timeline__item p { margin-top: 10px; color: var(--muted); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 34px; padding-left: 34px; }
  .timeline::before { left: 13px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold-deep), var(--gold)); }
  .timeline__item::after { left: -26px; top: 12px; }
  .timeline__year { margin-bottom: 12px; font-size: 2.4rem; }
}

/* ---------- Portadas generativas ---------- */
.cover { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(90% 90% at 80% 10%, #2a2110, #0c0c11 70%); }
.cover__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.cover__orb { position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(217, 180, 95, .3), transparent 70%); }
.cover__icon { width: 26%; max-width: 160px; filter: drop-shadow(0 0 24px rgba(217, 180, 95, .5)); }
.cover__icon--line { fill: none; stroke: url(#g-gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; width: 22%; }
.cover__word { position: absolute; right: 6%; bottom: 7%; font-family: var(--font-serif); font-style: italic; font-size: clamp(1rem, 2.4vw, 1.6rem); color: var(--gold-light); letter-spacing: .02em; }
.cover--seo { background: radial-gradient(90% 90% at 20% 10%, #1b2318, #0c0c11 70%); }
.cover--code { background: radial-gradient(90% 90% at 50% 0%, #1d1a2a, #0c0c11 70%); }
.cover--hero { aspect-ratio: 21 / 9; margin-bottom: clamp(40px, 6vw, 70px); }
.cover--hero .cover__word { font-size: clamp(1.4rem, 3.4vw, 2.6rem); }
@media (max-width: 640px) { .cover--hero { aspect-ratio: 16 / 10; } }

/* ---------- Tarjetas de artículo ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.posts--two { grid-template-columns: repeat(2, 1fr); }
.posts--index .post-card:first-child { grid-column: 1 / -1; }
.posts--index .post-card:first-child .post-card__link { display: grid; grid-template-columns: 1.2fr 1fr; }
.posts--index .post-card:first-child .cover { aspect-ratio: auto; height: 100%; min-height: 300px; border-radius: var(--radius) 0 0 var(--radius); border: 0; }
.posts--index .post-card:first-child .post-card__body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.posts--index .post-card:first-child .post-card__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.post-card__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease); }
.post-card__link:hover { border-color: rgba(217, 180, 95, .3); transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.post-card .cover { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); transition: transform .8s var(--ease); }
.post-card__link:hover .cover__icon { transform: scale(1.06); }
.cover__icon { transition: transform .8s var(--ease); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.post-card__title { font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.2; }
.post-card__text { margin-top: 12px; color: var(--muted); font-size: .95rem; flex: 1; }
.post-card .card__more { margin-top: 20px; }
.post-card .card__more svg { transition: transform .4s var(--ease); }
.post-card__link:hover .card__more svg { transform: translateX(5px); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; font-size: .8rem; color: var(--dim); }
.post-meta > * + *::before { content: "·"; margin-right: 14px; color: var(--dim); }
.post-meta .tag + *::before { display: none; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 999px; background: rgba(217, 180, 95, .12); border: 1px solid rgba(217, 180, 95, .3); color: var(--gold-light); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blog-teaser__more { margin-top: 44px; text-align: center; }
@media (max-width: 1020px) { .posts { grid-template-columns: repeat(2, 1fr); } .posts--teaser .post-card:nth-child(3) { display: none; } }
@media (max-width: 760px) {
  .posts, .posts--two { grid-template-columns: 1fr; }
  .posts--teaser .post-card:nth-child(3) { display: block; }
  .posts--index .post-card:first-child .post-card__link { display: flex; }
  .posts--index .post-card:first-child .cover { min-height: 0; aspect-ratio: 16 / 9; border-radius: 0; }
}

/* ---------- Artículo ---------- */
.post-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(50px, 8vw, 100px)) 0 clamp(36px, 5vw, 56px); }
.post-hero__inner { max-width: 980px; }
.post-hero h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); letter-spacing: -.04em; line-height: 1.04; }
.post-layout { display: grid; grid-template-columns: 64px minmax(0, 760px); justify-content: center; gap: clamp(24px, 5vw, 70px); padding-bottom: clamp(40px, 6vw, 80px); }
.post-share { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.post-share__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .3s, border-color .3s, transform .4s var(--ease); }
.share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.share:hover { color: var(--gold-light); border-color: var(--gold); transform: translateY(-2px); }
.share--copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share--copy.is-done { color: #9fd49a; border-color: #9fd49a; }
.post-body { font-size: clamp(1.04rem, 1rem + .25vw, 1.15rem); line-height: 1.8; color: #d9d4ca; }
.post-body > * + * { margin-top: 1.25em; }
.post-body .lead { font-size: 1.22em; line-height: 1.6; color: var(--text); }
.post-body h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); color: var(--text); }
.post-body h2 + p { margin-top: .8em; }
.post-body a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(217, 180, 95, .45); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.post-body a:hover { text-decoration-color: var(--gold); }
.post-body strong { color: var(--text); }
.post-body em { font-family: var(--font-serif); font-style: italic; font-size: 1.08em; color: var(--gold-light); }
.post-body ul, .post-body ol { display: grid; gap: .55em; padding-left: 0; }
.post-body ul li { position: relative; padding-left: 28px; }
.post-body ul li::before { content: "✦"; position: absolute; left: 2px; top: .05em; color: var(--gold); font-size: .8em; }
.post-body ol { counter-reset: li; }
.post-body ol li { position: relative; padding-left: 44px; counter-increment: li; }
.post-body ol li::before { content: counter(li); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(217, 180, 95, .45); font-size: .8em; color: var(--gold-light); }
.post-body blockquote { margin: 2em 0; padding: 26px 30px; border-left: 2px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: linear-gradient(90deg, rgba(217, 180, 95, .1), transparent); font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.35; color: var(--text); }
.post-back { margin-top: 3em !important; }
.post-back a { text-decoration: none; }
.related__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 26px; }
@media (max-width: 860px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-share { position: static; flex-direction: row; flex-wrap: wrap; order: 2; padding-top: 30px; border-top: 1px solid var(--line); }
  .post-share__label { writing-mode: horizontal-tb; transform: none; margin: 0 8px 0 0; }
}

/* ---------- Páginas interiores ---------- */
.page-hero--blog { padding-bottom: clamp(30px, 4vw, 50px); }
.page-hero--legal { padding-bottom: clamp(60px, 8vw, 100px); }
.page-hero h1 em { display: inline; }

/* ---------- Proyectos / portfolio ---------- */
.work { overflow: hidden; }
.case { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.case + .gallery, .gallery + .case { margin-top: clamp(60px, 8vw, 110px); }
.case--reverse .case__media { order: 2; }
.case__media { position: relative; padding: 0 8% 8% 0; }
.laptop { margin: 0; position: relative; }
.laptop__lid { padding: 2.2% 2.2% 3%; border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, #2a2a33, #15151b); border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(217, 180, 95, .25); }
.laptop__screen { overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; background: #0b0b10; }
.laptop__screen img, .phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.laptop__base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #3a3a44, #1c1c22); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); position: relative; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; margin-left: -8%; border-radius: 0 0 8px 8px; background: #121217; }
.phone { position: absolute; right: 0; bottom: 0; width: 26%; margin: 0; padding: 2.4%; border-radius: 22% / 11%; background: linear-gradient(180deg, #2c2c35, #141419); border: 1px solid var(--line-2); box-shadow: -20px 30px 60px -20px rgba(0, 0, 0, .95); transition: transform .9s var(--ease); }
.phone__screen { overflow: hidden; border-radius: 18% / 8.5%; aspect-ratio: 9 / 19.5; background: #0b0b10; }
.case:hover .phone { transform: translateY(-10px) rotate(-2deg); }
.case__kicker { font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.case__title { margin-top: 14px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.035em; }
.case__desc { margin-top: 16px; color: var(--muted); }
.case__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.case__facts div { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.case__facts dt { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__facts dd { margin: 8px 0 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.case__points { margin-top: 26px; }
.case__points li { font-size: .95rem; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.case__tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; color: var(--muted); }
.case .btn svg { width: 16px; height: 16px; }
.gallery__title { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; letter-spacing: -.01em; }
.gallery__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #0b0b10; aspect-ratio: 16 / 10; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s var(--ease), opacity .4s; opacity: .85; }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .74rem; font-weight: 600; background: linear-gradient(transparent, rgba(7, 7, 10, .92)); }
.gallery__item:hover img { transform: scale(1.06); opacity: 1; }
.gallery__item:hover { border-color: rgba(217, 180, 95, .45); }
@media (max-width: 1020px) {
  .case { grid-template-columns: 1fr; }
  .case--reverse .case__media { order: 0; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .case__facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .case__facts div { padding: 12px 10px; }
  .case__facts dt { font-size: 1.5rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:last-child { display: none; }
}

/* ---------- Visor de imágenes ---------- */
.lightbox { position: fixed; inset: 0; z-index: 140; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 60px clamp(10px, 3vw, 40px); background: rgba(5, 5, 8, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px #000; transform: scale(.97); transition: transform .4s var(--ease); }
.lightbox.is-open .lightbox__figure img { transform: none; }
.lightbox figcaption { color: var(--muted); font-size: .92rem; }
.lightbox__btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: border-color .3s, color .3s; }
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold-light); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }

/* ---------- Logo más grande en ordenador (también con zoom de Windows al 125-150 %) ---------- */
@media (min-width: 761px) {
  :root { --header-h: 88px; }
  .brand__name { font-size: 1.7rem; }
  .brand__tag { font-size: .64rem; margin-top: 7px; }
}
@media (min-width: 1121px) {
  :root { --header-h: 92px; }
  .brand__name { font-size: 1.85rem; }
  .brand__tag { font-size: .68rem; }
}

/* ---------- Cabecera en móviles estrechos ---------- */
.menu-toggle, .lang { flex-shrink: 0; }
@media (max-width: 420px) {
  .site-header__inner { gap: 8px; }
  .brand__name { font-size: 1.16rem; }
  .brand__tag { font-size: .5rem; letter-spacing: .26em; }
  .lang { padding: 3px; }
  .lang a { padding: 4px 7px; font-size: .66rem; }
  .menu-toggle { width: 42px; height: 42px; }
  .menu-toggle span { left: 12px; right: 12px; }
  .menu-toggle span:first-child { top: 16px; }
  .menu-toggle span:last-child { top: 24px; }
  .menu-open .menu-toggle span:first-child, .menu-open .menu-toggle span:last-child { top: 20px; }
}

/* ---------- Desde 2012 ---------- */
.since { text-align: center; }
.since__title { font-size: clamp(2.2rem, 6vw, 5rem); letter-spacing: -.045em; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; padding: 70px 12px; } .lightbox__prev, .lightbox__next { position: absolute; bottom: 16px; } .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); } }
