/* ===========================================
   css/styles.css — Safaria Digital
   Paleta: Teal #0F4C5C + Coral #FF6B47
   Fondo oscuro #0A1A20
   Tipografía: Space Grotesk + Inter
   =========================================== */

/* ── 1. Variables ─────────────────────────── */
:root {
  /* Fondos oscuros */
  --bg:           #07111A;
  --bg-card:      #0C1E2C;
  --bg-card-2:    #0F2438;

  /* ── Paleta Google Primary ── */
  --blue:         #4285F4;
  --blue-light:   #6FA0F6;
  --blue-bright:  #93B6F8;
  --blue-dim:     rgba(66,133,244,0.18);

  --red:          #EA4335;
  --red-light:    #EE6B62;
  --red-dim:      rgba(234,67,53,0.18);

  --yellow:       #FBBC05;
  --yellow-light: #FCC934;
  --yellow-dim:   rgba(251,188,5,0.16);

  --green:        #34A853;
  --green-light:  #5DBD78;
  --green-dim:    rgba(52,168,83,0.16);

  /* Aliases funcionales (mantienen compatibilidad con el resto del CSS) */
  --teal:         #4285F4;
  --teal-light:   #6FA0F6;
  --teal-bright:  #93B6F8;
  --teal-dim:     rgba(66,133,244,0.18);
  --coral:        #EA4335;
  --coral-light:  #EE6B62;
  --coral-dim:    rgba(234,67,53,0.18);

  --text:         #E6EEF6;
  --text-muted:   #7A90A8;
  --text-dim:     #3D5568;
  --border:       rgba(66,133,244,0.22);
  --border-hover: rgba(234,67,53,0.55);
  --radius:       8px;
  --radius-lg:    14px;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.45);
  --shadow-glow:  0 0 28px rgba(234,67,53,0.22);
  --transition:   0.28s ease;
  --max-w:        1200px;
  --nav-h:        68px;
  --font-head:    'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ── 2. Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ── 3. Tipografía ────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}
p { color: var(--text-muted); }
.accent { color: var(--coral); }

/* ── 4. Utilidades ────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}
.section { padding-block: clamp(80px, 10vw, 140px); }
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
}
.btn-primary:hover {
  background: var(--coral-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--coral);
  box-shadow: 0 0 16px rgba(255,107,71,0.14);
}

/* Animaciones de entrada */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Divisor de circuito */
.circuit-divider {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 64px;
}
.circuit-divider-node {
  width: 9px; height: 9px;
  border: 1.5px solid var(--teal-light);
  transform: rotate(45deg);
  flex-shrink: 0;
  background: transparent;
}
.circuit-divider-node.coral {
  border-color: var(--coral);
  background: var(--coral-dim);
}
.circuit-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── 5. Navegación ────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
#main-nav.nav--scrolled {
  background: rgba(10,26,32,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
#main-nav.nav--hidden  { transform: translateY(-100%); }
#main-nav.nav--visible { transform: translateY(0); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { width: 36px; height: 36px; }
.nav-wordmark {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-wordmark .ia { color: inherit; }

#nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 13px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link--active { color: var(--text); background: var(--teal-dim); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}
.lang-btn {
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: var(--transition);
  background: transparent;
}
.lang-btn.active,
.lang-btn:hover { background: var(--teal); color: var(--text); }

#nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
#nav-menu-btn:hover { background: var(--teal-dim); }
#nav-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-cta { margin-left: 8px; }

/* ── 6. Hero ──────────────────────────────── */
/* Escenario de scroll: la altura define cuánto recorrido tiene el morphing.
   El contenido del hero queda fijo (sticky) mientras las partículas morfean. */
#inicio {
  position: relative;
  height: 220vh;
  background: var(--bg);
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  #inicio { height: 100svh; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 60% at 65% 50%, rgba(10,26,32,0.15) 0%, rgba(10,26,32,0.75) 100%),
    linear-gradient(to right, rgba(10,26,32,0.92) 38%, rgba(10,26,32,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--blue-bright);
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Formas flotantes CSS — fondo del hero en mobile/táctil (sin canvas, sin JS).
   Ocultas por default: en desktop el fondo es el canvas de partículas. */
.hero-shapes { display: none; }
@media (max-width: 768px), (pointer: coarse) {
  #particle-canvas { display: none !important; }
  .hero-shapes {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    animation: shapeFloat 14s ease-in-out infinite;
  }
  .shape-1 {
    width: 130px; height: 130px; left: 8%; top: 18%;
    background: var(--teal); opacity: 0.22; filter: blur(2px);
    animation-duration: 16s;
  }
  .shape-2 {
    width: 90px; height: 90px; right: 10%; top: 28%;
    background: var(--coral); opacity: 0.20; filter: blur(1px);
    animation-duration: 13s; animation-delay: -3s;
  }
  .shape-3 {
    width: 60px; height: 60px; left: 22%; bottom: 22%;
    background: var(--yellow); opacity: 0.16;
    animation-duration: 11s; animation-delay: -6s;
  }
  .shape-4 {
    width: 44px; height: 44px; right: 20%; bottom: 32%;
    background: var(--green); opacity: 0.18;
    animation-duration: 15s; animation-delay: -8s;
  }
  .shape-5 {
    width: 20px; height: 20px; left: 55%; top: 14%;
    background: var(--teal-light); opacity: 0.28;
    animation-duration: 9s; animation-delay: -2s;
  }
  .shape-ring {
    width: 220px; height: 220px; right: -40px; bottom: -30px;
    border: 1px solid var(--coral); background: transparent; opacity: 0.22;
    animation-duration: 20s; animation-delay: -5s;
    animation-name: shapeFloatRing;
  }
  @keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-14px, -22px) scale(1.08); }
  }
  @keyframes shapeFloatRing {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(10px, -16px) rotate(12deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-shapes .shape { animation: none; }
  }
}
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
}
.scroll-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--teal-bright), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.15); }
}

/* ── 7. Capacidades ───────────────────────── */
#capacidades { background: var(--bg); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  opacity: 0;
  transition: opacity var(--transition);
}
.cap-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.cap-card:hover::before { opacity: 1; }
/* Colores Google por card */
.cap-card:nth-child(1)::before { background: var(--blue);   }
.cap-card:nth-child(2)::before { background: var(--red);    }
.cap-card:nth-child(3)::before { background: var(--yellow); }
.cap-card:nth-child(4)::before { background: var(--green);  }
.cap-card:nth-child(1):hover { border-color: rgba(66,133,244,0.55);  box-shadow: 0 0 28px rgba(66,133,244,0.18); }
.cap-card:nth-child(2):hover { border-color: rgba(234,67,53,0.55);   box-shadow: 0 0 28px rgba(234,67,53,0.18); }
.cap-card:nth-child(3):hover { border-color: rgba(251,188,5,0.55);   box-shadow: 0 0 28px rgba(251,188,5,0.15); }
.cap-card:nth-child(4):hover { border-color: rgba(52,168,83,0.55);   box-shadow: 0 0 28px rgba(52,168,83,0.15); }
.cap-icon {
  width: 44px; height: 44px;
  background: var(--teal-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--teal-bright);
}
.cap-card:nth-child(1) .cap-icon { background: var(--blue-dim);   color: var(--blue);   }
.cap-card:nth-child(2) .cap-icon { background: var(--red-dim);    color: var(--red);    }
.cap-card:nth-child(3) .cap-icon { background: var(--yellow-dim); color: var(--yellow); }
.cap-card:nth-child(4) .cap-icon { background: var(--green-dim);  color: var(--green);  }
.cap-icon svg { width: 22px; height: 22px; }
.cap-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cap-card p  { font-size: 0.92rem; line-height: 1.68; color: var(--text-muted); }

/* ── 8. Casos ─────────────────────────────── */
#casos { background: linear-gradient(to bottom, var(--bg), #091620); }
.casos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}
.caso-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.caso-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.caso-card:focus { outline: 2px solid var(--coral); }
.caso-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.caso-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--blue-dim);
  color: var(--blue-bright);
  border: 1px solid rgba(66,133,244,0.3);
  text-transform: uppercase;
}
.caso-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.caso-card p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.65; }
.caso-card-footer { display: flex; align-items: center; justify-content: space-between; }
.caso-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--coral);
  display: flex; align-items: center; gap: 5px;
  transition: gap var(--transition);
}
.caso-card:hover .caso-link { gap: 9px; }
.casos-cta { text-align: center; margin-top: 12px; }

/* Modal de casos */
#caso-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,12,18,0.88);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#caso-modal.modal--open { display: flex; }
.modal-content {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: var(--teal-dim);
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--coral-dim); color: var(--coral); }
.modal-title { font-size: 1.6rem; margin-bottom: 16px; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.modal-section { margin-bottom: 22px; }
.modal-section h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.modal-section p { font-size: 0.97rem; color: var(--text-muted); line-height: 1.72; }
.modal-resultado { border-left: 2px solid var(--coral); padding-left: 18px; }
.modal-resultado h4 { color: var(--coral); }
.modal-resultado p  { color: var(--text); }

/* ── 9. Herramientas ──────────────────────── */
#herramientas { background: var(--bg); }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.tool-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.tool-preview {
  height: 160px;
  background: linear-gradient(135deg, var(--teal) 0%, #0A2A35 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.tool-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--teal-bright);
  opacity: 0.5;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  text-align: center;
  padding: 16px;
}
.tool-preview-placeholder svg { opacity: 0.6; }
.tool-body { padding: 24px; }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tool-card p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.65; }
.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--green-dim);
  color: var(--green-light);
  border: 1px solid rgba(52,168,83,0.3);
  margin-bottom: 10px;
}

/* ── 10. Noticias (preview) ───────────────── */
#noticias { background: linear-gradient(to bottom, #091620, var(--bg)); }
#news-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.news-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.news-card-inner { padding: 26px; }
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.news-date { color: var(--blue-bright); font-weight: 500; }
.news-card-title { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.35; }
.news-card-resumen { font-size: 0.88rem; color: var(--text-muted); line-height: 1.66; margin-bottom: 20px; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.news-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--teal-dim);
  color: var(--teal-bright);
  border: 1px solid rgba(15,76,92,0.35);
  text-transform: uppercase;
}
.news-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--coral);
  transition: gap var(--transition);
  white-space: nowrap;
}
.news-link:hover { color: var(--coral-light); }
.noticias-cta { text-align: center; }

/* ── 11. About / Lab ──────────────────────── */
#lab { background: var(--bg); }
.lab-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}
.lab-text .section-title { margin-bottom: 20px; }
.lab-text p { font-size: 1rem; margin-bottom: 16px; line-height: 1.75; }
.lab-stats { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.lab-stat { border-left: 2px solid var(--blue); padding-left: 18px; }
.lab-stat:nth-child(1) { border-color: var(--blue);   }
.lab-stat:nth-child(2) { border-color: var(--yellow); }
.lab-stat:nth-child(3) { border-color: var(--green);  }
.lab-stat-num {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: 4px;
}
.lab-stat:nth-child(1) .lab-stat-num { color: var(--blue-bright);  }
.lab-stat:nth-child(2) .lab-stat-num { color: var(--yellow-light); }
.lab-stat:nth-child(3) .lab-stat-num { color: var(--green-light);  }
.lab-stat-label { font-size: 0.83rem; color: var(--text-dim); }
.lab-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.lab-logo-bg {
  width: 100%;
  max-width: 320px;
  opacity: 0.08;
  filter: blur(0);
}
.lab-circuit-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
}

/* ── 12. Contacto ─────────────────────────── */
#charlemos {
  background: linear-gradient(to bottom, var(--bg), #060F14);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p { font-size: 1rem; line-height: 1.75; margin-bottom: 36px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.contact-detail a { color: var(--teal-bright); }
.contact-detail a:hover { color: var(--coral); }
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font: 0.92rem/1.5 var(--font-body);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(15,76,92,0.2);
}
.form-input.input--error,
.form-textarea.input--error { border-color: var(--coral); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B9BAA' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-select option { background: #0C2130; }
.form-error-global { font-size: 0.82rem; color: var(--coral); min-height: 20px; margin-bottom: 12px; }
.form-submit { width: 100%; justify-content: center; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

#form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}
.success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--coral-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--coral);
  font-size: 1.8rem;
}
#form-success h3 { font-size: 1.5rem; }
#form-success p   { color: var(--text-muted); }

/* ── 13. Footer ───────────────────────────── */
footer {
  background: #060F14;
  border-top: 1px solid var(--border);
  padding-block: 48px 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-wordmark { font-size: 1.4rem; margin-bottom: 10px; }
.footer-tagline { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--blue); color: var(--blue); }
.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--teal-bright); }

/* ── 14. Chatbot Widget ───────────────────── */
.chatbot-widget {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.chatbot-window {
  /* Posicionado absoluto: así NO ocupa espacio en el layout del padre
     (.chatbot-widget) mientras está cerrado. Antes era un hijo flex normal
     con opacity:0 pero seguía ocupando su ancho completo (hasta
     calc(100vw - 32px) en mobile), lo que agrandaba el padre (fixed, sin
     pointer-events:none) hasta cubrir casi toda la pantalla e interceptaba
     los taps en el hero, el footer y las cards del Portal. */
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-height: 500px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chatbot--open .chatbot-window {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--blue) 0%, #2563d4 100%);
  flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chatbot-name { font-weight: 700; font-size: 0.9rem; display: block; color: #fff; }
.chatbot-status { font-size: 0.68rem; color: rgba(255,255,255,0.7); display: block; }
.chatbot-close {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}
.chatbot-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--teal-dim); border-radius: 2px; }
.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.55;
  animation: msgIn 0.2s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat-msg--bot {
  background: var(--teal-dim);
  border: 1px solid rgba(15,76,92,0.3);
  border-radius: 12px 12px 12px 3px;
  align-self: flex-start;
  color: var(--text);
}
.chat-msg--user {
  background: var(--coral);
  color: #fff;
  border-radius: 12px 12px 3px 12px;
  align-self: flex-end;
}
.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
}
.chat-typing span {
  display: block;
  width: 7px; height: 7px;
  background: var(--teal-bright);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-5px); opacity: 1; }
}
.chatbot-options {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}
.chat-option-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  transition: var(--transition);
}
.chat-option-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-dim);
}
.chatbot-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(66,133,244,0.4);
  transition: var(--transition);
}
.chatbot-toggle:hover {
  background: var(--blue-light);
  box-shadow: 0 6px 28px rgba(66,133,244,0.55);
  transform: translateY(-2px);
}

/* ── 15. Artículo (noticias.html) ─────────── */
.article-wrapper { max-width: 720px; margin: 0 auto; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-bright);
  margin-bottom: 32px;
  transition: color var(--transition);
}
.article-back:hover { color: var(--red); }
.article-header { margin-bottom: 40px; }
.article-meta {
  display: flex; gap: 16px;
  font-size: 0.8rem; color: var(--text-dim);
  margin-bottom: 16px;
}
.article-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 20px; }
.article-body { font-size: 1.03rem; line-height: 1.82; color: var(--text-muted); }
.article-body h3 { font-size: 1.3rem; color: var(--text); margin: 36px 0 12px; }
.article-body p  { margin-bottom: 20px; }
.article-body a  { color: var(--coral); text-decoration: underline; }

/* ── 16. Página noticias.html ─────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}
#news-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* ── 17. Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr; }
  .lab-inner { grid-template-columns: 1fr; }
  .lab-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,26,32,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px clamp(20px, 5vw, 60px) 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  #nav-links.nav-links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  #nav-menu-btn { display: flex; }
  .nav-cta { display: none; }
  .nav-link { width: 100%; padding: 11px 14px; font-size: 1rem; }
  .hero-title { font-size: clamp(2.6rem, 10vw, 4rem); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .chatbot-widget { bottom: 16px; right: 16px; }
  .chatbot-window { width: calc(100vw - 32px); max-height: 70vh; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ── 18. Prefers-reduced-motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ══════════════════════════════════════════
   REDISEÑO v2 — identidad visual más fuerte
   Menos cards genéricas, más carácter editorial
══════════════════════════════════════════ */

/* ── Fondo: dot grid sutil ───────────────── */
body {
  background-image: radial-gradient(rgba(66,133,244,0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
}

/* ── Hero: glow radial ─ */
.hero-glow {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(65vw, 720px);
  height: min(65vw, 720px);
  background:
    radial-gradient(ellipse at 55% 40%, rgba(66,133,244,0.16) 0%, transparent 52%),
    radial-gradient(ellipse at 40% 68%, rgba(234,67,53,0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 70%, rgba(52,168,83,0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* ── Section headers: número decorativo ──── */
.section-header { position: relative; overflow: hidden; }
.section-deco {
  position: absolute;
  top: -10px;
  left: -8px;
  font-family: var(--font-head);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: rgba(255,255,255,0.024);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.section-header > * { position: relative; z-index: 1; }

/* ── Capacidades: lista numerada editorial ─ */
/* Reemplaza el .cap-grid con .cap-list       */
.cap-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.055);
}
.cap-item {
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  align-items: start;
  cursor: default;
  transition:
    background var(--transition),
    padding-inline var(--transition);
  position: relative;
}
.cap-item:hover {
  background: rgba(255,255,255,0.027);
  padding-inline: 20px;
}
.cap-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  padding-top: 6px;
  transition: color var(--transition);
}
.cap-item:nth-child(1) .cap-num { color: var(--blue);   }
.cap-item:nth-child(2) .cap-num { color: var(--red);    }
.cap-item:nth-child(3) .cap-num { color: var(--yellow); }
.cap-item:nth-child(4) .cap-num { color: var(--green);  }
.cap-content { min-width: 0; }
.cap-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.cap-item:nth-child(1):hover .cap-content h3 { color: var(--blue);   }
.cap-item:nth-child(2):hover .cap-content h3 { color: var(--red);    }
.cap-item:nth-child(3):hover .cap-content h3 { color: var(--yellow); }
.cap-item:nth-child(4):hover .cap-content h3 { color: var(--green);  }
.cap-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 580px;
}
.cap-arrow-icon {
  color: var(--text-dim);
  font-size: 1rem;
  padding-top: 6px;
  text-align: right;
  line-height: 1;
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.cap-item:hover .cap-arrow-icon {
  transform: translateX(6px);
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .cap-item { grid-template-columns: 40px 1fr 20px; gap: 16px; }
}

/* ── Casos: tinte individual por color ────── */
.caso-card:nth-child(1) {
  border-color: rgba(66,133,244,0.28);
  background: linear-gradient(140deg, rgba(66,133,244,0.09) 0%, var(--bg-card) 52%);
}
.caso-card:nth-child(1):hover {
  border-color: rgba(66,133,244,0.6);
  box-shadow: 0 0 32px rgba(66,133,244,0.14);
  transform: translateY(-4px);
}
.caso-card:nth-child(2) {
  border-color: rgba(234,67,53,0.28);
  background: linear-gradient(140deg, rgba(234,67,53,0.09) 0%, var(--bg-card) 52%);
}
.caso-card:nth-child(2):hover {
  border-color: rgba(234,67,53,0.6);
  box-shadow: 0 0 32px rgba(234,67,53,0.14);
  transform: translateY(-4px);
}
.caso-card:nth-child(3) {
  border-color: rgba(251,188,5,0.22);
  background: linear-gradient(140deg, rgba(251,188,5,0.07) 0%, var(--bg-card) 52%);
}
.caso-card:nth-child(3):hover {
  border-color: rgba(251,188,5,0.5);
  box-shadow: 0 0 32px rgba(251,188,5,0.11);
  transform: translateY(-4px);
}

/* ── Noticias: borde izquierdo de color ─── */
#news-preview-grid .news-card:nth-child(1) { border-left: 3px solid var(--blue);   padding-left: 23px; }
#news-preview-grid .news-card:nth-child(2) { border-left: 3px solid var(--red);    padding-left: 23px; }
#news-preview-grid .news-card:nth-child(3) { border-left: 3px solid var(--yellow); padding-left: 23px; }

/* ── Herramientas: previews con tinte ────── */
.tool-card:nth-child(1) .tool-preview {
  background: linear-gradient(135deg, rgba(66,133,244,0.35) 0%, #070F18 100%);
}
.tool-card:nth-child(2) .tool-preview {
  background: linear-gradient(135deg, rgba(234,67,53,0.35) 0%, #180909 100%);
}
.tool-card:nth-child(3) .tool-preview {
  background: linear-gradient(135deg, rgba(52,168,83,0.3) 0%, #071309 100%);
}
.tool-card:nth-child(1) .tool-preview-placeholder { color: var(--blue-bright); }
.tool-card:nth-child(2) .tool-preview-placeholder { color: var(--red-light); }
.tool-card:nth-child(3) .tool-preview-placeholder { color: var(--green-light); }

/* ── Hero overlay más leve (para que glow se vea) */
.hero-overlay {
  background:
    radial-gradient(ellipse 70% 60% at 65% 50%, rgba(7,17,26,0.05) 0%, rgba(7,17,26,0.65) 100%),
    linear-gradient(to right, rgba(7,17,26,0.94) 36%, rgba(7,17,26,0.22) 100%) !important;
}

/* ── Sección CTA final con más contraste ── */
.casos-cta { margin-top: 48px; }

/* ── Lab stats borde izquierdo más grueso ─ */
.lab-stat { padding-left: 20px; }
.lab-stat:nth-child(1) { border-left: 3px solid var(--blue); }
.lab-stat:nth-child(2) { border-left: 3px solid var(--yellow); }
.lab-stat:nth-child(3) { border-left: 3px solid var(--green); }


/* ══════════════════════════════════════════
   SISTEMA MULTI-PÁGINA — Estilo Zalos-inspired
   Espacioso, editorial, cada página con foco único
══════════════════════════════════════════ */

/* ── Page hero (cabecera de páginas internas) ─ */
.page-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px,5vw,60px);
}
.page-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue-bright);
}
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 24px;
  color: var(--text);
}
.page-hero-title em {
  font-style: italic;
  color: var(--red);
}
.page-hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.72;
}

/* ── Page sections ──────────────────────── */
.page-section {
  padding-block: clamp(72px, 11vw, 140px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-section:last-child { border-bottom: none; }

/* ── Step layout (Zalos "01 Connect" style) ─ */
.step-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
  padding-block: clamp(60px, 9vw, 110px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.step-item:last-child { border-bottom: none; }
.step-item:nth-child(even) .step-text { order: 2; }
.step-item:nth-child(even) .step-visual { order: 1; }
.step-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.step-item:nth-child(1) .step-tag { color: var(--blue);   }
.step-item:nth-child(2) .step-tag { color: var(--red);    }
.step-item:nth-child(3) .step-tag { color: var(--yellow); }
.step-item:nth-child(4) .step-tag { color: var(--green);  }
.step-title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  line-height: 1.12;
}
.step-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.step-list li::before {
  content: '→';
  color: var(--blue-bright);
  flex-shrink: 0;
  margin-top: 1px;
}
.step-item:nth-child(2) .step-list li::before { color: var(--red-light);    }
.step-item:nth-child(3) .step-list li::before { color: var(--yellow-light); }
.step-item:nth-child(4) .step-list li::before { color: var(--green-light);  }
.step-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  color: var(--text-dim);
  font-family: monospace;
  font-size: 0.78rem;
  text-align: center;
}
.step-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: radial-gradient(ellipse at 50% 50%, currentColor, transparent 70%);
}
.step-item:nth-child(1) .step-visual { color: var(--blue);   border-color: rgba(66,133,244,0.2);  }
.step-item:nth-child(2) .step-visual { color: var(--red);    border-color: rgba(234,67,53,0.2);   }
.step-item:nth-child(3) .step-visual { color: var(--yellow); border-color: rgba(251,188,5,0.18);  }
.step-item:nth-child(4) .step-visual { color: var(--green);  border-color: rgba(52,168,83,0.18);  }
.step-visual-icon { font-size: 2.4rem; opacity: 0.5; }
.step-visual-label { opacity: 0.4; }

/* ── Home: sections nav grid ───────────── */
.home-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.home-section-card {
  background: var(--bg);
  padding: 36px 28px;
  text-decoration: none;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-section-card:hover { background: var(--bg-card); }
.home-section-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.home-section-card:nth-child(1) .home-section-num { color: var(--blue);   }
.home-section-card:nth-child(2) .home-section-num { color: var(--red);    }
.home-section-card:nth-child(3) .home-section-num { color: var(--yellow); }
.home-section-card:nth-child(4) .home-section-num { color: var(--green);  }
.home-section-card:nth-child(5) .home-section-num { color: var(--blue);   }
.home-section-card:nth-child(6) .home-section-num { color: var(--red);    }
.home-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.home-section-desc {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.home-section-arrow {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}
.home-section-card:hover .home-section-arrow { color: var(--text-muted); transform: translateX(4px); }

/* ── Home: manifesto block ──────────────── */
.home-manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}
.home-manifesto-text p {
  font-size: 1.15rem;
  line-height: 1.78;
  margin-bottom: 20px;
}
.home-manifesto-text p:last-child { margin-bottom: 0; }
.home-manifesto-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.home-stat-block {
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.home-stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.home-stat-block:nth-child(1) .home-stat-num { color: var(--blue);   }
.home-stat-block:nth-child(2) .home-stat-num { color: var(--red);    }
.home-stat-block:nth-child(3) .home-stat-num { color: var(--yellow); }
.home-stat-block:nth-child(4) .home-stat-num { color: var(--green);  }
.home-stat-label { font-size: 0.8rem; color: var(--text-dim); }

/* ── CTA section ────────────────────────── */
.cta-section {
  text-align: center;
  padding-block: clamp(80px, 12vw, 160px);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(234,67,53,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%,   rgba(66,133,244,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section-eyebrow { margin-bottom: 20px; justify-content: center; }
.cta-section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
}
.cta-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.7;
  position: relative;
}
.cta-section-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── Benefit grid (4-col benefits) ───────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.benefit-item {
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.benefit-item:nth-child(3),
.benefit-item:nth-child(4) { border-right: none; }
.benefit-item:nth-child(3),
.benefit-item:nth-child(4) { border-bottom: none; }
.benefit-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.benefit-item:nth-child(1) .benefit-num { color: var(--blue);   }
.benefit-item:nth-child(2) .benefit-num { color: var(--red);    }
.benefit-item:nth-child(3) .benefit-num { color: var(--yellow); }
.benefit-item:nth-child(4) .benefit-num { color: var(--green);  }
.benefit-title { font-size: 1.05rem; margin-bottom: 10px; }
.benefit-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── Responsive multi-page ───────────────── */
@media (max-width: 768px) {
  .step-item { grid-template-columns: 1fr; }
  .step-item:nth-child(even) .step-text { order: 0; }
  .step-item:nth-child(even) .step-visual { order: 1; }
  .home-sections-grid { grid-template-columns: 1fr 1fr; }
  .home-manifesto { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .benefit-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06); }
}
/* === Ajustes finales (jun 2026) === */
html { scrollbar-gutter: stable; }
.home-sections-grid { grid-template-columns: repeat(2, 1fr) !important; }
@media (max-width: 720px) { .home-sections-grid { grid-template-columns: 1fr !important; } }
.hero-overlay {
  background:
    radial-gradient(ellipse 60% 55% at 65% 50%, rgba(7,17,26,0) 0%, rgba(7,17,26,0.45) 100%),
    linear-gradient(to right, rgba(7,17,26,0.95) 28%, rgba(7,17,26,0) 66%) !important;
}

html { overflow-y: scroll; }

/* === Fondo de partículas full-page + rotación 360° con scroll (jul 2026) === */
#particle-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none;
}
/* El escenario de 220vh ya no hace falta: la rotación abarca toda la página */
#inicio { height: 100svh !important; }
