/* =====================================================================
   EJAD Website — landing v2 (extraído del bundle standalone)
   Tipografía: Geist (sans local) + Fraunces italic + JetBrains Mono (Google Fonts)
   Fraunces variable con axis SOFT/OPSZ. JetBrains Mono variable 400..700.
   Paleta brand v1: purple #9816f4 / eggplant #362641 / green #5de877
   --------------------------------------------------------------------
   Secciones: Fonts / Reset / Vars / Nav / Hero + product mock /
              Logos / Feature intro + rail / Pinned feature stage /
              Stack cards / Horizontal strip / Marquee / Calculator /
              Quote / CTA / Footer / Responsive
   ===================================================================== */

/* ============ FUENTES (locales en public/fonts/v2) ============ */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/v2/geist-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/v2/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/v2/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Fraunces (italic display) y JetBrains Mono se cargan via Google Fonts en head.blade.php */

/* ============ VARS — paleta brand purple (override del terracota v2) ============ */
:root {
  /* fondo cálido neutro (mantiene la sensación premium del v2) */
  --bg: #f7f3ec;
  --bg-2: #fdfaf3;
  --surface: #ffffff;
  --surface-2: #f1ebdd;
  --line: rgba(54, 38, 65, .08);
  --line-2: rgba(54, 38, 65, .16);
  --ink: #1f1a14;
  --ink-2: #3c3528;
  --muted: #8a8273;
  --muted-2: #b8ad96;
  /* brand purple (reemplaza el terracota del bundle v2) */
  --accent: #9816f4;
  --accent-soft: #c882fb;
  --accent-deep: #362641;
  --accent-tint: rgba(152, 22, 244, .08);
  --good: #5de877;
  --grid: rgba(54, 38, 65, .04);
}

/* ============ RESET ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Tipografías base */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.serif { font-family: 'Fraunces', serif; font-weight: 400; }

/* Eyebrow tag con bullet brand */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  /* halo brand con pulse infinito tipo "live indicator" */
  box-shadow: 0 0 0 4px rgba(152, 22, 244, .15);
  animation: eyebrow-pulse 2.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes eyebrow-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(152, 22, 244, .15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(152, 22, 244, .04);
    transform: scale(1.1);
  }
}
/* respeto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

/* ============ BUTTONS — liquid hover ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .35s ease, border-color .35s ease, transform .25s cubic-bezier(.2,.7,.3,1.4);
  cursor: pointer;
}
.btn .btn-arrow { display: inline-block; transition: transform .4s cubic-bezier(.22,.61,.18,1); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-deep);
  transform: translateY(101%);
  transition: transform .55s cubic-bezier(.76,0,.24,1);
  z-index: -1; border-radius: 999px;
}
.btn:hover::before { transform: translateY(0); }
/* nota: el translateY(-2px) en hover lo controla GSAP via magnetic */

.btn-primary {
  background: var(--accent); color: #fff8ed;
}
.btn-primary:hover { color: #fff8ed; }

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-2);
  background: transparent;
}
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--bg-2); border-color: var(--ink); }

/* magnetic / dynamic underline label */
.btn-label {
  position: relative; display: inline-block; overflow: hidden; height: 1.15em;
}
.btn-label > span {
  display: block; transition: transform .45s cubic-bezier(.76,0,.24,1);
}
.btn-label > span:last-child { position: absolute; left: 0; top: 100%; }
.btn:hover .btn-label > span { transform: translateY(-100%); }

/* ============ GLASS UTILITY ============ */
.glass {
  background: rgba(255, 250, 240, .55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .55);
}

/* ============ NAV PILL FIJA ============ */
nav.top {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 250, 240, .55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  font-size: 13px;
}
nav.top .brand {
    width: 75px;
        line-height: 1;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-deep);
  overflow: hidden;
}
.brand-mark img { width: 18px; height: 18px; object-fit: contain; }
nav.top .links { display: flex; gap: 4px; padding: 0 8px; }
nav.top .links a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
nav.top .links a:hover { background: var(--surface-2); color: var(--ink); }
nav.top .nav-cta {
  background: var(--ink); color: var(--bg);
  padding: 8px 16px; border-radius: 999px; font-weight: 500;
  transition: background .25s, color .25s;
}
nav.top .nav-cta:hover { background: var(--accent); color: #fff8ed; }

/* ============ HERO ============ */
.hero { position: relative; padding: 160px 0 80px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; inset: -20% 10% auto 10%; height: 600px;
  background: radial-gradient(ellipse at center, rgba(152, 22, 244, .12), transparent 60%);
  pointer-events: none; will-change: transform;
}
.hero-inner { position: relative; text-align: center; }

/* Pill anuncio nuevo */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 250, 240, .55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-2);
  margin-bottom: 32px;
}
.pill-tag {
  background: var(--accent); color: #fff8ed;
  padding: 3px 9px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
}

h1.hero-h {
  font-family: 'Geist', sans-serif;
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 500; letter-spacing: -0.035em;
  line-height: 0.96; margin: 0 0 28px;
}
h1.hero-h em {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.02em;
}
.split-line { display: block; overflow: hidden; padding: 0.04em 0; line-height: 1.05; }
.split-line > span { display: inline-block; }

.hero-sub {
  font-size: 18px; line-height: 1.55;
  color: var(--muted); max-width: 580px; margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 56px; }
.hero-meta {
  display: flex; gap: 24px; justify-content: center;
  font-size: 12px; color: var(--muted);
  margin-bottom: 80px; flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before { content: '✓'; color: var(--good); }

/* Hero product mock */
.hero-product {
  position: relative; max-width: 1080px; margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .15));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .65);
  will-change: transform;
}
.hero-product::before {
  content: ''; position: absolute; inset: -60px;
  background:
    radial-gradient(circle at 20% 30%, rgba(152, 22, 244, .25), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(200, 130, 251, .22), transparent 45%);
  filter: blur(30px); z-index: -1;
  border-radius: 40px; opacity: .8;
}
.app { background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.app-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.traffic { display: flex; gap: 6px; }
.traffic span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.traffic span:nth-child(1) { background: #e36a5e; }
.traffic span:nth-child(2) { background: #e0c258; }
.traffic span:nth-child(3) { background: var(--good); }
.app-url {
  flex: 1; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted);
}
.app-body { display: grid; grid-template-columns: 200px 1fr; min-height: 540px; }
.app-side {
  border-right: 1px solid var(--line);
  padding: 16px 12px; background: var(--bg-2);
  display: flex; flex-direction: column; gap: 4px;
}
.app-side-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 10px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer; transition: background .15s, color .15s;
}
.nav-item.active { background: var(--accent); color: #fff8ed; }
.nav-item:hover:not(.active) { background: var(--surface-2); }
/* Iconos Lucide inline — heredan el color del nav-item para que se inviertan en .active */
.nav-item svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}
.nav-item .badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: var(--surface-2); padding: 2px 7px; border-radius: 999px;
  color: var(--muted);
}
.nav-item.active .badge { background: rgba(255, 248, 237, .25); color: #fff8ed; }
.app-main { padding: 22px 26px; overflow: hidden; }
.app-h { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.app-h>div{
    text-align: left;
}
.app-h h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400; font-size: 30px;
  letter-spacing: -0.02em; margin: 0;
}
.app-h .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.stat {
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px; padding: 14px 16px;
  transition: border-color .3s;
}
.stat:hover { border-color: var(--accent); }
.stat-l { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stat-v { font-family: 'Fraunces', serif; font-size: 30px; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat-d { font-size: 11px; color: var(--good); margin-top: 5px; }
.stat-d.dim { color: var(--muted); }
.footer-brand{
    width: 160px;
}
.app-table {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.app-table-h>span:nth-child(1) {
  text-align: left;
}
.app-table-h, .app-table-r {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr .9fr .8fr 90px; /* Name | Email | Phone | Family | Status */
  gap: 12px; padding: 11px 16px;
  align-items: center; font-size: 12px;
}
/* Truncar email/phone/family si son muy largos para no romper columnas */
.app-table-r > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-table-h {
  background: var(--surface-2); color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.app-table-r { border-top: 1px solid var(--line); transition: background .2s; }
.app-table-r:first-of-type { border-top: none; }
.app-table-r:hover { background: var(--accent-tint); }
.person { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-deep);
  display: grid; place-items: center;
  font-size: 10px; color: #fff8ed; font-weight: 600;
}
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em; text-transform: uppercase;
}
.tag.green { background: rgba(93, 232, 119, .18); color: #2f7a3d; }
.tag.amber { background: rgba(200, 140, 40, .15); color: #a8741e; }
.tag.gray  { background: var(--surface-2); color: var(--muted); }
.tag.blue  { background: rgba(152, 22, 244, .12); color: var(--accent); }

/* ============ LOGOS STRIP ============ */
.logos {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-l { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 32px; }
.logos-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px;
  align-items: center; max-width: 1080px; margin: 0 auto;
}
.logo-fake {
  height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
  font-family: 'Fraunces', serif;
  font-size: 19px; opacity: .7;
  transition: opacity .25s, color .25s;
  text-align: center;
}
.logo-fake:hover { opacity: 1; color: var(--accent); }

/* ============ SECTIONS BASE ============ */
.section { padding: 140px 0; position: relative; }
.section-h { max-width: 760px; margin: 0 auto 80px; text-align: center; }
h2.section-t {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500; letter-spacing: -0.03em;
  line-height: 1.02; margin: 18px 0 20px;
}
h2.section-t em {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 400; color: var(--accent);
}
.section-d { color: var(--muted); font-size: 17px; }

/* ============ FEATURE INTRO + RAIL DE 5 CHIPS ============ */
.feature-intro { padding: 160px 0 120px; position: relative; }
.fi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 80px; }
.fi-left h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 500; letter-spacing: -.035em;
  line-height: .98; margin: 22px 0 0;
}
.fi-left h2 em {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--accent); font-weight: 400;
}
.fi-right { padding-bottom: 14px; }
.fi-right p { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 22px; max-width: 480px; }
.fi-right p strong { color: var(--ink); font-weight: 500; }
.fi-right .scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.fi-right .scroll-cue::before {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}

.fi-rail {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; position: relative;
}
.fi-rail::before {
  content: ''; position: absolute; top: 26px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent);
  z-index: 0;
}
.fi-chip {
  background: rgba(255, 250, 240, .65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 10px;
  padding: 22px 20px;
  position: relative; z-index: 1;
  transition: border-color .35s;
}
.fi-chip:hover { border-color: var(--accent); }
.fi-chip-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--accent);
  margin-bottom: 16px;
  transition: background .3s, color .3s, border-color .3s;
}
.fi-chip:hover .fi-chip-num { background: var(--accent); color: #fff8ed; border-color: var(--accent); }
.fi-chip h4 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 22px; letter-spacing: -.015em; line-height: 1.1;
  margin: 0 0 6px; color: var(--ink);
}
.fi-chip p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ============ PINNED FEATURE STAGE (5 paneles, scroll-pin) ============ */
.feature-stage { position: relative; height: 500vh; }
.feature-stage-pin {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: center;
  padding: 0 56px; overflow: hidden;
}
.feature-text-wrap { position: relative; height: 320px; margin-left: 40px;}
.feature-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(40px);
}
.feature-text .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.feature-text h3 {
  font-family: 'Geist', sans-serif;
  font-size: 56px; font-weight: 500;
  letter-spacing: -.03em; line-height: 1.02;
  margin: 0 0 18px;
}
.feature-text h3 em {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--accent); font-weight: 400;
}
.feature-text p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 480px; margin: 0; }
.feature-visual-wrap {
  position: relative; height: 60vh;
  display: grid; place-items: center;
}
.feature-visual {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.92);
}
.feature-card {
  width: 100%; max-width: 540px;
  background: rgba(255, 250, 240, .65);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px; padding: 28px;
}
.fc-h { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.feature-progress {
  position: absolute; left: 56px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 10;
}
.fp-dot {
  width: 4px; height: 36px;
  background: var(--line-2);
  border-radius: 999px;
  transition: background .35s, height .35s;
}
.fp-dot.active { background: var(--accent); height: 56px; }

/* ============ STACKING CARDS (sticky overlap) ============ */
.stack-section { position: relative; padding: 100px 0; }
.stack-h { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.stack-h h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500; letter-spacing: -.03em;
  line-height: 1.02; margin: 16px 0;
}
.stack-h h2 em { font-family: 'Fraunces', serif; font-style: italic; color: var(--accent); font-weight: 400; }
.stack-list { max-width: 880px; margin: 0 auto; position: relative; }
.stack-card {
  position: sticky; top: 120px;
  background: rgba(255, 250, 240, .7);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  padding: 44px 48px; margin-bottom: 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  transform-origin: center top;
}
.stack-card .sc-num {
  font-family: 'Fraunces', serif;
  font-size: 80px; line-height: 1; color: var(--accent); opacity: .25;
  margin-bottom: 14px;
}
.stack-card h3 {
  font-family: 'Geist', sans-serif;
  font-size: 36px; font-weight: 500;
  letter-spacing: -.025em; line-height: 1.05;
  margin: 0 0 12px;
}
.stack-card h3 em { font-family: 'Fraunces', serif; font-style: italic; color: var(--accent); font-weight: 400; }
.stack-card p { color: var(--muted); margin: 0; line-height: 1.55; font-size: 15px; }
.stack-vis {
  aspect-ratio: 1.4 / 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--muted-2); font-family: 'Fraunces', serif;
  font-size: 36px; font-style: italic;
  overflow: hidden; position: relative;
}
.stack-vis-bars { display: flex; align-items: flex-end; gap: 8px; height: 60%; padding: 0 24px; width: 100%; box-sizing: border-box; }
.stack-vis-bars .bar { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .4; }
.stack-vis-bars .bar:nth-child(odd) { opacity: .8; }
.stack-vis-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 20px; width: 100%; box-sizing: border-box; }
.stack-vis-people > div { aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); }
.stack-vis-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 20px; width: 100%; box-sizing: border-box; }
.stack-vis-cal > div { aspect-ratio: 1; border-radius: 4px; background: var(--surface-2); }
.stack-vis-cal > div.on { background: var(--accent); }

/* ============ TRUST & SECURITY (4 cards en grid) ============ */
.trust-section {
  padding: 120px 0;
  position: relative;
}
.trust-h { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.trust-h h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500; letter-spacing: -.03em;
  line-height: 1.02; margin: 16px 0 14px;
}
.trust-h h2 em { font-family: 'Fraunces', serif; font-style: italic; color: var(--accent); font-weight: 400; }
.trust-h p { color: var(--muted); font-size: 17px; margin: 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1080px; margin: 0 auto;
}
.trust-card {
  background: rgba(255, 250, 240, .6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .35s;
}
.trust-card:hover { border-color: var(--accent); }
.trust-card .tc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-tint);
  border: 1px solid rgba(152, 22, 244, .22);
  display: grid; place-items: center;
  color: var(--accent);
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 22px; line-height: 1;
}
.trust-card h4 {
  font-family: 'Geist', sans-serif;
  font-size: 22px; font-weight: 500;
  letter-spacing: -.015em; line-height: 1.15;
  margin: 0; color: var(--ink);
}
.trust-card h4 em { font-family: 'Fraunces', serif; font-style: italic; color: var(--accent); font-weight: 400; }
.trust-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.trust-card .tc-tag {
  align-self: flex-start;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
}

/* ============ HORIZONTAL SCROLL STRIP ============ */
.horiz-section { overflow: hidden; padding: 80px 0; }
.horiz-h { text-align: center; max-width: 720px; margin: 0 auto 60px; padding: 0 32px; }
.horiz-h h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; margin: 16px 0; }
.horiz-h h2 em { font-family: 'Fraunces', serif; font-style: italic; color: var(--accent); font-weight: 400; }
.horiz-track {
  display: flex; gap: 24px;
  will-change: transform;
  padding: 0 56px;
}
.horiz-card {
  flex: 0 0 360px;
  aspect-ratio: 4 / 5;
  background: rgba(255, 250, 240, .65);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.horiz-card .hc-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent);
  letter-spacing: .1em; text-transform: uppercase;
}
.horiz-card h4 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 30px; letter-spacing: -.02em; line-height: 1.15;
  margin: 0 0 10px;
}
.horiz-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* ============ MOUSE-FOLLOW SPOTLIGHT (cards interactivas) ============ */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(var(--spot-size, 220px) circle at var(--mx, 50%) var(--my, 50%), rgba(152, 22, 244, .18), transparent 45%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none; z-index: 0;
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

.mini-chart {
  height: 180px; margin-top: 20px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px;
}
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; }
.chart-bars .bar {
  flex: 1; background: var(--accent);
  border-radius: 3px 3px 0 0; opacity: .35;
  transition: opacity .3s, height .5s cubic-bezier(.2,.7,.3,1.4);
}
.chart-bars .bar.active { opacity: 1; }

.mini-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.mini-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  transition: border-color .25s;
}
.mini-list-item:hover { border-color: var(--accent); }
/* Iconos Lucide inline dentro del item — tinte brand para que destaquen */
.mini-list-item > svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  color: var(--accent);
}

/* ============ MARQUEE (auto-loop + scroll-velocity) ============ */
.marquee-section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}
.marquee {
  display: flex; white-space: nowrap;
  will-change: transform;
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5.5vw, 84px);
  color: var(--ink);
  letter-spacing: -.02em; line-height: 1;
}
.marquee-item {
  display: inline-flex; align-items: center;
  padding: 0 36px; flex-shrink: 0;
}
.marquee-item .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  margin-left: 36px;
  transform: scale(0.6); opacity: .8;
}
.marquee-item em { font-style: italic; color: var(--accent); }

/* ============ CALCULADORA DE PRECIO ============ */
.calc-section {
  padding: 140px 0 160px;
  position: relative;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(152, 22, 244, .08), transparent 70%);
}
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 56px; align-items: start;
  max-width: 1120px; margin: 0 auto;
  position: relative; z-index: 1;
}
.calc-side h2 {
  font-size: 56px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.02;
  margin: 14px 0 20px;
}
.calc-side h2 em {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--accent); font-weight: 400;
}
.calc-side p { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 28px; }

.calc-formula {
  background: var(--accent-deep); color: #f4ece0;
  border-radius: 10px;
  padding: 22px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; line-height: 1.8;
}
.calc-formula .k { color: var(--accent-soft); }
.calc-formula .c { color: #8a8273; }
.calc-formula .v { color: #b3d1a6; }

.calc-card {
  background: rgba(255, 250, 240, .6);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  padding: 28px;
  position: relative;
}

.calc-h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.calc-h-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.billing-toggle {
  display: flex; gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.billing-toggle button {
  background: transparent; border: 0;
  color: var(--muted); font-size: 12px;
  padding: 6px 14px; border-radius: 999px;
  transition: all .25s; font-weight: 500;
}
.billing-toggle button.active { background: var(--accent); color: #fff8ed; }
.billing-toggle button .save {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; margin-left: 4px;
  padding: 1px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}

.calc-row { margin-bottom: 22px; }
.calc-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.calc-label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.calc-value {
  font-family: 'Fraunces', serif;
  font-size: 28px; color: var(--ink);
  letter-spacing: -.02em;
}
.calc-value .unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  margin-left: 4px; letter-spacing: .04em;
}

.slider {
  width: 100%; height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--line);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
  cursor: pointer;
}
.slider-marks {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
}
/* Marks clickeables: saltan el thumb directo a esa posición */
.slider-marks span {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  user-select: none;
}
.slider-marks span:hover { color: var(--accent); background: var(--accent-tint); }

.stepper {
  display: flex; align-items: center; gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden; width: fit-content;
}
.stepper button {
  background: transparent; border: 0;
  color: var(--ink-2);
  width: 38px; height: 38px;
  font-size: 16px;
  transition: background .15s, color .15s;
}
.stepper button:hover { background: var(--accent); color: #fff8ed; }
.stepper-v {
  min-width: 50px; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 500;
}

.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.module-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 10px;
  font-size: 13px;
  transition: border-color .25s, background .25s;
  user-select: none;
}
.module-chip.on {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--ink);
}
.module-checkbox {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  display: grid; place-items: center;
  flex-shrink: 0; transition: all .2s;
}
.module-chip.on .module-checkbox {
  background: var(--accent); border-color: var(--accent); color: #fff8ed;
}
.module-checkbox svg { opacity: 0; }
.module-chip.on .module-checkbox svg { opacity: 1; }
.module-chip .mod-price {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.module-chip.on .mod-price { color: var(--accent); }
/* Variante "incluido en plan" — el chip queda en estado neutral (no morado),
   el badge INCLUDED es la única señal visual de que está activo */
.module-chip.is-included { cursor: default; }
.module-chip.is-included:hover { border-color: rgba(255, 255, 255, .6); }
/* checkbox interior con el tick visible siempre, pero en color brand sutil sin fondo morado */
.module-chip.is-included .module-checkbox {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.module-chip.is-included .module-checkbox svg { opacity: 1; }
/* badge "INCLUDED" como pill purple chiquito — única señal de "esto está dentro" */
.module-chip.is-included .mod-price {
  font-size: 9px; padding: 3px 8px;
  background: rgba(152, 22, 244, .14);
  border-radius: 999px;
  font-weight: 500;
  color: var(--accent);
}

.calc-total {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px dashed var(--line-2);
}
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px; font-size: 13px; color: var(--muted);
}
.total-row.dim { font-size: 12px; }
.total-final {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.total-final-l { font-size: 14px; color: var(--ink-2); }
.total-final-v {
  font-family: 'Fraunces', serif;
  font-size: 60px; line-height: 1;
  letter-spacing: -.025em; color: var(--ink);
}
.total-final-v .per {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--muted);
  margin-left: 6px; letter-spacing: .04em;
}

.vs-market {
  margin-top: 14px; padding: 14px 16px;
  background: rgba(93, 232, 119, .12);
  border: 1px solid rgba(93, 232, 119, .35);
  border-radius: 10px;
  font-size: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.vs-market .label { color: var(--muted); }
.vs-market .save-amount {
  color: #2f7a3d;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.calc-foot { margin-top: 22px; display: flex; gap: 10px; }
.calc-foot .btn { flex: 1; justify-content: center; }

/* ============ QUOTE ============ */
.quote-section { padding: 100px 0; border-top: 1px solid var(--line); }
.quote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote .q-mark {
  font-family: 'Fraunces', serif;
  font-size: 80px; color: var(--accent);
  line-height: 0; margin-bottom: 30px; margin-top: 30px;
  display: block;
}
.quote-text {
  font-family: 'Fraunces', serif;
  font-size: 38px; line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink); margin: 0 0 28px;
}
.quote-author {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-size: 14px;
}
.quote-author .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-deep);
  color: #fff8ed; font-weight: 600;
  display: grid; place-items: center; font-size: 13px;
}

/* ============ CTA FINAL ============ */
.cta-section {
  padding: 140px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: -50% 20% auto 20%; height: 600px;
  background: radial-gradient(ellipse at center, rgba(152, 22, 244, .12), transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  position: relative;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.02;
  margin: 0 0 22px;
}
.cta-section h2 em {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--accent); font-weight: 400;
}
.cta-section .sub { color: var(--muted); font-size: 17px; max-width: 480px; margin: 0 auto 32px; position: relative; }
.cta-buttons { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px; margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--ink); }
.footer-grid h4 {
  color: var(--ink); font-size: 12px; font-weight: 500;
  margin: 0 0 14px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .1em; text-transform: uppercase;
}
.footer-grid a { display: block; padding: 5px 0; color: var(--muted); transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 12px;
}

/* ============ GSAP INITIAL STATES (anti-FOUC) ============ */
.gs-fadeup { opacity: 0; }
.gs-clip { clip-path: inset(0 100% 0 0); }
.gs-mask > span { transform: translateY(110%); display: inline-block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.top .links { display: none; }
  .fi-grid { grid-template-columns: 1fr; gap: 32px; }
  .fi-rail { grid-template-columns: repeat(2, 1fr); }
  .feature-stage-pin { grid-template-columns: 1fr; padding: 0 24px; }
  .feature-progress { display: none; }
  .stack-card { grid-template-columns: 1fr; padding: 32px 28px; }
  .trust-grid { grid-template-columns: 1fr; }
  .horiz-card { flex: 0 0 280px; }
  .hero { padding: 120px 0 60px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .app-side { display: none; }
  .app-body { grid-template-columns: 1fr; }
}
