/* ===== Tokens — identidad Novva ===== */
:root {
  --bg: #fafafa;
  --bg-alt: #f0f3f7;
  --bg-card: #ffffff;
  --navy: #1e466b;
  --navy-deep: #163650;
  --black: #0d0d0d;
  --ink: #0d0d0d;
  --ink-soft: #4a5565;
  --ink-faint: #7b8696;
  --line: rgba(13, 13, 13, 0.1);
  --steel: #a9b8c9;
  --accent: var(--navy);
  --shadow: 0 30px 60px -34px rgba(30, 70, 107, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--navy); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.025em; }
h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.25; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.text-gradient { color: var(--navy); }

.section-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); font-weight: 700; margin-bottom: 16px;
}
.section-kicker::before { content: ""; width: 26px; height: 2px; background: var(--navy); }
.section-lead { max-width: 56ch; color: var(--ink-soft); font-size: 1.05rem; margin-top: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 16px 34px -18px rgba(30, 70, 107, 0.75); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(30, 70, 107, 0.85); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgba(13,13,13,0.22); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.btn-light { background: #fafafa; color: var(--navy); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }

/* ===== Logo ===== */
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo-mark { width: 34px; height: 34px; fill: currentColor; flex-shrink: 0; }
.logo-name { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.logo-lockup { display: flex; flex-direction: column; gap: 6px; }
.logo-sub { font-size: 0.5rem; font-weight: 500; letter-spacing: 0.46em; text-transform: uppercase; color: var(--ink); line-height: 1; white-space: nowrap; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(250, 250, 250, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: rgba(250, 250, 250, 0.97);
  box-shadow: 0 1px 0 var(--line);
  padding: 13px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.88rem; font-weight: 500; color: var(--ink-soft);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.main-nav a:hover { border-color: var(--navy); color: var(--ink); }

.header-cta { display: inline-flex; padding: 12px 24px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0 0 0 26%;
    background: var(--bg);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 28px; padding: 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 50px -30px rgba(13,13,13,0.4);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.4rem; color: var(--ink); font-weight: 600; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; z-index: 101; }
}
.nav-scrim {
  position: fixed; inset: 0; background: rgba(13,13,13,0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 99;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 160px 0 100px; overflow: hidden; }
.hero-net { position: absolute; inset: 0; z-index: 0; }
.hero-net svg { width: 100%; height: 100%; }
.net-dot { animation: netPulse 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.net-star { animation: starPulse 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes netPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@keyframes starPulse {
  0%, 100% { opacity: 0.55; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1.18) rotate(8deg); }
}
.hero::before {
  content: "";
  position: absolute; z-index: 0; right: -14%; top: -8%;
  width: min(70vw, 760px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(30,70,107,0.09), rgba(30,70,107,0) 100%);
}
.hero-orbit {
  position: absolute; z-index: 0; right: 2%; top: 50%;
  width: min(38vw, 520px); aspect-ratio: 1; transform: translateY(-48%);
  pointer-events: none;
}
.hero-orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit { fill: none; stroke: var(--steel); stroke-width: 1.2; stroke-dasharray: 3 7; opacity: 0.8; transform-origin: 200px 200px; }
.orbit-1 { animation: spin 70s linear infinite; }
.orbit-2 { animation: spin 50s linear infinite reverse; stroke: var(--navy); opacity: 0.35; }
.sat { transform-origin: 200px 200px; }
.sat-1 { animation: spin 26s linear infinite; }
.sat-2 { animation: spin 38s linear infinite reverse; }
.sat-3 { animation: spin 52s linear infinite; }
.orbit-star { transform-origin: 200px 200px; animation: breathe 7s ease-in-out infinite; }
.gsap .orbit-star { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.06) rotate(6deg); } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid rgba(13,13,13,0.35); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--navy); animation: cue 1.9s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin-left: max(0px, calc((100vw - 1180px) / 2)); margin-right: auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(30,70,107,0.28); background: rgba(255,255,255,0.6);
  padding: 9px 18px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.hero-lead { color: var(--ink-soft); max-width: 54ch; margin-top: 26px; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-stats { display: flex; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--navy); letter-spacing: -0.03em; }
.hero-stat > span { font-size: 0.82rem; color: var(--ink-faint); }

.reveal-words .word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.reveal-words .word { display: inline-block; transform: translateY(110%); will-change: transform; }
.reveal-fade { opacity: 0; transform: translateY(16px); }
.reveal-up { opacity: 0; transform: translateY(28px); }

/* ===== Sections ===== */
section { padding: 116px 0; }
.section-tight { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* Ticker */
.ticker { background: var(--navy); color: #fff; overflow: hidden; padding: 20px 0; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-set { display: flex; align-items: center; gap: 38px; padding-right: 38px; flex-shrink: 0; }
.ticker-set span { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.ticker-set svg { width: 16px; height: 16px; fill: var(--steel); flex-shrink: 0; }

/* Servicios: escenario */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 72px; margin-top: 40px; align-items: start; }
.svc-list { padding: 6vh 0; }
.svc-item { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; opacity: 0.32; transition: opacity 0.55s ease; cursor: pointer; }
.svc-item.is-active { opacity: 1; cursor: default; }
.svc-num { font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--steel); margin-bottom: 14px; transition: -webkit-text-stroke-color 0.5s ease, color 0.5s ease; }
.svc-item.is-active .svc-num { -webkit-text-stroke-color: var(--navy); color: rgba(30,70,107,0.08); }
.svc-item h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.svc-item p { color: var(--ink-soft); font-size: 0.98rem; max-width: 46ch; }
.svc-benefits { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.svc-benefits li { position: relative; padding-left: 22px; font-size: 0.86rem; color: var(--ink-soft); }
.svc-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--navy); font-weight: 800; }
.svc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.svc-pill { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--navy); background: rgba(30,70,107,0.09); border: 1px solid rgba(30,70,107,0.2); padding: 6px 13px; border-radius: 999px; }
.svc-meta a { font-size: 0.86rem; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.svc-meta a::after { content: "→"; transition: transform 0.3s var(--ease); }
.svc-meta a:hover::after { transform: translateX(5px); }

.svc-stage { position: sticky; top: calc(50vh - 270px); }
.svc-stage::before { content: ""; position: absolute; z-index: 0; inset: -34px -34px -34px 34px; border-radius: 28px; background: linear-gradient(145deg, rgba(30,70,107,0.14), rgba(30,70,107,0.03)); }
.svc-stage-frame { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 90px -46px rgba(30,70,107,0.55); }
.svc-stage-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #dfe6ee; border-bottom: 1px solid var(--line); }
.svc-stage-bar span { width: 10px; height: 10px; border-radius: 50%; background: #b3c0cf; }
.svc-url { margin-left: 14px; flex: 1; max-width: 340px; background: #fff; border-radius: 999px; padding: 5px 14px; font-style: normal; font-size: 0.72rem; font-weight: 500; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.25s ease; }
.svc-url.swap { opacity: 0; }
.svc-stage-body { position: relative; aspect-ratio: 16 / 11.5; background: #e9eef4; }
.svc-dots { position: relative; z-index: 1; display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.svc-dots button { width: 24px; height: 4px; border-radius: 2px; background: rgba(13,13,13,0.14); transition: width 0.4s var(--ease), background 0.4s ease; }
.svc-dots button.is-active { width: 46px; background: var(--navy); }

/* panel (visual de cada servicio) */
.svc-panel { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; background: #e9eef4; overflow: hidden; }
.panel-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.panel-shot .variant { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0s linear 0.55s; }
.panel-shot .variant.is-on { opacity: 1; visibility: visible; transition: opacity 0.55s ease, visibility 0s; }
.svc-stage-body .svc-panel { position: absolute; inset: 0; height: 100%; opacity: 0; visibility: hidden; transform: translateY(26px) scale(0.975); transition: opacity 0.6s ease, transform 0.8s var(--ease), visibility 0s linear 0.6s; }
.svc-stage-body .svc-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s ease 0.1s, transform 0.8s var(--ease) 0.1s, visibility 0s; }
.svc-stage-body .panel-shot.is-active .variant.is-on img { animation: shotIn 1.6s var(--ease) both; }
@keyframes shotIn { from { transform: scale(1.07); } to { transform: scale(1); } }
.panel-chat { padding: 24px; }
.panel-diagram { padding: 16px 22px; background: #f2f5f9; }
.panel-diagram svg { width: 100%; height: 100%; overflow: visible; }
.dg-label { transition: opacity 0.22s ease; }
.dg-label.swap { opacity: 0; }

/* selector de modelos */
.svc-variants { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.svc-variants-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
.svc-chip { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid rgba(13,13,13,0.16); border-radius: 999px; padding: 8px 16px; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease); }
.svc-chip:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.svc-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc-chip:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.svc-note { margin-top: 14px; font-size: 0.78rem; color: var(--ink-faint); max-width: 46ch; }

/* tienda online (demo) */
.panel-store { padding: 20px 24px; background: #f2f5f9; }
.store { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; box-shadow: 0 20px 40px -28px rgba(13,13,13,0.4); }
.store-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.store-bar b { font-size: 0.9rem; font-weight: 800; letter-spacing: -0.02em; }
.store-cart { position: relative; display: inline-flex; color: var(--navy); }
.store-cart svg { width: 22px; height: 22px; }
.store-count { position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--steel); color: #fff; font-size: 0.62rem; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.store-count.has { background: var(--navy); }
.store-count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 0; }
.store-card { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; border: 1px solid transparent; transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease); }
.store-card.is-pick { border-color: rgba(30,70,107,0.4); background: rgba(30,70,107,0.05); transform: translateY(-3px); }
.store-img { display: block; aspect-ratio: 1; border-radius: 8px; background: #dfe6ee; position: relative; overflow: hidden; }
.store-img::after { content: ""; position: absolute; width: 56%; height: 56%; left: 22%; top: 22%; background: var(--navy); opacity: 0.8; }
.store-img.s1::after { border-radius: 50%; }
.store-img.s2::after { border-radius: 10px; opacity: 0.55; }
.store-img.s3::after { border-radius: 50% 50% 8px 8px; opacity: 0.7; }
.store-img.s4::after { border-radius: 8px; transform: rotate(45deg) scale(0.8); opacity: 0.45; }
.store-card i { display: block; height: 6px; border-radius: 3px; background: #dfe6ee; }
.store-card i.short { width: 55%; background: #c9d4e0; }
.store-card u { text-decoration: none; text-align: center; font-size: 0.6rem; font-weight: 700; color: var(--navy); border: 1px solid rgba(30,70,107,0.3); border-radius: 6px; padding: 3px 0; transition: background 0.3s ease, color 0.3s ease; }
.store-card.is-pick u { background: var(--navy); color: #fff; }
.store-foot { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.store-foot span { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); background: #eef2f7; border-radius: 999px; padding: 4px 10px; }

@media (min-width: 960px) {
  .svc-list .svc-panel { display: none; }
}

@media (max-width: 959px) {
  .svc-layout { display: block; }
  .svc-list { padding: 0; margin-top: 12px; display: grid; gap: 22px; }
  .svc-stage { display: none; }
  .svc-item { min-height: 0; opacity: 1; cursor: default; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 0 0 28px; align-items: stretch; }
  .svc-item > *:not(.svc-panel) { margin-left: 26px; margin-right: 26px; }
  .svc-panel { order: -1; aspect-ratio: 16 / 11; margin-bottom: 24px; }
  .svc-item > p { max-width: none; }
  .svc-num { font-size: 2.6rem; margin-bottom: 8px; -webkit-text-stroke-color: var(--navy); color: rgba(30,70,107,0.08); }
  .svc-item .svc-meta { margin-top: 18px; }
  .panel-shot { padding-top: 0; }
  .panel-store, .panel-diagram, .panel-chat { aspect-ratio: auto; min-height: 230px; }
  .store-grid { gap: 6px; }
}

/* Chat demo */
.chat-demo { width: 100%; max-width: 280px; background: #f4f1ea; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; height: 100%; max-height: 230px; box-shadow: 0 18px 36px -24px rgba(13,13,13,0.4); }
.chat-demo-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy); color: #fff; }
.chat-demo-avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.chat-demo-header strong { display: block; font-size: 0.8rem; }
.chat-demo-header span { font-size: 0.68rem; color: #b9d3ea; }
.chat-demo-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: hidden; }
.chat-bubble { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 0.76rem; line-height: 1.45; animation: chatIn 0.3s ease; }
@keyframes chatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-bubble--user { align-self: flex-end; background: #d9ecd1; color: var(--ink); border-bottom-right-radius: 3px; }
.chat-bubble--bot { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 3px; box-shadow: 0 1px 2px rgba(13,13,13,0.08); }
.chat-bubble--typing { display: flex; gap: 4px; padding: 11px 13px; }
.chat-bubble--typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); animation: typingDot 1.1s infinite ease-in-out; }
.chat-bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* Diagrama de automatización */
.dg-paths path { stroke: var(--steel); stroke-width: 1.6; stroke-dasharray: 4 6; }
.dg-node rect { fill: #fff; stroke: rgba(30,70,107,0.35); stroke-width: 1.2; }
.dg-node text { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.dg-out rect { fill: rgba(30,70,107,0.08); stroke: var(--navy); }
.dg-out text { fill: var(--navy); }
.dg-dots circle { fill: var(--navy); }
.dg-ring { fill: none; stroke: var(--navy); stroke-width: 1.5; opacity: 0; transform-origin: 260px 180px; animation: dgRing 3.2s ease-out infinite; }
.dg-ring-2 { animation-delay: 1.6s; }
@keyframes dgRing { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }


/* Trabajos */
.works { overflow: hidden; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 44px; margin-top: 60px; padding-bottom: 72px; }
.case { display: block; }
.case:nth-child(even) { margin-top: 72px; margin-bottom: -72px; }
.case-frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -48px rgba(30,70,107,0.5); transition: transform 0.6s var(--ease), box-shadow 0.6s ease; }
.case:hover .case-frame { transform: translateY(-8px); box-shadow: 0 54px 90px -44px rgba(30,70,107,0.6); }
.case-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #e4e9f0; border-bottom: 1px solid var(--line); }
.case-bar span { width: 9px; height: 9px; border-radius: 50%; background: #b3c0cf; }
.case-bar i { margin-left: 12px; font-style: normal; font-size: 0.7rem; font-weight: 500; color: var(--ink-faint); background: #fff; border-radius: 999px; padding: 4px 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-view { position: relative; aspect-ratio: 900 / 540; overflow: hidden; background: #eef1f5; }
.case-img { width: 100%; height: auto; display: block; will-change: transform; }
.case-info { display: flex; align-items: flex-start; gap: 18px; padding: 24px 6px 0; }
.case-n { font-size: 0.92rem; font-weight: 800; letter-spacing: 0.06em; color: var(--steel); padding-top: 4px; }
.case-text { flex: 1; min-width: 0; }
.case-text h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.case-text p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 2px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.case-tags li { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; color: var(--navy); border: 1px solid rgba(30,70,107,0.25); border-radius: 999px; padding: 5px 12px; }
.case-link { font-size: 0.84rem; font-weight: 700; color: var(--navy); white-space: nowrap; padding-top: 6px; display: inline-flex; gap: 6px; }
.case-link::after { content: "→"; transition: transform 0.35s var(--ease); }
.case:hover .case-link::after { transform: translateX(6px); }
@media (max-width: 800px) {
  .cases { grid-template-columns: 1fr; gap: 54px; padding-bottom: 0; }
  .case:nth-child(even) { margin: 0; }
  .case-info { flex-wrap: wrap; }
  .case-link { width: 100%; padding-left: 40px; padding-top: 0; }
}

/* Process */
.process-list { position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-line { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--line); }
.process-line i { display: block; height: 100%; background: var(--navy); transform-origin: left center; }
.gsap .process-line i { transform: scaleX(0); }
.process-step { position: relative; padding-top: 54px; }
.process-dot { position: absolute; left: 0; top: 0; width: 30px; height: 30px; padding: 4px; background: var(--bg); fill: var(--steel); transition: fill 0.5s ease, transform 0.7s var(--ease); }
.process-step.is-on .process-dot { fill: var(--navy); transform: rotate(90deg) scale(1.15); }
.process-num { font-weight: 800; font-size: 1.7rem; margin-bottom: 12px; display: block; color: var(--navy); letter-spacing: -0.03em; }
.process-step h4 { font-size: 1.02rem; margin-bottom: 10px; }
.process-step p { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .process-list { grid-template-columns: 1fr 1fr; gap: 38px 30px; }
  .process-line { display: none; }
  .process-step { padding-top: 46px; }
  .process-dot { fill: var(--navy); }
}
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.team-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.team-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.1rem;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.team-role { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); font-weight: 700; margin-bottom: 14px; display: block; }
.team-card p { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  border-radius: 20px; padding: 68px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 85% 0%, rgba(255,255,255,0.12), rgba(255,255,255,0) 70%);
}
.cta-mark { position: absolute; left: -40px; bottom: -60px; width: 260px; height: 260px; fill: #fff; opacity: 0.07; }
.cta-band > *:not(.cta-mark) { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,0.78); margin-top: 14px; }
.cta-band .btn { margin-top: 28px; }
@media (max-width: 700px) { .cta-band { padding: 46px 26px; border-radius: 14px; } }

/* Footer */
.site-footer { padding: 64px 0 30px; background: var(--black); color: #fafafa; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 34px; }
.footer-brand .logo { color: #fafafa; }
.footer-brand .logo-name, .footer-brand .logo-sub { color: #fafafa; }
.footer-brand .logo-mark { width: 40px; height: 40px; }
.footer-brand .logo-name { font-size: 1.8rem; }
.footer-brand .logo-sub { font-size: 0.56rem; }
.footer-tagline { color: rgba(250,250,250,0.55); font-size: 0.86rem; margin-top: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(250,250,250,0.75); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(250,250,250,0.14); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-note { font-size: 0.76rem; color: rgba(250,250,250,0.5); }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -14px rgba(30,70,107,0.8);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.wa-float:hover { transform: scale(1.08); background: var(--navy-deep); }
.wa-float svg { width: 26px; height: 26px; }

@media (max-width: 700px) {
  section { padding: 78px 0; }
  .hero-orbit { opacity: 0.35; right: -22%; width: 90vw; }
  .scroll-cue { display: none; }
}

/* Barra de progreso */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--navy); transform-origin: left center; transform: scaleX(0); z-index: 200; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .svc-item { opacity: 1; }
}

/* tienda: vista animada dentro del panel de capturas */
.panel-shot .variant-store { display: flex; align-items: center; justify-content: center; padding: 20px 24px; background: #f2f5f9; }

/* paneles inactivos del stage: no deben recibir clics (sus variantes quedaban "visibles" para el puntero) */
.svc-stage-body .svc-panel:not(.is-active) { pointer-events: none; }
.svc-stage-body .svc-panel:not(.is-active) .variant { visibility: hidden; }
