/* ==========================================================================
   PORTENTO — Sistema de diseño
   Marca: violeta (#6D4DF6 / #4B3B99) + dorado (#E8B94D)
   ========================================================================== */

:root {
  /* — Base — */
  --void:        #07060B;
  --ink:         #0B0912;
  --surface:     #100D1A;
  --surface-2:   #16121F;
  --surface-3:   #1D1829;

  /* — Marca — */
  --violet:      #6D4DF6;
  --violet-lt:   #B4A0FF;
  --violet-dk:   #4B3B99;
  --violet-deep: #2A1F5C;
  --violet-rgb:  109, 77, 246;

  --gold:        #E8B94D;
  --gold-lt:     #F7DC9E;
  --gold-dk:     #B98F2E;
  --gold-rgb:    232, 185, 77;

  --magenta:     #B14DF6;
  --aqua:        #5EEAD4;

  /* — Texto — */
  --text:        #F4F2FA;
  --text-dim:    #C9C4DC;
  --text-muted:  #8E88A6;
  --text-faint:  #635D7C;

  /* — Líneas — */
  --line:        rgba(255,255,255,.06);
  --line-md:     rgba(255,255,255,.11);
  --line-lg:     rgba(255,255,255,.18);
  --line-violet: rgba(109,77,246,.32);
  --line-gold:   rgba(232,185,77,.30);

  /* — Tipografía — */
  --f-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --f-body:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* — Movimiento — */
  --ease:     cubic-bezier(.22,.75,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --spring:   cubic-bezier(.34,1.4,.64,1);

  /* — Métrica — */
  --wrap: 1220px;
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 72px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,.35);
  --shadow-md: 0 18px 46px -18px rgba(0,0,0,.75);
  --shadow-lg: 0 46px 110px -34px rgba(0,0,0,.9);
  --glow-violet: 0 0 0 1px rgba(109,77,246,.28), 0 22px 70px -26px rgba(109,77,246,.65);
  --glow-gold:   0 0 0 1px rgba(232,185,77,.30), 0 22px 70px -26px rgba(232,185,77,.45);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
/* OJO: no poner overflow-x en <html>. Al hacerlo, el propio <html> pasa a ser
   contenedor de scroll, window.scrollY se queda en 0 y los eventos de scroll
   dejan de llegar (se rompen nav fija, barra de progreso y animaciones).
   En <body> sí es seguro: se propaga al viewport y el scroll sigue siendo suyo. */
body { max-width: 100%; overflow-x: clip; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(109,77,246,.45); color: #fff; }

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

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--gold); color: #17130A; font-weight: 600; font-size: .88rem;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ── Textura de fondo ────────────────────────────────────────────────── */
.tex-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.tex-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(109,77,246,.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,77,246,.030) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
}

/* ── Tipografía ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(1.95rem, 4.1vw, 3.3rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.38rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.28; }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
p  { color: var(--text-dim); line-height: 1.78; font-size: 1.02rem; text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.26rem); line-height: 1.72; color: var(--text-dim); max-width: 62ch; }
.small { font-size: .88rem; line-height: 1.62; }

.grad-v {
  background: linear-gradient(112deg, var(--violet-lt) 0%, #EDE7FF 48%, var(--gold-lt) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.t-gold   { color: var(--gold); }
.t-violet { color: var(--violet-lt); }
.t-muted  { color: var(--text-muted); }

/* Kicker / etiqueta de sección */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: .70rem; font-weight: 500;
  letter-spacing: .19em; text-transform: uppercase; color: var(--gold);
}
.kicker::before {
  content: ""; width: 22px; height: 1px; flex: none;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kicker.is-violet { color: var(--violet-lt); }
.kicker.is-violet::before { background: linear-gradient(90deg, transparent, var(--violet-lt)); }

/* ── Layout ──────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-nar { max-width: 920px; }
section { position: relative; z-index: 2; padding-block: clamp(70px, 9.5vw, 126px); }
.sec-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head .kicker { margin-bottom: 20px; }
.sec-head h2 + p { margin-top: 20px; }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head.is-center .kicker::before { display: none; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 940px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-md) 22%, var(--line-md) 78%, transparent); }

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px;
  font-size: .90rem; font-weight: 600; letter-spacing: -.012em;
  white-space: nowrap; cursor: pointer; isolation: isolate;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-gold { background: var(--gold); color: #17130A; box-shadow: 0 10px 34px -12px rgba(232,185,77,.55); }
.btn-gold:hover { background: var(--gold-lt); box-shadow: 0 18px 48px -14px rgba(232,185,77,.75); }

.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 10px 34px -12px rgba(109,77,246,.7); }
.btn-violet:hover { background: #7E62FF; box-shadow: 0 18px 48px -14px rgba(109,77,246,.9); }

.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--line-md); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--line-lg); }

.btn-line { background: transparent; color: var(--text); border: 1px solid var(--line-violet); }
.btn-line:hover { border-color: var(--violet); background: rgba(109,77,246,.1); }

.btn-sm { padding: 10px 19px; font-size: .83rem; }
.btn-lg { padding: 17px 34px; font-size: .96rem; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.975); }

/* Enlace con flecha */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600; color: var(--gold);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .35s var(--spring); }
.link-arrow:hover { gap: 12px; color: var(--gold-lt); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Píldoras / chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--line-md); background: rgba(255,255,255,.025);
  font-family: var(--f-mono); font-size: .71rem; letter-spacing: .045em;
  color: var(--text-dim); white-space: nowrap;
}
.chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--violet-lt); flex: none; }
.chip.is-gold { border-color: var(--line-gold); color: var(--gold-lt); }
.chip.is-gold .chip-dot { background: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 11px; border-radius: 100px;
  border: 1px solid var(--line-violet); background: rgba(109,77,246,.09);
  font-family: var(--f-mono); font-size: .69rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--violet-lt); backdrop-filter: blur(8px);
}
.badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); flex: none; animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94,234,212,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(94,234,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,234,212,0); }
}

/* ── Tarjetas ────────────────────────────────────────────────────────── */
.card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, var(--surface) 0%, var(--ink) 100%);
  transition: transform .5s var(--ease-out), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(109,77,246,.16), transparent 62%);
  transition: opacity .45s var(--ease);
}
.card:hover { border-color: var(--line-md); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card.is-gold::before { background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(232,185,77,.13), transparent 62%); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--text-muted); }

.card-lit::after {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-violet), transparent);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card-lit:hover::after { opacity: 1; }

/* ── Animaciones de entrada ──────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; } .d5 { transition-delay: .40s; } .d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
}


/* ==========================================================================
   PORTENTO — Componentes
   ========================================================================== */

/* ── Barra de progreso de lectura ────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transition: transform .1s linear;
}

/* ── Navegación ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  height: var(--nav-h);
  transition: background .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(9,7,15,.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--violet) 0%, var(--violet-dk) 55%, var(--gold-dk) 130%);
  box-shadow: 0 6px 20px -8px rgba(109,77,246,.8);
}
.logo-mark svg { width: 19px; height: 19px; fill: #fff; }
.logo-text { font-family: var(--f-display); font-size: 1.14rem; font-weight: 700; letter-spacing: -.03em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: 100px;
  font-size: .89rem; font-weight: 500; color: var(--text-muted);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-lt), var(--gold));
}

/* Menú desplegable de servicios */
.has-drop { position: relative; }
.drop-btn { display: inline-flex; align-items: center; gap: 6px; }
.drop-btn svg { width: 12px; height: 12px; opacity: .6; transition: transform .3s var(--ease); }
.has-drop:hover .drop-btn svg, .has-drop.open .drop-btn svg { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(660px, 84vw); padding: 12px; border-radius: var(--r-lg);
  background: rgba(16,13,26,.96);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--line-md); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility .3s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.drop-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  transition: background .25s var(--ease);
}
.drop-item:hover { background: rgba(255,255,255,.05); }
.drop-ico {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: rgba(109,77,246,.13); border: 1px solid var(--line-violet);
}
.drop-ico svg { width: 17px; height: 17px; stroke: var(--violet-lt); fill: none; stroke-width: 1.7; }
.drop-item.is-new .drop-ico { background: rgba(232,185,77,.13); border-color: var(--line-gold); }
.drop-item.is-new .drop-ico svg { stroke: var(--gold); }
.drop-tt { font-size: .89rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.drop-dd { font-size: .78rem; color: var(--text-muted); line-height: 1.5; margin-top: 2px; }
.tag-new {
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 100px; background: var(--gold); color: #17130A; font-weight: 700;
}

.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* ── Selector de idioma ──────────────────────────────────────────────── */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 100px;
  border: 1px solid var(--line-md); background: rgba(255,255,255,.03);
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); transition: border-color .3s var(--ease), color .3s var(--ease);
}
.lang-btn:hover { border-color: var(--line-lg); color: var(--text); }
.lang-btn svg { width: 13px; height: 13px; opacity: .65; }
.lang-btn .caret { transition: transform .3s var(--ease); }
.lang.open .lang-btn .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 176px;
  padding: 6px; border-radius: var(--r-md);
  background: rgba(16,13,26,.97);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .32s var(--ease-out), visibility .28s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 10px; font-size: .87rem; color: var(--text-dim);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.lang-opt:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-opt.current { color: var(--gold); }
.lang-opt .flag { font-size: 1.05rem; line-height: 1; }
.lang-opt .code { margin-left: auto; font-family: var(--f-mono); font-size: .68rem; opacity: .55; letter-spacing: .08em; }

/* ── Menú móvil ──────────────────────────────────────────────────────── */
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-md); }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: transform .35s var(--spring), opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 140;
  background: rgba(7,6,11,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 28px var(--gutter) 48px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .4s var(--ease-out), visibility .35s;
}
.mobile.open { opacity: 1; visibility: visible; transform: none; }
.mobile-group + .mobile-group { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.mobile-label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.mobile-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-link:last-child { border-bottom: 0; }
.mobile-link svg { width: 15px; height: 15px; opacity: .4; }
.mobile-langs { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-langs .lang-opt { width: auto; border: 1px solid var(--line-md); }

@media (max-width: 1000px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: block; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 104px)); padding-bottom: clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .85; }
.hero-aurora { position: absolute; inset: -20% -10% auto; height: 130%; z-index: 0; pointer-events: none; filter: blur(72px); opacity: .55; }
.hero-aurora i {
  position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -6%;  top: 2%;  background: radial-gradient(circle, rgba(109,77,246,.75), transparent 66%); }
.hero-aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -4%; top: 14%; background: radial-gradient(circle, rgba(177,77,246,.5), transparent 66%); animation-delay: -7s; animation-duration: 27s; }
.hero-aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 34%;  top: 46%; background: radial-gradient(circle, rgba(232,185,77,.34), transparent 66%); animation-delay: -13s; animation-duration: 31s; }
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(4%, -6%, 0) scale(1.12); }
  100% { transform: translate3d(-5%, 5%, 0) scale(.94); }
}
.hero-in { position: relative; z-index: 3; }
.hero-title { margin: 22px 0 0; }
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: block; }
.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .82rem; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 14px; height: 14px; stroke: var(--aqua); fill: none; stroke-width: 2; }

/* Métricas del hero */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 30px);
  margin-top: clamp(48px, 6vw, 76px); padding-top: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
}
.hstat-num { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.045em; color: var(--text); }
.hstat-num span { color: var(--gold); }
.hstat-lb { margin-top: 9px; font-size: .82rem; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 620px) { .hero-stats { grid-template-columns: 1fr; gap: 18px; } .hstat-num { font-size: 2rem; } }

/* ── Marquesina ──────────────────────────────────────────────────────── */
.marquee { position: relative; z-index: 2; padding-block: 22px; border-block: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,.012); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 13px; padding-inline: 26px; font-family: var(--f-mono); font-size: .79rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.marquee-item::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .7; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--void), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--void), transparent); }

/* ── Servicios (rejilla) ─────────────────────────────────────────────── */
.svc {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 34px); border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: linear-gradient(168deg, var(--surface) 0%, var(--ink) 100%);
  transition: transform .5s var(--ease-out), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(430px circle at var(--mx,50%) var(--my,0%), rgba(109,77,246,.17), transparent 60%);
  transition: opacity .45s var(--ease);
}
.svc:hover { transform: translateY(-5px); border-color: var(--line-md); box-shadow: var(--shadow-md); }
.svc:hover::before { opacity: 1; }
.svc.is-featured { border-color: var(--line-gold); background: linear-gradient(168deg, rgba(232,185,77,.055) 0%, var(--ink) 62%); }
.svc.is-featured::before { background: radial-gradient(430px circle at var(--mx,50%) var(--my,0%), rgba(232,185,77,.15), transparent 60%); }

.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.svc-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: rgba(109,77,246,.12); border: 1px solid var(--line-violet);
  transition: transform .5s var(--spring), background .4s var(--ease);
}
.svc-ico svg { width: 22px; height: 22px; stroke: var(--violet-lt); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc-ico { transform: scale(1.08) rotate(-4deg); background: rgba(109,77,246,.2); }
.svc.is-featured .svc-ico { background: rgba(232,185,77,.13); border-color: var(--line-gold); }
.svc.is-featured .svc-ico svg { stroke: var(--gold); }
.svc-num { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--text-faint); }
.svc h3 { margin-bottom: 11px; }
.svc p { font-size: .94rem; color: var(--text-muted); flex: 1; }
.svc-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-foot .link-arrow { font-size: .85rem; }
.svc.is-featured .link-arrow { color: var(--gold); }

/* ── Bloque de dos columnas ──────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.is-rev > *:first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.is-rev > *:first-child { order: 0; } }

/* ── Lista de comprobación ───────────────────────────────────────────── */
.checks { display: grid; gap: 13px; margin-top: 26px; }
.check { display: flex; gap: 13px; align-items: flex-start; }
.check-ico {
  width: 21px; height: 21px; flex: none; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; background: rgba(94,234,212,.12); border: 1px solid rgba(94,234,212,.3);
}
.check-ico svg { width: 11px; height: 11px; stroke: var(--aqua); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.check p { font-size: .95rem; color: var(--text-dim); line-height: 1.6; }
.check p strong { display: block; color: var(--text); margin-bottom: 1px; }

/* ── Proceso / línea de tiempo ───────────────────────────────────────── */
.steps { display: grid; gap: clamp(16px, 2vw, 22px); grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(168deg, var(--surface) 0%, var(--ink) 100%); }
.step-n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--f-mono); font-size: .82rem; font-weight: 600; color: var(--gold);
  background: rgba(232,185,77,.1); border: 1px solid var(--line-gold);
}
.step h3 { font-size: 1.05rem; margin-bottom: 9px; }
.step p { font-size: .9rem; color: var(--text-muted); }
.step::after {
  content: ""; position: absolute; top: 47px; right: -13px; width: 10px; height: 1px; background: var(--line-md); z-index: 1;
}
.step:last-child::after { display: none; }
@media (max-width: 940px) { .step::after { display: none; } }

/* ── Diagrama de flujo (automatización) ──────────────────────────────── */
.flow { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: stretch; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px)  { .flow { grid-template-columns: 1fr; } }
.fnode {
  position: relative; padding: 20px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line-md); background: var(--surface);
  display: flex; flex-direction: column; gap: 9px;
}
.fnode-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(109,77,246,.13); border: 1px solid var(--line-violet); }
.fnode-ico svg { width: 16px; height: 16px; stroke: var(--violet-lt); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fnode-t { font-size: .88rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.fnode-d { font-size: .79rem; color: var(--text-muted); line-height: 1.55; }
.fnode-tag { font-family: var(--f-mono); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.fnode.is-end { border-color: var(--line-gold); background: linear-gradient(160deg, rgba(232,185,77,.07), var(--surface)); }
.fnode.is-end .fnode-ico { background: rgba(232,185,77,.13); border-color: var(--line-gold); }
.fnode.is-end .fnode-ico svg { stroke: var(--gold); }
.fnode::after {
  content: ""; position: absolute; top: 50%; right: -10px; width: 8px; height: 8px; z-index: 2;
  border-top: 1.5px solid var(--line-lg); border-right: 1.5px solid var(--line-lg);
  transform: translateY(-50%) rotate(45deg);
}
.fnode:last-child::after { display: none; }
@media (max-width: 1000px) { .fnode::after { display: none; } }

/* ── Portafolio ──────────────────────────────────────────────────────── */
.work { display: grid; gap: clamp(20px, 2.6vw, 30px); grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }
.work-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: linear-gradient(170deg, var(--surface) 0%, var(--ink) 100%);
  transition: transform .55s var(--ease-out), border-color .4s var(--ease), box-shadow .55s var(--ease);
}
.work-card:hover { transform: translateY(-6px); border-color: var(--line-md); box-shadow: var(--shadow-lg); }
.work-card.is-wide { grid-column: 1 / -1; }

.work-shot { position: relative; overflow: hidden; background: var(--void); aspect-ratio: 16 / 10; }
.work-card.is-wide .work-shot { aspect-ratio: 21 / 9; }
.work-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease);
  filter: saturate(.94);
}
.work-card:hover .work-shot img { transform: scale(1.045); filter: saturate(1.05); }
.work-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 42%, rgba(11,9,18,.86) 100%);
}
.work-badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 100px;
  background: rgba(7,6,11,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-md);
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim);
}
.work-badge.is-live { border-color: rgba(94,234,212,.34); color: var(--aqua); }
.work-badge.is-live .pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); animation: pulse 2.4s infinite; }

.work-body { padding: clamp(22px, 2.6vw, 30px); }
.work-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.work-cat { font-family: var(--f-mono); font-size: .67rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.work-body h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 11px; }
.work-body p { font-size: .95rem; color: var(--text-muted); }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.work-tag { font-family: var(--f-mono); font-size: .67rem; letter-spacing: .05em; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line); background: rgba(255,255,255,.022); color: var(--text-muted); }
.work-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.work-res { display: flex; gap: 22px; flex-wrap: wrap; }
.work-res-i strong { display: block; font-family: var(--f-display); font-size: 1.28rem; font-weight: 700; letter-spacing: -.03em; color: var(--gold); line-height: 1.1; }
.work-res-i span { font-size: .74rem; color: var(--text-faint); }

/* ── Caso destacado ──────────────────────────────────────────────────── */
.case {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-gold);
  background: linear-gradient(160deg, rgba(232,185,77,.06) 0%, var(--ink) 46%, var(--surface) 100%);
  padding: clamp(28px, 4vw, 56px);
}
.case::before {
  content: ""; position: absolute; top: -40%; right: -14%; width: 52%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,77,.16), transparent 66%); filter: blur(52px); pointer-events: none;
}
.case-in { position: relative; z-index: 2; }

/* ── Consola / demo de chat ──────────────────────────────────────────── */
.console {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-md);
  background: linear-gradient(170deg, var(--surface-2) 0%, var(--ink) 100%);
  box-shadow: var(--shadow-lg);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.console-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-lg); flex: none; }
.console-dot:nth-child(1) { background: rgba(232,120,120,.5); }
.console-dot:nth-child(2) { background: rgba(232,185,77,.5); }
.console-dot:nth-child(3) { background: rgba(94,234,212,.45); }
.console-title { margin-left: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; color: var(--text-faint); }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); }
.console-live .pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); animation: pulse 2.4s infinite; }
.console-body { padding: 20px 18px; min-height: 300px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .88rem; line-height: 1.55; opacity: 0; transform: translateY(8px); animation: msgIn .45s var(--ease-out) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot  { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-dim); border-bottom-left-radius: 5px; }
.msg.sys  { align-self: center; max-width: 92%; text-align: center; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); background: rgba(232,185,77,.08); border: 1px solid var(--line-gold); padding: 7px 14px; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); animation: bounce 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.console-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--text-faint); text-align: center; }

/* ── Comparativa ─────────────────────────────────────────────────────── */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
@media (max-width: 720px) { .vs { grid-template-columns: 1fr; } }
.vs-col { padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink); }
.vs-col.good { border-color: var(--line-violet); background: linear-gradient(165deg, rgba(109,77,246,.07), var(--ink)); }
.vs-h { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.vs-h h3 { font-size: 1.05rem; }
.vs-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.vs-col.good .vs-h .dot { background: var(--aqua); }
.vs-li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; font-size: .92rem; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.vs-li:last-child { border-bottom: 0; }
.vs-li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--text-faint); }
.vs-col.good .vs-li { color: var(--text-dim); }
.vs-col.good .vs-li svg { stroke: var(--aqua); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%;
  padding: 24px 0; text-align: left; font-size: clamp(1rem, 1.5vw, 1.1rem); font-weight: 600;
  font-family: var(--f-display); letter-spacing: -.02em; color: var(--text);
  transition: color .3s var(--ease);
}
.faq-q:hover { color: var(--gold); }
.faq-ico { width: 24px; height: 24px; flex: none; position: relative; margin-top: 2px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); border-radius: 2px;
  transform: translate(-50%,-50%); transition: transform .4s var(--spring), opacity .3s;
}
.faq-ico::before { width: 13px; height: 1.5px; }
.faq-ico::after  { width: 1.5px; height: 13px; }
.faq-i.open .faq-ico::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .45s var(--ease-out); }
.faq-a-in { padding: 0 44px 26px 0; }
.faq-a p { font-size: .96rem; color: var(--text-muted); }

/* ── CTA final ───────────────────────────────────────────────────────── */
.cta-final { position: relative; overflow: hidden; }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(44px, 6.5vw, 88px) clamp(24px, 4vw, 60px);
  border-radius: var(--r-xl); border: 1px solid var(--line-md);
  background: linear-gradient(158deg, var(--violet-deep) 0%, var(--ink) 52%, var(--surface) 100%);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px circle at 22% 8%,  rgba(109,77,246,.34), transparent 62%),
    radial-gradient(460px circle at 82% 92%, rgba(232,185,77,.20), transparent 62%);
}
.cta-in { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.cta-in .lead { margin: 20px auto 0; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.cta-mini { margin-top: 22px; font-size: .81rem; color: var(--text-faint); }

/* ── Cabecera de página interna ──────────────────────────────────────── */
.phead { position: relative; padding-top: calc(var(--nav-h) + clamp(46px, 7vw, 82px)); padding-bottom: clamp(38px, 5vw, 60px); overflow: hidden; }
.phead::before {
  content: ""; position: absolute; top: -46%; left: 50%; transform: translateX(-50%);
  width: 130%; aspect-ratio: 2.4; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(109,77,246,.24), transparent 62%); filter: blur(58px);
}
.phead-in { position: relative; z-index: 2; }
.crumbs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .71rem; letter-spacing: .07em; color: var(--text-faint); margin-bottom: 22px; }
.crumbs a { transition: color .25s var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: .45; }
.crumbs [aria-current] { color: var(--text-dim); }
.phead h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); }
.phead .lead { margin-top: 22px; }
.phead-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Franja de métricas */
.mstrip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
@media (max-width: 760px) { .mstrip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.mstrip-i { padding: clamp(20px, 2.6vw, 28px); background: var(--ink); }
.mstrip-n { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; color: var(--gold); }
.mstrip-l { margin-top: 7px; font-size: .8rem; color: var(--text-muted); line-height: 1.45; }

/* ── Pie ─────────────────────────────────────────────────────────────── */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 76px) 34px; background: linear-gradient(180deg, transparent, rgba(109,77,246,.035)); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 52px); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-about p { font-size: .9rem; color: var(--text-muted); margin-top: 16px; max-width: 34ch; }
.foot-social { display: flex; gap: 9px; margin-top: 22px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line-md); background: rgba(255,255,255,.022);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--spring);
}
.foot-social a:hover { border-color: var(--line-gold); background: rgba(232,185,77,.08); transform: translateY(-2px); }
.foot-social svg { width: 16px; height: 16px; fill: var(--text-muted); transition: fill .3s var(--ease); }
.foot-social a:hover svg { fill: var(--gold); }
.foot-h { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.foot-links { display: grid; gap: 11px; }
.foot-links a { font-size: .89rem; color: var(--text-muted); transition: color .25s var(--ease), padding-left .25s var(--ease); }
.foot-links a:hover { color: var(--gold); padding-left: 4px; }
.foot-bot { margin-top: clamp(38px, 5vw, 58px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-copy { font-size: .8rem; color: var(--text-faint); }
.foot-made { font-family: var(--f-mono); font-size: .71rem; letter-spacing: .06em; color: var(--text-faint); display: inline-flex; align-items: center; gap: 8px; }
.foot-made .pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); animation: pulse 2.4s infinite; }

/* ── WhatsApp flotante ───────────────────────────────────────────────── */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 130;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; box-shadow: 0 12px 34px -10px rgba(37,211,102,.7);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.wa:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 18px 44px -10px rgba(37,211,102,.85); }
.wa svg { width: 27px; height: 27px; fill: #fff; }
@media (max-width: 600px) { .wa { right: 14px; bottom: 14px; width: 50px; height: 50px; } .wa svg { width: 25px; height: 25px; } }

/* ── Cursor luminoso ─────────────────────────────────────────────────── */
.glow-cursor {
  position: fixed; top: 0; left: 0; z-index: 5; pointer-events: none;
  width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,77,246,.10), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease);
  will-change: transform;
}
@media (hover: none) { .glow-cursor { display: none; } }

/* ── Ajustes móviles y de alineación ─────────────────────────────────── */
/* El icono del check debe alinear con la primera línea, no centrarse
   verticalmente cuando el texto ocupa dos líneas. */
.hero-note { align-items: flex-start; }
.hero-note svg { margin-top: 4px; }

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; }
  .phead-cta { flex-direction: column; align-items: stretch; }
  .phead-cta .btn { width: 100%; }
  .badge { font-size: .62rem; letter-spacing: .12em; }
}

/* El selector de idioma ya no usa banderas: en Windows los emoji de bandera
   se dibujan como dos letras y duplicaban el código del idioma. */
.lang-btn svg:first-child { opacity: .5; }


/* ==========================================================================
   PORTENTO — Calculadora, filtros y remates
   ========================================================================== */

/* ── Calculadora de ahorro ───────────────────────────────────────────── */
.calc {
  margin-top: 32px; padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-lg); border: 1px solid var(--line-md);
  background: linear-gradient(168deg, var(--surface-2) 0%, var(--ink) 100%);
}
.calc-q + .calc-q { margin-top: 24px; }
.calc-lb { display: block; font-size: .93rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.calc-note { display: block; margin-top: 4px; font-size: .79rem; color: var(--text-faint); line-height: 1.5; }

.calc-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
@media (max-width: 480px) { .calc-opts { grid-template-columns: repeat(2, 1fr); } }
.calc-opt {
  padding: 11px 8px; border-radius: 12px; text-align: center;
  border: 1px solid var(--line-md); background: rgba(255,255,255,.022);
  font-family: var(--f-mono); font-size: .8rem; color: var(--text-dim);
  transition: border-color .28s var(--ease), background .28s var(--ease), color .28s var(--ease);
}
.calc-opt:hover { border-color: var(--line-lg); color: var(--text); }
.calc-opt.on { border-color: var(--gold); background: rgba(232,185,77,.11); color: var(--gold); }

.calc-input {
  width: 100%; margin-top: 14px; padding: 13px 16px;
  border-radius: 12px; border: 1px solid var(--line-md);
  background: rgba(255,255,255,.022); color: var(--text); font-size: .96rem;
  transition: border-color .28s var(--ease), background .28s var(--ease);
}
.calc-input::placeholder { color: var(--text-faint); }
.calc-input:focus { outline: none; border-color: var(--gold); background: rgba(232,185,77,.05); }
.calc-input::-webkit-outer-spin-button, .calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input[type=number] { -moz-appearance: textfield; }

.calc-err { display: none; margin: 14px 0 0; font-size: .84rem; color: #F0A0A0; }
.calc #calc-run { margin-top: 22px; }

.calc-out { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.calc-out[hidden] { display: none; }
.calc-bar-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: .88rem; color: var(--text-muted); }
.calc-bar-row strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.035em; color: var(--text); }
.calc-bar-row.is-good { margin-top: 12px; }
.calc-bar-track { height: 8px; margin-top: 10px; border-radius: 100px; background: rgba(255,255,255,.05); overflow: hidden; }
.calc-bar-fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width 1.1s var(--ease-out); }

.calc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
@media (max-width: 480px) { .calc-res { grid-template-columns: 1fr; } }
.calc-res-i { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.calc-res-i strong { display: block; font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.035em; color: var(--violet-lt); line-height: 1.1; }
.calc-res-i span { display: block; margin-top: 5px; font-size: .78rem; color: var(--text-faint); line-height: 1.4; }
.calc-disc { margin-top: 18px; font-size: .78rem; color: var(--text-faint); line-height: 1.55; }
.calc-out .btn-line { margin-top: 20px; }

/* ── Filtros del portafolio ──────────────────────────────────────────── */
.chip.filter { cursor: pointer; font-family: var(--f-mono); transition: border-color .28s var(--ease), background .28s var(--ease), color .28s var(--ease); }
.chip.filter:hover { border-color: var(--line-lg); color: var(--text); }
.chip.filter.on { border-color: var(--gold); background: rgba(232,185,77,.11); color: var(--gold); }

/* ── Ajustes finos ───────────────────────────────────────────────────── */
.card > .svc-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(109,77,246,.12); border: 1px solid var(--line-violet); }
.card > .svc-ico svg { width: 22px; height: 22px; stroke: var(--violet-lt); }
.card.is-gold > .svc-ico { background: rgba(232,185,77,.13); border-color: var(--line-gold); }
.card.is-gold > .svc-ico svg { stroke: var(--gold); }
.card .svc-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* La primera línea de .checks dentro de una tarjeta no necesita margen extra */
.card .checks:first-child { margin-top: 0; }

/* Enlaces del pie que en realidad son texto plano */
.foot-links span { display: block; }

/* Evitar que las tarjetas del portafolio ocultas rompan la rejilla */
.work-card[style*="display: none"] { display: none !important; }
