/* ==========================================================================
   ASELLERACTION — Sistema de diseño (rediseño 2026)
   Identidad conservada: azul marino profundo, acento azul eléctrico,
   tipografías Chakra Petch + Archivo, concepto científico / laboratorio.
   ========================================================================== */

:root {
  /* Paleta */
  --navy-950: #00013a;
  --navy-900: #00024f;   /* fondo principal (identidad original) */
  --navy-850: #050a63;
  --navy-800: #0a1170;
  --navy-700: #131c8f;
  --blue:     #1a53ff;   /* acento primario (identidad original) */
  --blue-600: #0f3fe0;
  --cyan:     #14e0ff;   /* acento científico secundario */
  --magenta:  #b14bff;   /* acento verbo _activamos (estilo original) */
  --text:     #f5f7ff;
  --muted:    #a6b0e0;
  --muted-2:  #7d88bf;
  --line:     rgba(255,255,255,.12);
  --line-2:   rgba(255,255,255,.06);
  --panel:    rgba(255,255,255,.035);
  --panel-2:  rgba(255,255,255,.05);

  /* Tipografía */
  --font-head: "Chakra Petch", ui-monospace, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Medidas */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- Fondo científico global ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(26,83,255,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(20,224,255,.10), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 40%, var(--navy-950));
}
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 85%);
  opacity: .5;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
section { position: relative; padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---------- Tipografía ---------- */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 18px;
}
.eyebrow::before { content: "//"; color: var(--blue); font-weight: 700; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-title .accent { color: var(--blue); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mono { font-family: var(--font-head); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(26,83,255,.8); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 14px 38px -8px rgba(26,83,255,.95); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,1,40,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  font-family: var(--font-head); font-weight: 500; font-size: .93rem;
  color: var(--muted); padding: 9px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; background: var(--panel-2); }
.nav-cta { margin-left: 8px; }

/* Dropdown protocolos */
.nav-item { position: relative; }
.nav-item > a::after { content: "▾"; font-size: .7em; margin-left: .35rem; opacity: .6; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px; padding: 10px;
  background: rgba(6,10,70,.97); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s var(--ease); display: grid; gap: 2px;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { color: var(--muted); padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.dropdown a:hover { color: #fff; background: var(--panel-2); }

/* Toggle móvil */
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 90px) 0 90px; min-height: 88vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-kicker {
  font-family: var(--font-head); color: var(--cyan); letter-spacing: .18em; text-transform: uppercase;
  font-size: .82rem; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin-bottom: 24px; }
.hero h1 .tag { color: var(--blue); }
.hero-verbs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 26px; }
.hero-verbs span { font-family: var(--font-head); color: var(--muted); font-size: 1.05rem; }
.hero-verbs span::before { content: "_"; color: var(--cyan); }
.hero p.lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Panel visual del hero (molécula) */
.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-visual .ring {
  position: absolute; border: 1px solid var(--line); border-radius: 50%;
}
.hero-visual .ring.r1 { inset: 4%;  border-color: rgba(26,83,255,.35); }
.hero-visual .ring.r2 { inset: 18%; border-color: rgba(20,224,255,.25); }
.hero-visual .ring.r3 { inset: 32%; border-color: var(--line); }
.hero-visual .core {
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--blue), #0a1170 70%);
  box-shadow: 0 0 80px -6px rgba(26,83,255,.65), inset 0 0 40px rgba(20,224,255,.35);
  display: grid; place-items: center;
}
.hero-visual .core img { width: 54%; filter: drop-shadow(0 6px 20px rgba(0,0,0,.4)); }
.hero-visual .node {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 16px var(--cyan);
}
.spin { animation: spin 40s linear infinite; }
.spin-rev { animation: spin 55s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Órbitas con íconos y logos girando */
.orbit {
  position: absolute; border-radius: 50%; border: 1px solid var(--line);
  transform-origin: center;
}
.orbit.o-outer { inset: 3%;  border-color: rgba(26,83,255,.35); }
.orbit.o-mid   { inset: 24%; border-color: rgba(20,224,255,.28); }
.orbit.dir-cw  { animation: spin var(--dur,46s) linear infinite; }
.orbit.dir-ccw { animation: spin var(--dur,60s) linear infinite reverse; }
.orb { position: absolute; transform: translate(-50%,-50%); }
.orb-in { display: grid; place-items: center; }
.orbit.dir-cw  .orb-in { animation: spin var(--dur,46s) linear infinite reverse; }
.orbit.dir-ccw .orb-in { animation: spin var(--dur,60s) linear infinite; }
/* chip de logo de marca */
.orb-logo {
  width: 62px; height: 40px; padding: 0 8px; border-radius: 10px;
  background: rgba(4,8,64,.9); border: 1px solid var(--line);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.7); backdrop-filter: blur(4px);
}
.orb-logo img { max-height: 20px; width: auto; opacity: .95; filter: grayscale(1) brightness(2.4); }
/* chip de ícono de servicio */
.orb-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(150deg, rgba(26,83,255,.9), rgba(15,63,224,.9));
  border: 1px solid rgba(20,224,255,.5); color: #fff;
  box-shadow: 0 0 22px -4px rgba(26,83,255,.8);
}
.orb-icon svg { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .orb-logo { width: 50px; height: 32px; }
  .orb-logo img { max-height: 15px; }
  .orb-icon { width: 38px; height: 38px; }
  .orb-icon svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .spin, .spin-rev, .orbit, .orb-in { animation: none !important; }
}

/* ---------- Hero HUD (recreación del sitio original con sus assets) ---------- */
.hud-stage { position: relative; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 1; }
.hud-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Hero shapes: animated via GSAP timeline in index.html (entrada + rotación).
   No CSS animation here para no pisar los transforms inline de GSAP. */
#shape_background { opacity: .95; }
#shape_gradient { opacity: .5; mix-blend-mode: screen; }
#shape_icons { transform-origin: 50% 50%; }
#shape_logos { transform-origin: 50% 50%; }
#shape_center_logo { mix-blend-mode: screen; transform-origin: 50% 50%; }

/* Verbos grandes en color (estilo original) */
.hero-verbs.big { display: block; margin: 8px 0 22px; }
.hero-verbs.big span {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.16; letter-spacing: -.01em;
}
.hero-verbs.big span::before { content: none; }
.hero-verbs.big .v1 { color: var(--cyan); }
.hero-verbs.big .v2 { color: var(--magenta); }
.hero-verbs.big .v3 { color: #fff; }
.ecosistema-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--blue);
  background: #fff; padding: 6px 16px; border-radius: 8px; margin: 2px 0 26px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
.hud-partners { margin-top: 30px; }
.hud-partners img { width: 100%; max-width: 408px; max-height: none; opacity: .95; }

@media (max-width: 980px) {
  .hud-stage { max-width: 440px; }
}

/* ---------- Partners strip ---------- */
.partners-strip { border-block: 1px solid var(--line); padding: 26px 0; }
.partners-strip .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.partners-strip img { height: 30px; width: auto; opacity: .72; filter: grayscale(1) brightness(2); transition: .3s; }
.partners-strip img:hover { opacity: 1; filter: none; }

/* ---------- Grillas de tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .28s var(--ease), border-color .28s, background .28s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: rgba(26,83,255,.6); background: var(--panel-2); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(26,83,255,.25), rgba(20,224,255,.12));
  border: 1px solid var(--line); margin-bottom: 20px; color: var(--cyan);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card .kicker { font-family: var(--font-head); color: var(--blue); font-weight: 600; font-size: .82rem; letter-spacing: .06em; display: block; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .num { position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-size: 2.4rem; color: rgba(255,255,255,.06); font-weight: 700; }

/* Card enlazable */
a.card { display: block; }
a.card .more { margin-top: 18px; color: var(--cyan); font-family: var(--font-head); font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
a.card:hover .more { gap: .7rem; }

/* ---------- Bloque split (imagen + texto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); border: 1px solid var(--line); width: 100%; }
.split-media { position: relative; }
.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li { display: flex; gap: 14px; color: var(--muted); align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px;
  background: linear-gradient(150deg, var(--blue), var(--cyan));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.check-list li strong { color: var(--text); font-weight: 600; }

/* ---------- Sección Tu Tienda Online (panel cut-corner) ---------- */
.tienda-panel {
  background: linear-gradient(135deg, rgba(26,83,255,.18), rgba(20,224,255,.05));
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  padding: 40px;
}
.tienda-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.tnube-evol { height: 74px; width: auto; margin-bottom: 22px; }
.tienda-tag {
  background: #fff; color: var(--blue); font-family: var(--font-head); font-weight: 600;
  padding: 12px 18px; border-radius: 8px; margin-bottom: 22px; line-height: 1.4;
}
.tienda-media img { width: 100%; border-radius: 10px; }
.cut-corner { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
.feature-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.feature-head .fic { width: 46px; height: 46px; flex: none; }
.feature-head .fic img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 980px) {
  .tienda-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat .n { font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem); color: #fff; line-height: 1; }
.stat .n .accent { color: var(--cyan); }
.stat .l { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 50px; }
.page-hero .breadcrumb { font-family: var(--font-head); color: var(--muted-2); font-size: .85rem; margin-bottom: 16px; }
.page-hero .breadcrumb a:hover { color: var(--cyan); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 20px; }
.page-hero .tag-chip {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; margin-bottom: 20px;
}
/* dos columnas con imagen propia de cada sección (estilo original) */
.ph-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ph-misc { height: 26px; width: auto; opacity: .9; margin-bottom: 18px; }
.font-big { font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 1.03; }
.text-gradient {
  background: linear-gradient(96deg, #ffffff 0%, var(--cyan) 45%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ph-media { position: relative; display: grid; place-items: center; }
.ph-media::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(26,83,255,.5), transparent 62%);
  filter: blur(20px); z-index: 0;
}
.ph-media img { position: relative; z-index: 1; width: 100%; max-width: 480px; filter: drop-shadow(0 24px 60px rgba(0,0,0,.5)); }
.ph-media.no-img { display: none; }
.ph-media.no-img + .ph-text, .ph-grid.solo { grid-template-columns: 1fr; }
@media (max-width: 980px) {
  .ph-grid { grid-template-columns: 1fr; gap: 30px; }
  .ph-media { order: -1; max-width: 380px; margin-inline: auto; }
}

/* ---------- Clientes marquee ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 34px; width: auto; transition: .3s; }
.marquee img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pricing ---------- */
.price-note { color: var(--muted-2); font-size: .9rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; transition: transform .28s var(--ease), border-color .28s;
  position: relative;
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(26,83,255,.6); }
.price-card.featured { border-color: var(--blue); background: linear-gradient(180deg, rgba(26,83,255,.14), rgba(255,255,255,.03)); }
.price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-family: var(--font-head); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card .plan-letter { font-family: var(--font-head); font-size: 2.4rem; color: var(--cyan); line-height: 1; }
.price-card .plan-scope { font-family: var(--font-head); font-size: 1.35rem; color: #fff; margin: 8px 0 4px; }
.price-card .plan-sub { color: var(--muted); font-size: .92rem; min-height: 42px; }
.price-card .plan-price { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin: 18px 0; }
.price-card .plan-price small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.price-card ul { display: grid; gap: 10px; margin: 8px 0 24px; }
.price-card ul li { color: var(--muted); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.price-card ul li::before { content: "+"; color: var(--cyan); font-family: var(--font-head); font-weight: 700; }
.price-card .btn { margin-top: auto; }

.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.module {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px;
  background: var(--panel); position: relative; overflow: hidden;
}
.module h3 { font-size: 1.4rem; margin-bottom: 6px; }
.module .tagline { color: var(--cyan); font-family: var(--font-head); font-size: .85rem; letter-spacing: .06em; margin-bottom: 14px; }
.module p { color: var(--muted); }
.discount-banner {
  margin-top: 22px; text-align: center; border: 1px dashed rgba(20,224,255,.5); border-radius: var(--radius);
  padding: 18px; color: var(--text); background: rgba(20,224,255,.05);
}
.discount-banner strong { color: var(--cyan); }

/* ---------- Contacto / CTA ---------- */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 54px;
  background: linear-gradient(140deg, rgba(26,83,255,.22), rgba(20,224,255,.06));
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 14px; }
.cta-band .btn { margin-top: 26px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font: inherit; transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: rgba(26,83,255,.06); }
.form textarea { min-height: 130px; resize: vertical; }
.form label { font-size: .8rem; color: var(--muted); font-family: var(--font-head); letter-spacing: .04em; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--panel); }
.office h4 { color: var(--cyan); font-size: .95rem; letter-spacing: .04em; margin-bottom: 6px; }
.office p { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-brand .socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-brand .socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: .2s; }
.footer-brand .socials a:hover { color: var(--cyan); border-color: var(--cyan); }
.footer-col h5 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted); padding: 6px 0; font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 46px; padding-top: 26px; color: var(--muted-2); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; order: -1; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .split.rev .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(4,8,64,.98); backdrop-filter: blur(16px);
    padding: 16px 20px 26px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease); max-height: calc(100vh - var(--nav-h)); overflow: auto;
  }
  .nav-menu.open { transform: none; }
  .nav-menu a { padding: 13px 12px; }
  .nav-toggle { display: block; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 4px 0 4px 14px; }
  .nav-item:hover .dropdown { transform: none; }
  section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4, .module-grid, .stats { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .form .row { grid-template-columns: 1fr; }
}

/* ---------- CTA destacado "pricing LAB" ---------- */
.nav-cta.nav-lab { position: relative; letter-spacing: .02em; animation: labpulse 2.6s ease-in-out infinite; }
.nav-cta.nav-lab .lab { color: var(--cyan); font-weight: 700; }
@keyframes labpulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(20,224,255,.45), 0 8px 26px -8px rgba(26,83,255,.85); }
  50%     { box-shadow: 0 0 0 2px rgba(20,224,255,.9),  0 12px 34px -6px rgba(26,83,255,1); }
}
@media (prefers-reduced-motion: reduce){ .nav-cta.nav-lab { animation: none; } }


/* ==========================================================================
   GRID TÉCNICO (v2) — capa de overrides sobre el sistema base
   Estética elegida: grilla visible, esquinas rectas, labels técnicos.
   ========================================================================== */
:root { --radius: 0; --radius-lg: 0; }
body::before { background: linear-gradient(180deg, var(--navy-950), var(--navy-950)); }
body::after { opacity: .3; mask-image: none; -webkit-mask-image: none; }
section, .section-sm { border-bottom: 1px solid var(--line); }
.hero { border-bottom: 1px solid var(--line); }

/* Botones cuadrados, técnicos */
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: .07em; font-size: .87rem; }
.btn:hover { transform: none; }
.btn-primary { box-shadow: none; }
.btn-primary:hover { box-shadow: none; }

/* Navbar con línea siempre visible */
.nav { background: rgba(0,1,58,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-menu a { border-radius: 0; text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }
.nav-cta.nav-lab { background: var(--cyan); color: var(--navy-950); animation: none; }
.nav-cta.nav-lab:hover { background: #7eecff; }
.nav-cta.nav-lab .lab { color: var(--navy-950); }
.dropdown, .dropdown a { border-radius: 0; }
.dropdown a { text-transform: none; letter-spacing: 0; font-size: .9rem; }

/* Grillas de tarjetas con bordes compartidos (1px) */
.grid { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--navy-950); }
.card { border: 0; border-radius: 0; background: var(--navy-950); }
.card:hover { transform: none; background: var(--panel-2); border-color: transparent; }
.card .icon { border-radius: 0; }

/* Paneles y bloques rectos */
.tienda-panel { clip-path: none; border: 1px solid var(--line); background: var(--panel); }
.tienda-tag { border-radius: 0; }
.tienda-media img { border-radius: 0; }
.cut-corner { clip-path: none; border: 1px solid var(--line); }
.split-media img { border-radius: 0; }
.check-list li::before { border-radius: 0; }
.stat, .office, .module, .price-card, .cta-band, .discount-banner { border-radius: 0; }
.tag-chip, .price-card .badge, .ecosistema-tag { border-radius: 0; }
.form input, .form textarea { border-radius: 0; }
.footer-brand .socials a { border-radius: 0; }
.orb-logo { border-radius: 0; }

.cta-band { background: radial-gradient(700px 300px at 50% 50%, rgba(26,83,255,.22), transparent 70%); border: 1px solid var(--line); }

/* ==========================================================================
   MAC WINDOWS — mockups de dashboard con datos de impacto (sin imágenes)
   ========================================================================== */
.mac-win { border: 1px solid var(--line); background: #020530; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); width: 100%; }
.mac-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.mac-dots { display: flex; gap: 7px; }
.mac-dots span { width: 11px; height: 11px; border-radius: 50%; }
.mac-dots span:nth-child(1) { background: #ff5f57; }
.mac-dots span:nth-child(2) { background: #febc2e; }
.mac-dots span:nth-child(3) { background: #28c840; }
.mac-title { font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; margin-inline: auto; }
.mac-body { padding: 22px; display: grid; gap: 18px; }
.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kpi { background: #020530; padding: 14px 16px; }
.kpi .kn { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; line-height: 1.1; }
.kpi .kn .up { color: var(--cyan); font-size: .8rem; vertical-align: super; }
.kpi .kl { font-size: .72rem; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; font-family: var(--font-head); }
.mac-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.mac-chart i { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--blue)); opacity: .85; min-height: 8px; }
.mac-chart i.dim { background: rgba(255,255,255,.12); }
.mac-foot { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: .7rem; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }
.mac-foot .ok { color: var(--cyan); }
.mac-note { color: var(--muted-2); font-size: .78rem; margin-top: 10px; }

/* Eyebrow como label de sección técnica */
.eyebrow { letter-spacing: .2em; }

/* Fix: HUD visible en anchos <=980 (el margin-inline:auto colapsaba el grid item a 0) */
@media (max-width: 980px) {
  .hero-visual { width: min(420px, 100%); max-width: none; margin-inline: 0; justify-self: center; }
  .hud-stage { width: min(420px, 88vw); }
}


/* ==========================================================================
   MODO CLARO — activado con html[data-theme="light"]
   Nav, hero, page-hero y footer conservan la identidad oscura (islas).
   ========================================================================== */
html[data-theme="light"] {
  --navy-950:#eef1f9; --navy-900:#f6f8fd; --navy-850:#e4e9f6; --navy-800:#d9e0f2; --navy-700:#c6d0ec;
  --text:#0b1140; --muted:#3d4770; --muted-2:#5d679a;
  --line:rgba(11,17,64,.16); --line-2:rgba(11,17,64,.07);
  --panel:rgba(11,17,64,.035); --panel-2:rgba(11,17,64,.06);
}
html[data-theme="light"] body { background:#f6f8fd; color:var(--text); }
html[data-theme="light"] body::before { background:linear-gradient(180deg,#eef1f9,#f6f8fd); }

/* Islas oscuras */
html[data-theme="light"] .nav, html[data-theme="light"] .hero,
html[data-theme="light"] .page-hero, html[data-theme="light"] .footer {
  --navy-950:#00013a; --navy-900:#00024f; --text:#f5f7ff; --muted:#a6b0e0; --muted-2:#7d88bf;
  --line:rgba(255,255,255,.12); --line-2:rgba(255,255,255,.06);
  --panel:rgba(255,255,255,.035); --panel-2:rgba(255,255,255,.05);
  color:var(--text);
}
html[data-theme="light"] .hero, html[data-theme="light"] .page-hero { background:linear-gradient(180deg,#00013a,#00024f 60%,#00013a); }
html[data-theme="light"] .footer { background:#00013a; }

/* Superficies claras */
html[data-theme="light"] .grid > *, html[data-theme="light"] .card,
html[data-theme="light"] .stat, html[data-theme="light"] .office,
html[data-theme="light"] .module, html[data-theme="light"] .price-card { background:#fff; }
html[data-theme="light"] .card:hover { background:#f1f4fc; }
html[data-theme="light"] .card .num { color:rgba(11,17,64,.08); }
html[data-theme="light"] .price-card.featured { background:linear-gradient(180deg,rgba(26,83,255,.10),#fff); }
html[data-theme="light"] .stat .n, html[data-theme="light"] .price-card .plan-scope,
html[data-theme="light"] .price-card .plan-price { color:var(--text); }

/* Acentos cian -> azul (contraste sobre claro) */
html[data-theme="light"] .eyebrow, html[data-theme="light"] a.card .more,
html[data-theme="light"] .stat .n .accent, html[data-theme="light"] .office h4,
html[data-theme="light"] .module .tagline, html[data-theme="light"] .price-card .plan-letter,
html[data-theme="light"] .discount-banner strong, html[data-theme="light"] .price-card ul li::before { color:var(--blue-600); }
html[data-theme="light"] .hero .eyebrow, html[data-theme="light"] .page-hero .eyebrow,
html[data-theme="light"] .hero-kicker { color:var(--cyan); }
html[data-theme="light"] .btn-ghost:hover { border-color:var(--blue); color:var(--blue-600); }
html[data-theme="light"] .hero .btn-ghost:hover, html[data-theme="light"] .page-hero .btn-ghost:hover { border-color:var(--cyan); color:var(--cyan); }

/* Logos de partners/clientes sobre claro */
html[data-theme="light"] .partners-strip img { filter:grayscale(1) brightness(.45); opacity:.65; }
html[data-theme="light"] .partners-strip img:hover { filter:none; opacity:1; }

/* Formularios y detalles */
html[data-theme="light"] .form input, html[data-theme="light"] .form textarea { background:#fff; }
html[data-theme="light"] .tienda-tag { border:1px solid var(--line); }
html[data-theme="light"] .discount-banner { border-color:rgba(15,63,224,.4); background:rgba(26,83,255,.05); }
html[data-theme="light"] .cta-band { background:radial-gradient(700px 300px at 50% 50%, rgba(26,83,255,.12), transparent 70%); }

/* Botón de tema (siempre sobre nav oscuro) */
.theme-toggle {
  width:42px; height:42px; flex:none; border:1px solid var(--line); background:transparent;
  color:var(--muted); display:grid; place-items:center; margin-left:8px;
  transition:color .2s, border-color .2s;
}
.theme-toggle:hover { color:var(--cyan); border-color:var(--cyan); }
.theme-toggle svg { width:18px; height:18px; }


/* ==========================================================================
   AJUSTE UI/UX — ritmo vertical, escala 8pt y proporciones
   Capa de overrides. Estética intacta; solo espaciado y medida.
   ========================================================================== */
/* Escala de secciones fluida: respira en desktop, compacta en mobile */
section { padding: clamp(48px, 5.5vw, 72px) 0; }
.section-sm { padding: clamp(36px, 4vw, 48px) 0; }
.container { padding-inline: clamp(20px, 4vw, 32px); }

/* Balance óptico de texto */
h1, h2, h3 { text-wrap: balance; }
p, .lead, .card p { text-wrap: pretty; }

/* Jerarquía de proximidad: eyebrow > título > lead, espacios decrecientes */
.eyebrow { margin-bottom: 16px; }
.section-title { margin-bottom: 0; }
.section-title + .lead { margin-top: 16px; }
.lead { max-width: 58ch; line-height: 1.65; }

/* Hero: bloque de texto más cohesionado */
.hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 64px)) 0 clamp(48px, 6vw, 64px); min-height: 0; }
.hero-kicker { margin-bottom: 16px; }
.hero h1 { margin-bottom: 16px; }
.hero-verbs { margin-bottom: 24px; }
.hero p.lead { margin-bottom: 32px; max-width: 48ch; }
.hero-actions { gap: 16px; }
.hud-partners { margin-top: 40px; }
.hero-grid { gap: clamp(40px, 5vw, 72px); }

/* Botones: proporción px ≈ 1.8×py y altura consistente */
.btn { padding: 13px 24px; }

/* Cards: padding proporcional al ancho, jerarquía interna más apretada */
.card { padding: clamp(24px, 2.4vw, 32px); }
.card .icon { margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
a.card .more { margin-top: 16px; }

/* Paneles y bloques */
.tienda-panel { padding: clamp(28px, 4vw, 48px); }
.tienda-grid { gap: clamp(24px, 4vw, 48px); }
.tnube-evol { margin-bottom: 24px; }
.tienda-tag { margin-bottom: 24px; }
.split { gap: clamp(40px, 5vw, 64px); }
.check-list { gap: 12px; margin-top: 24px; }
.cta-band { padding: clamp(40px, 5vw, 64px); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .btn { margin-top: 24px; }
.contact-grid { gap: clamp(40px, 5vw, 56px); }

/* Page hero interno */
.page-hero { padding: calc(var(--nav-h) + clamp(36px, 5vw, 56px)) 0 clamp(32px, 4vw, 44px); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .breadcrumb { margin-bottom: 16px; }
.ph-grid { gap: clamp(32px, 5vw, 56px); }

/* Footer */
.footer { padding: clamp(44px, 5vw, 56px) 0 28px; }
.footer-grid { gap: clamp(32px, 4vw, 48px); }
.footer-bottom { margin-top: 48px; padding-top: 24px; }

/* Pricing */
.price-card { padding: clamp(24px, 2.4vw, 32px) clamp(20px, 2vw, 28px); }
.price-card .plan-price { margin: 16px 0; }
.price-card ul { margin: 8px 0 24px; gap: 8px; }
.module { padding: clamp(24px, 2.6vw, 32px); }

/* Logos de clientes/partners al tamaño del sitio original */
.marquee img { height: 84px; }
.marquee-track { gap: 96px; }
.marquee-partners img { height: 96px; }
.marquee-partners .marquee-track { gap: 80px; }
/* Badges a color (tarjetas Mercado Libre): sin filtro grayscale */
.marquee img[src*="Meli"], .marquee img[src*="ML-ADS"], .marquee img[src*="Agencia-Certificada"],
html[data-theme="light"] .marquee img[src*="Meli"], html[data-theme="light"] .marquee img[src*="ML-ADS"], html[data-theme="light"] .marquee img[src*="Agencia-Certificada"] { filter: none; opacity: 1; border-radius: 10px; }
.partners-strip img { height: 44px; }
@media (max-width: 720px) { .marquee img { height: 56px; } .marquee-partners img { height: 64px; } .marquee-track { gap: 48px; } }


/* ---------- Agenda de demos — modal (Google Calendar) ---------- */
.agenda-overlay {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px;
  background: rgba(0,1,32,.72); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.agenda-overlay.open { opacity: 1; visibility: visible; }
.agenda-modal {
  width: min(880px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
  transform: translateY(16px) scale(.98); transition: transform .28s var(--ease);
}
.agenda-overlay.open .agenda-modal { transform: none; }
.agenda-modal .mac-bar { background: #020530; flex: none; }
.agenda-close {
  background: transparent; border: 0; color: #7d88bf; font-size: 1.3rem; line-height: 1;
  padding: 2px 6px; margin-left: auto; transition: color .2s;
}
.agenda-close:hover { color: #fff; }
.agenda-modal .mac-title { margin-inline: 0; margin-left: auto; }
.agenda-modal iframe { display: block; width: 100%; height: min(640px, calc(100vh - 140px)); border: 0; background: #fff; }
@media (max-width: 560px) { .agenda-overlay { padding: 12px; } }
