/* =============================================================
   Astroid · styles.css
   Arquetipo: Cinematic 3D Storytelling (adaptado a la marca)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg-deep: #0A0118;      /* Cosmos */
  --bg-soft: #140430;      /* Noche */
  --nebula: #200650;
  --indigo: #22054A;
  --plasma: #9B29FF;       /* acento principal */
  --electric: #7303F9;
  --lavender: #795EF9;
  --glow: #CFA8FF;
  --text: #F6F3FB;
  --text-muted: #CABFE0;
  --text-dim: #8F84AB;
  --line: rgba(246, 243, 251, 0.12);
  --line-strong: rgba(155, 41, 255, 0.5);
  --panel: rgba(12, 2, 30, 0.88);
  --grad-text: linear-gradient(100deg, #ffffff 0%, #CFA8FF 45%, #9B29FF 100%);

  --display: "Clash Display", "Satoshi", "Segoe UI", system-ui, sans-serif;
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 22px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: var(--nav-h); }
body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
::selection { background: var(--plasma); color: #fff; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: #fff; color: var(--bg-deep); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; position: relative; }
.narrow { width: min(980px, 100% - var(--gutter) * 2); }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }
.grad { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Halo detrás del texto para legibilidad sobre el 3D */
.halo { position: relative; text-shadow: 0 2px 24px rgba(10, 1, 24, 0.85), 0 1px 3px rgba(10, 1, 24, 0.9); }
.halo .grad { text-shadow: none; }
.halo::before {
  content: ""; position: absolute; inset: -40px -50px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(10, 1, 24, 0.75) 0%, rgba(10, 1, 24, 0.4) 55%, transparent 75%);
  filter: blur(10px);
}

/* =============================================================
   4. Capas de fondo (escena 3D + contraste)
   ============================================================= */
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.space-fallback {
  position: fixed; inset: 0; z-index: 0; display: none;
  background:
    radial-gradient(60% 50% at 75% 35%, rgba(115, 3, 249, 0.45), transparent 70%),
    radial-gradient(40% 40% at 15% 85%, rgba(121, 94, 249, 0.25), transparent 70%),
    var(--bg-deep);
}
.no-webgl .space-fallback { display: block; }
#constellations { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: rgba(10, 1, 24, 0.22); }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(10, 1, 24, 0.45) 72%, rgba(10, 1, 24, 0.85) 100%),
    linear-gradient(180deg, rgba(10, 1, 24, 0.55) 0%, transparent 22%, transparent 75%, rgba(10, 1, 24, 0.6) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--electric), var(--glow)); }

main, .footer { position: relative; z-index: 3; }

/* =============================================================
   5. Components
   ============================================================= */
/* Presentación */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
}
.intro-on .intro::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 45% at 50% 50%, rgba(115, 3, 249, 0.22), transparent 70%); transition: opacity 0.8s var(--ease-out); }
.intro.is-leaving::before { opacity: 0; }
.intro-inner { display: grid; justify-items: center; text-align: center; gap: 26px; width: 100%; }
.intro-kicker { font-size: clamp(10px, 2.6vw, 12px); letter-spacing: clamp(0.12em, 0.8vw, 0.24em); text-transform: uppercase; color: var(--glow); opacity: 0; animation: introFade 1.2s 0.3s var(--ease-out) forwards; }
.intro-logo { position: relative; width: min(760px, 84vw); aspect-ratio: 1633 / 378; opacity: 0; filter: blur(18px); transform: scale(0.86); animation: introLogo 1.8s 0.5s var(--ease-out) forwards; }
.intro-logo .piece { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform, opacity; }
.intro-logo .piece[data-piece="a"] { transform-origin: 8.18% 64.8%; filter: drop-shadow(0 0 28px rgba(155, 41, 255, 0.55)); }
.intro-logo .piece[data-piece="star"] { transform-origin: 9.4% 57.7%; }
.intro-tag { font-size: clamp(17px, 2vw, 24px); color: var(--text-muted); min-height: 1.6em; opacity: 0; animation: introFade 1s 1.2s var(--ease-out) forwards; }
.intro-tag .caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--glow); animation: blink 1s steps(1) infinite; }
.intro-cta { opacity: 0; animation: introFade 1s 2.6s var(--ease-out) forwards; }
.intro-hint { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); opacity: 0; animation: introFade 1s 3s var(--ease-out) forwards; }
@keyframes introLogo { to { opacity: 1; filter: blur(0) drop-shadow(0 0 50px rgba(155, 41, 255, 0.45)); transform: none; } }
@keyframes introFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
.intro-on body { overflow: hidden; }
/* Oculto al instante durante la presentación; la suavidad solo aplica al aparecer */
.intro-on .nav, .intro-on main, .intro-on .footer, .intro-on .progress { opacity: 0; visibility: hidden; transition: none; }
main, .footer, .progress { transition: opacity 0.9s var(--ease-out), visibility 0.9s; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
}
.btn-light { background: #fff; color: var(--bg-deep); }
.btn-ghost { border: 1px solid var(--line-strong); color: #fff; background: rgba(10, 1, 24, 0.4); }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-light:hover { box-shadow: 0 0 0 6px rgba(155, 41, 255, 0.22), 0 18px 50px -12px rgba(155, 41, 255, 0.8); }
  .btn-ghost:hover { border-color: var(--glow); background: rgba(155, 41, 255, 0.15); }
}

/* Paneles (tarjetas opacas sobre el 3D) */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@supports (backdrop-filter: blur(12px)) {
  .panel { background: rgba(12, 2, 30, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

/* Kicker */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow); margin-bottom: 22px; }
.kicker .num { padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: #fff; letter-spacing: 0.05em; }
.spark { width: 10px; height: 10px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(0.5) rotate(45deg); opacity: 0.5; } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, opacity 0.9s var(--ease-out), visibility 0.9s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(10, 1, 24, 0.82); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(14px)) { .nav.is-solid { background: rgba(10, 1, 24, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: none; margin-left: auto; gap: 6px; }
.nav-links a { position: relative; padding: 8px 14px; font-size: 14px; color: var(--text-muted); transition: color 0.3s; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--glow); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
@media (hover: hover) { .nav-links a:hover { color: #fff; } .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav-cta { display: none; padding: 11px 20px; }
.nav-toggle { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-content: center; gap: 6px; background: rgba(10, 1, 24, 0.5); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform 0.4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 8px; background: rgba(10, 1, 24, 0.97);
}
.menu[hidden] { display: none; }
.menu a { font-family: var(--display); font-size: clamp(34px, 9vw, 52px); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu .menu-cta { margin-top: auto; border: 0; font-family: var(--sans); font-size: 16px; font-weight: 700; text-align: center; padding: 16px; border-radius: 999px; background: #fff; color: var(--bg-deep); }


/* =============================================================
   6. Sections
   ============================================================= */
.section { padding: clamp(110px, 16vh, 180px) 0; }
.section-title { font-size: clamp(38px, 7vw, 76px); max-width: 16ch; }
.section-sub { color: var(--text-muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; margin-top: 20px; }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 40px) 0 32px; }
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-size: clamp(44px, 10.5vw, 104px); max-width: 13ch; line-height: 0.98; }
.hero-sub { margin-top: 26px; max-width: 52ch; color: var(--text-muted); font-size: clamp(17px, 1.7vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-foot { display: flex; justify-content: center; gap: 30px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); padding-top: 30px; }
.hero-foot span:not(.hero-scroll) { display: none; }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll i { width: 1px; height: 32px; background: linear-gradient(var(--glow), transparent); animation: drop 2s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Tarjetas con gráfico o foto arriba (Lo que hacemos y Servicios) */
.card {
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(26, 8, 56, 0.92), rgba(12, 2, 30, 0.95));
}
.card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.card-head h3 { font-size: 30px; }
.card-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--electric), var(--lavender)); box-shadow: 0 10px 30px -10px rgba(115, 3, 249, 0.9);
}
.card-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Lo que hacemos */
.statement { font-size: clamp(32px, 5.2vw, 64px); font-weight: 500; line-height: 1.08; max-width: 24ch; }
.statement .dim { color: rgba(246, 243, 251, 0.45); }
.pillars { display: grid; gap: 16px; margin-top: 44px; }
.card-viz { height: 210px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 0%, rgba(155, 41, 255, 0.25), transparent 70%); }
.viz-doc { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: 84%; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.viz-doc-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); margin-bottom: 8px; }
.viz-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.viz-row .mono { margin-left: auto; color: var(--glow); font-size: 11px; }
.viz-ck { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; background: var(--plasma) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.viz-chart { position: absolute; inset: 20px 22px 16px; }
.viz-kpi { font-size: 11px; color: var(--text-dim); }
.viz-kpi b { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; color: #fff; }
.viz-goal { position: absolute; right: 0; top: 2px; font-size: 11px; padding: 5px 10px; border-radius: 99px; background: rgba(124, 243, 196, 0.12); color: #7CF3C4; border: 1px solid rgba(124, 243, 196, 0.3); }
.viz-chart svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 66%; }
.viz-chat { position: absolute; inset: 18px 20px; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; }
.viz-msg { max-width: 82%; font-size: 12.5px; line-height: 1.45; padding: 9px 13px; border-radius: 14px; color: #fff; }
.viz-me { align-self: flex-end; background: var(--plasma); border-bottom-right-radius: 4px; }
.viz-them { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); border-bottom-left-radius: 4px; }
.viz-them small { display: block; color: var(--glow); font-size: 10.5px; }
.viz-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }
.viz-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--glow); animation: typing 1s infinite; }
.viz-typing i:nth-child(2) { animation-delay: 0.15s; } .viz-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: 0.5; } }

/* Animación de los gráficos: arrancan cuando la tarjeta aparece */
.js .pillar .viz-row, .js .pillar .viz-msg, .js .pillar .viz-typing, .js .pillar .viz-area, .js .pillar .viz-dot { opacity: 0; }
.js .pillar .viz-line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.js .pillar.is-visible .viz-row { animation: vizIn 0.6s var(--ease-out) forwards; }
.js .pillar.is-visible .viz-row:nth-child(3) { animation-delay: 0.35s; }
.js .pillar.is-visible .viz-row:nth-child(4) { animation-delay: 0.7s; }
.js .pillar.is-visible .viz-line { animation: vizDraw 2s 0.3s var(--ease-out) forwards; }
.js .pillar.is-visible .viz-area { animation: vizFade 1.2s 1.1s forwards; }
.js .pillar.is-visible .viz-dot { animation: vizFade 0.4s 2.1s forwards; }
.js .pillar.is-visible .viz-me { animation: vizIn 0.5s 0.3s var(--ease-out) forwards; }
.js .pillar.is-visible .viz-them { animation: vizIn 0.5s 1.2s var(--ease-out) forwards; }
.js .pillar.is-visible .viz-typing { animation: vizFade 0.3s 2s forwards; }
@keyframes vizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vizDraw { to { stroke-dashoffset: 0; } }
@keyframes vizFade { to { opacity: 1; } }

/* Servicios */
.lines .section-title { max-width: none; font-size: clamp(36px, 4.6vw, 60px); }
.lines .section-sub { margin-top: 14px; }
.svc-grid { display: grid; gap: 16px; margin-top: 34px; }
.svc-photo { position: relative; height: 180px; overflow: hidden; border-bottom: 1px solid var(--line); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 1, 24, 0) 45%, rgba(18, 5, 42, 0.85) 100%); }
.svc-lead { color: #fff !important; margin-bottom: 12px; }
.svc-list { display: grid; gap: 7px; margin-bottom: 20px; }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 14.5px; line-height: 1.45; }
.svc-list li::before { content: ""; flex: 0 0 9px; height: 9px; margin-top: 6px; background: var(--glow); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.svc-more {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(155, 41, 255, 0.1);
  color: #fff; font-weight: 700; font-size: 14px; text-align: left; transition: background 0.3s, border-color 0.3s;
}
.svc-more span { font-family: var(--mono); font-size: 18px; color: var(--glow); }
/* Tarjetas interactivas: todas iguales; se destaca solo la que tiene el cursor encima */
.card, .plan, .ostep { position: relative; isolation: isolate; }
.card::before, .plan::before, .ostep::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(170deg, rgba(115, 3, 249, 0.5), rgba(20, 4, 48, 0.2) 75%); opacity: 0; transition: opacity 0.45s var(--ease-out);
}
.card, .plan, .ostep { transition: border-color 0.4s, box-shadow 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.svc-more span { transition: color 0.3s; }
@media (hover: hover) {
  .card:hover, .plan:hover, .ostep:hover,
  .card:focus-within, .plan:focus-within, .ostep:focus-within {
    border-color: rgba(207, 168, 255, 0.6); box-shadow: 0 30px 80px -30px rgba(115, 3, 249, 0.85), 0 0 0 1px rgba(155, 41, 255, 0.25);
  }
  .card:hover::before, .plan:hover::before, .ostep:hover::before,
  .card:focus-within::before, .plan:focus-within::before, .ostep:focus-within::before { opacity: 1; }
  html.js .card:hover, html.js .plan:hover, html.js .card:focus-within, html.js .plan:focus-within, .card:hover, .plan:hover { transform: translateY(-6px); }
  .svc:hover .svc-photo img { transform: scale(1.06); }
  .svc:hover .svc-more, .svc:focus-within .svc-more { background: #fff; color: var(--bg-deep); border-color: #fff; }
  .svc:hover .svc-more span, .svc:focus-within .svc-more span { color: var(--electric); }
}

/* Panel lateral con el detalle de cada servicio */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(5, 0, 13, 0.65); opacity: 0; transition: opacity 0.4s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(500px, 100%); overflow-y: auto; overscroll-behavior: contain;
  padding: 34px 32px 40px; background: #0f0326; border-left: 1px solid var(--line-strong); box-shadow: -30px 0 80px -20px rgba(115, 3, 249, 0.5);
  transform: translateX(100%); transition: transform 0.5s var(--ease-out);
}
.drawer-bg[hidden], .drawer[hidden], .drawer-panel[hidden] { display: none; }
.drawer.is-open { transform: none; }
.drawer-bg.is-open { opacity: 1; }
.drawer-close { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; color: #fff; }
.drawer .kicker { margin-bottom: 10px; }
.drawer h3 { font-size: 36px; margin-bottom: 8px; }
.drawer-intro { color: var(--text-muted); margin-bottom: 20px; }
.drawer-group { padding: 16px 0; border-top: 1px solid var(--line); }
.drawer-group h4 { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.drawer-group p { color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.drawer-group ul { display: flex; flex-wrap: wrap; gap: 7px; }
.drawer-group li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-muted); }
.drawer-cta { margin-top: 22px; }
.drawer-open body { overflow: hidden; }

/* Paquetes (compacto para verse completo en una pantalla) */
.plans .section-title { font-size: clamp(36px, 4.6vw, 60px); }
.plans .section-sub { margin-top: 14px; }
.plan-grid { display: grid; gap: 16px; margin-top: 30px; }
.plan { padding: 24px 24px 22px; display: flex; flex-direction: column; }
.plan-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); }
.plan h3 { font-size: 32px; margin: 8px 0 4px; }
.plan-for { color: var(--text-muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 16px; }
.plan-list { display: grid; gap: 10px; margin-bottom: 18px; }
.plan-list dt { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.plan-list dd { font-size: 14.5px; line-height: 1.5; color: var(--text); margin-top: -7px; }
.plan-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 13px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-price strong { font-family: var(--display); font-size: 21px; font-weight: 600; color: #fff; }
.plans-note { margin-top: 18px; color: var(--text-muted); font-size: 14px; max-width: 80ch; }

/* Proceso: órbita alrededor de tu marca (celular: lista vertical) */
.process .section-title { max-width: none; font-size: clamp(40px, 3.6vw, 64px); }
.process .section-sub { margin-top: 12px; max-width: 70ch; }
.orbit-map { position: relative; margin-top: 30px; }
.orbit-ring, .orbit-center { display: none; }
.orbit-steps { display: grid; gap: 14px; }
.ostep {
  position: relative; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 8, 56, 0.94), rgba(12, 2, 30, 0.96));
}
.ostep-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ostep .card-ico { width: 40px; height: 40px; border-radius: 12px; }
.ostep .card-ico svg { width: 20px; height: 20px; }
.ostep-n { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); }
.ostep h3 { font-size: 22px; line-height: 1.05; }
.ostep p { color: var(--text-muted); font-size: 14.5px; line-height: 1.45; }
.ostep-pill { display: inline-flex; margin-top: 10px; font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(124, 243, 196, 0.3); background: rgba(124, 243, 196, 0.08); color: #7CF3C4; }
.orbit-main { fill: none; stroke: url(#orbitGrad); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(155, 41, 255, 0.7)); }
.orbit-inner { fill: none; stroke: rgba(207, 168, 255, 0.18); stroke-dasharray: 2 8; vector-effect: non-scaling-stroke; }
.orbit-arrows path { fill: none; stroke: #CFA8FF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.orbit-nodes circle { fill: #fff; filter: drop-shadow(0 0 10px #9B29FF); animation: nodePulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.orbit-nodes circle:nth-child(2) { animation-delay: 0.6s; } .orbit-nodes circle:nth-child(3) { animation-delay: 1.2s; }
.orbit-nodes circle:nth-child(4) { animation-delay: 1.8s; } .orbit-nodes circle:nth-child(5) { animation-delay: 2.4s; }
@keyframes nodePulse { 50% { transform: scale(1.35); } }
.orbit-comet { fill: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px #9B29FF); }
.orbit-center { position: absolute; left: 50%; top: 51%; transform: translate(-50%, -50%); justify-items: center; gap: 10px; text-align: center; }
.orbit-glow { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(155, 41, 255, 0.45), rgba(155, 41, 255, 0) 70%); }
.orbit-glow img { width: 74px; height: auto; filter: drop-shadow(0 0 24px rgba(155, 41, 255, 0.9)); }
.orbit-center span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow); }
@media (min-width: 960px) {
  .orbit-map { height: 560px; margin-top: 18px; }
  .orbit-ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .orbit-center { display: grid; }
  .orbit-steps { display: block; }
  .ostep { position: absolute; left: var(--x); top: var(--y); width: clamp(220px, 21vw, 262px); transform: translate(-50%, -50%); }
  .js .ostep.reveal { transform: translate(-50%, calc(-50% + 30px)); }
  .js .ostep.reveal.is-visible { transform: translate(-50%, -50%); }
  .ostep:hover, .ostep:focus-within, .js .ostep.reveal.is-visible:hover { transform: translate(-50%, calc(-50% - 6px)); }
}

/* Preguntas */
.faq-list { display: grid; gap: 12px; margin-top: 48px; }
.faq-item { padding: 0 24px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-size: clamp(18px, 2vw, 22px); font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--glow); transition: transform 0.4s var(--ease-out); flex: 0 0 auto; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding-bottom: 22px; max-width: 70ch; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.contact-copy, .contact-grid > * { min-width: 0; }
.contact-title { font-size: clamp(36px, 6vw, 68px); max-width: 15ch; }
.channels { margin-top: 26px; display: grid; gap: 10px; font-size: 13px; }
.channels[hidden], .channels li[hidden] { display: none; }
/* Clientes: carrusel continuo con nombre y eslogan */
.clients { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 620px; }
.clients-title { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow); }
.clients-title::before { content: ""; width: 10px; height: 10px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.clients-sub { margin-top: 6px; font-size: 14px; color: var(--text-dim); }
.clients-viewport { display: flex; margin-top: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients-track { display: flex; gap: 12px; padding-right: 12px; flex: 0 0 auto; animation: clientsScroll 40s linear infinite; }
.clients-viewport:hover .clients-track { animation-play-state: paused; }
.client { display: flex; flex-direction: column; gap: 3px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(20, 4, 48, 0.75); white-space: nowrap; transition: border-color 0.3s, background 0.3s; }
.client b { font-family: var(--display); font-weight: 600; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.client span { font-size: 12.5px; color: var(--text-dim); }
@media (hover: hover) { .client:hover { border-color: rgba(207, 168, 255, 0.6); background: rgba(115, 3, 249, 0.35); } }
@keyframes clientsScroll { to { transform: translateX(-100%); } }
.channels li { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--text-dim); max-width: 440px; }
.channels b { font-weight: 500; color: var(--text); }
.form { padding: 30px 26px; display: grid; gap: 16px; position: relative; transform: perspective(1200px) rotateY(-4deg); transition: transform 0.8s var(--ease-out); }
@media (hover: hover) { .form:hover { transform: perspective(1200px) rotateY(0); } }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--text-muted); }
.field input, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05); color: #fff; transition: border-color 0.3s, background 0.3s;
}
.field select option { background: var(--bg-soft); }
.field input:focus, .field select:focus { outline: none; border-color: var(--glow); background: rgba(155, 41, 255, 0.1); }
.field input[aria-invalid="true"] { border-color: #ff8fae; }
.form-error { min-height: 1em; font-size: 14px; color: #ff8fae; }
.form-error:empty { display: none; }
.form-done { position: absolute; inset: 0; border-radius: var(--radius); background: rgba(12, 2, 30, 0.96); display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 30px; }
.form-done[hidden] { display: none; }
.form-done svg { width: 64px; height: 64px; fill: none; stroke: var(--glow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.8s var(--ease-out) forwards; }
.form-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done p { color: var(--text-muted); }
.form-done strong { color: #fff; font-size: 18px; }

/* Footer */
.footer { padding: 60px 0 50px; border-top: 1px solid var(--line); background: rgba(10, 1, 24, 0.85); }
.footer-inner { display: grid; justify-items: center; gap: 12px; text-align: center; }
.footer-inner img { height: 30px; width: auto; }
.footer-tag { font-family: var(--display); font-size: 22px; }
.footer-meta { font-size: 12px; color: var(--text-dim); }

/* =============================================================
   7. Effects
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }   /* defensivo: nunca texto invisible */
html.js .card.reveal, html.js .plan.reveal, html.js .ostep.reveal { transition: opacity 1s var(--ease-out), transform 0.8s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out); }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 720px) {
  .pillars, .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 540px) {
}
@media (min-width: 720px) {
  .hero-foot { justify-content: space-between; }
  .hero-foot span:not(.hero-scroll) { display: inline; }
  .form { padding: 36px; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; margin-left: 12px; }
  .nav-toggle { display: none; }
  .menu { display: none !important; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .pillars, .svc-grid { grid-template-columns: repeat(3, 1fr); }
  /* Lo que hacemos y Servicios ocupan una pantalla, centrados */
  .manifesto, .lines, .plans, .process { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 40px; }
  .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 70px; }
}

@media (min-width: 960px) and (max-height: 840px) {
  /* Portátiles de poca altura: todo más compacto para que la sección quepa */
  .manifesto, .lines, .plans, .process { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 20px; }
  .plans .section-title { font-size: 40px; }
  .plans .section-sub { font-size: 15px; margin-top: 8px; }
  .plans .kicker { margin-bottom: 12px; }
  .plan-grid { margin-top: 20px; }
  .plan { padding: 18px 20px 16px; }
  .plan h3 { font-size: 26px; margin: 4px 0 2px; }
  .plan-for { font-size: 13.5px; margin-bottom: 10px; }
  .plan-list { gap: 7px; margin-bottom: 12px; }
  .plan-list dd { font-size: 13.5px; line-height: 1.4; margin-top: -5px; }
  .plans-note { margin-top: 12px; font-size: 13px; }
}

@media (min-width: 1280px) and (min-height: 920px) {
  /* Pantallas grandes: paquetes más grande, alineado con el resto y centrado en vertical */
  .plans { padding: var(--nav-h) 0 0; }
  .plans .kicker { margin-bottom: 14px; }
  .plans .section-title { font-size: clamp(52px, 3.6vw, 66px); }
  .plans .section-sub { font-size: 19.5px; margin-top: 8px; max-width: 64ch; }
  .plan-grid { gap: 20px; margin-top: 26px; }
  .plan { padding: 26px 28px 22px; }
  .plan-tag { font-size: 12px; }
  .plan h3 { font-size: 40px; margin: 6px 0 4px; }
  .plan-for { font-size: 16px; margin-bottom: 14px; }
  .plan-list { gap: 9px; margin-bottom: 16px; }
  .plan-list dt { font-size: 11.5px; }
  .plan-list dd { font-size: 16px; line-height: 1.42; }
  .plan-price { padding-top: 14px; font-size: 14px; }
  .plan-price strong { font-size: 25px; }
  .plans-note { margin-top: 14px; font-size: 15px; }
}

/* =============================================================
   9. Reduced-motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll i, .spark { animation: none; }
}

/* ===================== Ajustes 2026-10-18 ===================== */
/* Botón por paquete */
.plan-cta { margin-top: 16px; }

/* Nota en el panel de publicidad */
.drawer-note { margin-top: 18px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--text-muted); font-size: 14px; }

/* Formulario: anti-spam invisible, autorización de datos y enlace alterno */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-muted); cursor: pointer; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--plasma); cursor: pointer; }
.consent a, .form-alt a, .form-error a { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }
.form-alt { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: -4px; }
.form-alt[hidden] { display: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #25D366; color: #06210f; font-weight: 700; font-size: 15px; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.55), 0 0 0 1px rgba(255,255,255,.15) inset; opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.wa-float[hidden] { display: none; }
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
@media (hover: hover) { .wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.7); } }
@media (max-width: 719px) { .wa-float { right: 14px; bottom: 14px; padding: 14px; } .wa-float span { display: none; } }
.drawer-open .wa-float { opacity: 0; pointer-events: none; }

/* Footer completo */
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
.footer-brand img { height: 30px; width: auto; }
.footer-tag { margin-top: 12px; font-family: var(--display); font-size: 20px; font-weight: 600; color: #fff; }
.footer-desc { margin-top: 8px; max-width: 360px; color: var(--text-dim); font-size: 14px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--text-muted); }
.footer-col a { color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col [hidden] { display: none; }
.footer-h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 4px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-dim); }
.footer-bottom a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (max-width: 719px) { .footer { padding-bottom: 90px; } }
.footer { padding-bottom: 100px; }
