/* ============================================================
   SICÜ — DESIGN SYSTEM
   estudiosicu.com.ar
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Variables de marca ── */
:root {
  /* Colores primarios */
  --blue:        #3D58F2;
  --blue-light:  #5C73F2;
  --blue-dark:   #2A3EC9;
  --lime:        #C5F222;
  --lime-light:  #D4F74A;
  --lime-dark:   #A8D10F;
  --yellow:      #EBF222;

  /* Escala de grises / oscuros */
  --black:       #0D0D0D;
  --dark-1:      #111113;
  --dark-2:      #1A1A1F;
  --dark-3:      #2B2A32;
  --dark-4:      #33323A;
  --dark-5:      #3E3D47;
  --gray-1:      #6B6A74;
  --gray-2:      #9594A0;
  --gray-3:      #C4C3CC;
  --light-1:     #EDF1F4;
  --light-2:     #F5F7FA;
  --white:       #FFFFFF;

  /* Semánticos */
  --bg-dark:     var(--dark-1);
  --bg-card:     var(--dark-2);
  --bg-surface:  var(--dark-3);
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);
  --border-blue: rgba(61,88,242,0.4);
  --text-primary:   var(--white);
  --text-secondary: var(--gray-2);
  --text-muted:     var(--gray-1);

  /* Tipografía */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-xs:       0.75rem;    /* 12px */
  --fs-sm:       0.875rem;   /* 14px */
  --fs-base:     1rem;       /* 16px */
  --fs-md:       1.125rem;   /* 18px */
  --fs-lg:       1.25rem;    /* 20px */
  --fs-xl:       1.5rem;     /* 24px */
  --fs-2xl:      2rem;       /* 32px */
  --fs-3xl:      2.75rem;    /* 44px */
  --fs-4xl:      3.5rem;     /* 56px */
  --fs-5xl:      4.5rem;     /* 72px */
  --fs-6xl:      6rem;       /* 96px */

  /* Espaciado */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Bordes */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transiciones */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Sombras */
  --shadow-blue: 0 0 40px rgba(61,88,242,0.25);
  --shadow-lime: 0 0 30px rgba(197,242,34,0.2);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.5);

  /* Layout */
  --max-w:       1200px;
  --nav-h:       72px;
  --section-py:  var(--sp-24);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ── Contenedor ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
}

/* ── Tipografía ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-blue   { color: var(--blue-light); }
.text-lime   { color: var(--lime); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }
.text-sm     { font-size: var(--fs-sm); }
.text-xs     { font-size: var(--fs-xs); }
.text-lg     { font-size: var(--fs-lg); }

.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }

/* Highlight de texto con azul o lima */
.highlight-blue {
  color: var(--blue-light);
  position: relative;
}
.highlight-lime {
  color: var(--lime);
}

/* ── Etiqueta/Badge de sección ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime);
  background: rgba(197,242,34,0.1);
  border: 1px solid rgba(197,242,34,0.2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
}

.section-badge.blue {
  color: var(--blue-light);
  background: rgba(61,88,242,0.1);
  border-color: rgba(61,88,242,0.25);
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,88,242,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-lime {
  background: var(--lime);
  color: var(--black);
  border: 1px solid var(--lime);
}
.btn-lime:hover {
  background: var(--lime-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lime);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-mid);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn svg, .btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-hover-blue:hover {
  border-color: var(--border-blue);
  box-shadow: var(--shadow-blue);
}

.card-hover-lime:hover {
  border-color: rgba(197,242,34,0.25);
  box-shadow: var(--shadow-lime);
}

/* ── Grid ── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
}

/* ── Flex helpers ── */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: var(--sp-2); }
.gap-3  { gap: var(--sp-3); }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

/* ── Espaciado ── */
.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }

/* ── Separadores visuales ── */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
  margin: var(--sp-12) 0;
}

/* ── Secciones ── */
.section {
  padding: var(--section-py) 0;
}

.section-light {
  background: var(--light-2);
  color: var(--black);
  --text-primary: var(--black);
  --text-secondary: #4A4A55;
  --bg-card: var(--white);
  --border: rgba(0,0,0,0.07);
  --border-mid: rgba(0,0,0,0.12);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--black);
}

.section-light p {
  color: #4A4A55;
}

/* ── Noise texture overlay sutil ── */
.noise-overlay {
  position: relative;
}
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* ── Glow decorativo ── */
.glow-blue {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61,88,242,0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.glow-lime {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197,242,34,0.1) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* ── Pill etiqueta de tech ── */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.tech-tag:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-mid);
  color: var(--text-secondary);
}

/* ── Gradientes de texto ── */
.gradient-text-blue {
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-lime {
  background: linear-gradient(135deg, var(--lime) 0%, var(--yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Separador con gradiente ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
}

/* ── Icono con fondo ── */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-blue {
  background: rgba(61,88,242,0.12);
  border: 1px solid rgba(61,88,242,0.2);
  color: var(--blue-light);
}

.icon-box-lime {
  background: rgba(197,242,34,0.12);
  border: 1px solid rgba(197,242,34,0.2);
  color: var(--lime);
}

/* ── Número grande decorativo ── */
.big-number {
  font-size: var(--fs-6xl);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ── Scrollbar personalizado ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-2);
}
::-webkit-scrollbar-thumb {
  background: var(--dark-5);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

/* ============================================================
   PILLNAV — Portado de ReactBits a vanilla JS
   ============================================================ */

/* ── Wrapper fijo en la parte superior ── */
.pn-wrapper {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.4rem;
  background: rgba(13,13,15,0.0);
  border-radius: 999px;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent;
  max-width: calc(var(--max-w) - 2rem);
  width: max-content;
}

.pn-wrapper.pn-scrolled {
  background: rgba(13,13,15,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border-mid);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ── Logo ── */
.pn-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.pn-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--lime);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.pn-logo-mark:hover { transform: rotate(-8deg) scale(1.06); }
.pn-logo-mark svg { width: 20px; height: 20px; }

.pn-logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  white-space: nowrap;
}
.pn-logo-text span { color: var(--lime); }

/* ── Pills container ── */
.pn-items {
  display: flex;
  align-items: center;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  overflow: hidden;
}

.pn-list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  height: 100%;
  margin: 0;
  list-style: none;
}

.pn-li {
  display: flex;
  height: 100%;
  position: relative;
}

/* ── Pill individual ── */
.pn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 100%;
  padding: 0 14px;
  background: transparent;
  color: var(--gray-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pn-pill:hover { color: var(--white); }

.pn-pill.is-active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Círculo de hover (GSAP lo anima) */
.pn-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: var(--blue);
  z-index: 1;
  display: block;
  pointer-events: none;
  will-change: transform;
}

/* Stack de labels */
.pn-stack {
  position: relative;
  display: inline-block;
  line-height: 1;
  z-index: 2;
  overflow: hidden;
  height: 1em;
}

.pn-label {
  display: inline-block;
  will-change: transform;
  position: relative;
  z-index: 2;
}

.pn-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--white);
  z-index: 3;
  display: inline-block;
  will-change: transform, opacity;
  white-space: nowrap;
}

/* Indicador activo (punto abajo) */
.pn-pill.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
  z-index: 4;
}

/* Flecha dropdown */
.pn-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.pn-dd-trigger[aria-expanded="true"] .pn-arrow {
  transform: rotate(180deg);
}

/* ── Dropdown ── */
.pn-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--dark-3);
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 100;
}

.pn-dd-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 6px 12px 4px;
}

.pn-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.pn-dd-item:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.pn-dd-icon {
  width: 30px;
  height: 30px;
  background: rgba(61,88,242,0.1);
  border: 1px solid rgba(61,88,242,0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
}

/* ── Derecha: Sicü BI + CTA ── */
.pn-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pn-bi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.9rem;
  background: rgba(61,88,242,0.12);
  border: 1px solid rgba(61,88,242,0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-light);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pn-bi-pill:hover {
  background: rgba(61,88,242,0.22);
  border-color: rgba(61,88,242,0.5);
  color: var(--white);
  box-shadow: 0 0 18px rgba(61,88,242,0.3);
}

.pn-bi-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.65); }
}

.pn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pn-cta:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61,88,242,0.4);
}

/* ── Hamburger ── */
.pn-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.pn-ham-line {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
}

/* ── Mobile popover ── */
.pn-mobile {
  position: fixed;
  top: 5rem;
  left: 1rem;
  right: 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 6px;
  z-index: 999;
  visibility: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

.pn-mob-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pn-mob-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  text-align: left;
}

.pn-mob-link:hover,
.pn-mob-link.is-active {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.pn-mob-link.is-active { color: var(--lime); }

.pn-mob-arrow { transition: transform 0.2s ease; flex-shrink: 0; }

.pn-mob-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 4px 0;
}

.pn-mob-sub.open { display: flex; }

.pn-mob-sub-link {
  display: block;
  padding: 9px 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pn-mob-sub-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

.pn-mob-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 4px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pn-items,
  .pn-right { display: none; }
  .pn-hamburger { display: flex; }
  .pn-wrapper {
    left: 1rem;
    right: 1rem;
    transform: none;
    width: auto;
    justify-content: space-between;
    top: 0.75rem;
  }
}

@media (max-width: 1100px) {
  .pn-items { display: none; }
  .pn-right { display: flex; }
  .pn-hamburger { display: flex; }
  .pn-wrapper {
    justify-content: space-between;
  }
}

@media (min-width: 1101px) {
  .pn-hamburger { display: none; }
  .pn-items { display: flex; }
}

/* Offset del contenido para no quedar debajo del nav */
:root { --nav-h: 72px; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .footer-brand { grid-column: auto; }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  text-decoration: none;
}

.footer-brand-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--lime);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo-text {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--sp-6);
}

.footer-social {
  display: flex;
  gap: var(--sp-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: all var(--t-base);
}

.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: var(--sp-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  transition: color var(--t-fast);
}

.footer-contact-item:hover {
  color: var(--white);
}

.footer-contact-item .icon {
  width: 16px;
  height: 16px;
  color: var(--blue-light);
  flex-shrink: 0;
}

.footer-bi-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  background: linear-gradient(135deg, rgba(61,88,242,0.12), rgba(92,115,242,0.05));
  border: 1px solid rgba(61,88,242,0.2);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-6);
  text-decoration: none;
  transition: all var(--t-base);
}

.footer-bi-banner:hover {
  background: rgba(61,88,242,0.18);
  border-color: rgba(61,88,242,0.4);
  transform: translateY(-2px);
}

.footer-bi-banner-text strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.footer-bi-banner-text span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-bi-banner-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-8);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-6);
}

.footer-bottom-links a {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ============================================================
   WHATSAPP WIDGET
   ============================================================ */

.wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}

.wa-fab {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: all var(--t-spring);
  border: none;
  position: relative;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

.wa-fab:active {
  transform: scale(0.96);
}

.wa-fab svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: wa-pulse 2.5s infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.wa-chat {
  width: 330px;
  background: #111b21;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform-origin: bottom right;
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-slow);
}

.wa-chat.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.wa-header {
  background: #1f2c34;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 42px;
  height: 42px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.wa-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #e9edef;
  font-family: var(--font);
}

.wa-info span {
  font-size: 12px;
  color: #25D366;
  font-family: var(--font);
}

.wa-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #8696a0;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--t-fast);
}

.wa-close-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #e9edef;
}

.wa-messages {
  background: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23182229' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 200px;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-msg {
  max-width: 80%;
  border-radius: 7.5px;
  padding: 8px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  font-family: var(--font);
  position: relative;
}

.wa-msg-in {
  background: #202c33;
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.wa-msg-out {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.wa-msg-time {
  font-size: 10px;
  color: #8696a0;
  display: block;
  text-align: right;
  margin-top: 3px;
}

.wa-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
  align-self: flex-start;
}

.wa-typing span {
  width: 7px;
  height: 7px;
  background: #8696a0;
  border-radius: 50%;
  animation: wa-type 1.4s infinite;
}

.wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wa-type {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

.wa-input-bar {
  background: #1f2c34;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-input {
  flex: 1;
  background: #2a3942;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 14px;
  color: #e9edef;
  border: none;
  outline: none;
  font-family: var(--font);
  caret-color: #00a884;
}

.wa-input::placeholder {
  color: #8696a0;
}

.wa-send {
  width: 38px;
  height: 38px;
  background: #00a884;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast);
  flex-shrink: 0;
}

.wa-send:hover {
  background: #02b890;
}

.wa-send svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.wa-quick-msgs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 0;
  background: #0b141a;
}

.wa-quick-btn {
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 13px;
  color: #25D366;
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast);
  font-family: var(--font);
}

.wa-quick-btn:hover {
  background: #2a3942;
}

/* ── Animaciones burbujas ── */
.wa-msg-pop {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.wa-msg-pop.wa-msg-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Pop-in del indicador de typing */
.wa-typing-pop {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.wa-typing-pop.wa-typing-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quick replies entrada */
@keyframes waQuickIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* El widget entero entra con un pop suave */
.wa-chat.open {
  animation: waChatOpen 0.35s cubic-bezier(0.34,1.4,0.64,1) both;
}

@keyframes waChatOpen {
  from { opacity: 0; transform: scale(0.88) translateY(12px); transform-origin: bottom right; }
  to   { opacity: 1; transform: scale(1) translateY(0); transform-origin: bottom right; }
}

/* ============================================================
   ANIMACIONES GLOBALES
   ============================================================ */

/* Fade in desde abajo */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in desde la izquierda */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Reveal con clip */
@keyframes revealText {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* Float suave */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

/* Scroll ticker */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Clases de animación con intersection observer */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   TICKER / MARQUEE (logos y tech tags)
   ============================================================ */

.ticker-wrap {
  overflow: hidden;
  position: relative;
  padding: var(--sp-4) 0;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
  gap: var(--sp-8);
  align-items: center;
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* ============================================================
   HERO — página de inicio
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-glow-1 {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(61,88,242,0.2) 0%, transparent 65%);
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197,242,34,0.08) 0%, transparent 65%);
  animation: glowPulse 5s ease-in-out infinite reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
  max-width: 860px;
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
  animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.2s;
}

.hero-desc {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.35s;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.45s;
  margin-bottom: var(--sp-16);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.55s;
}

/* ============================================================
   UTILIDADES EXTRA
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.full-w { width: 100%; }

.no-select {
  -webkit-user-select: none;
  user-select: none;
}

/* Page content offset para navbar fija */
.page-offset {
  padding-top: var(--nav-h);
}

/* Loading state para página */
.page-loading {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-loaded {
  opacity: 1;
}