/*
Theme Name: SQLTeam Next
Theme URI: https://www.sqlteam.cl
Author: SQLTeam Chile Spa
Author URI: https://www.sqlteam.cl
Description: Tema corporativo de próxima generación — video de fondo, animaciones avanzadas, IA & Cloud. Alineado Ley N° 21.719.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: sqlteam-next
Tags: dark, corporate, fullscreen, video-background, animations, one-page, ai, cloud
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  /* Brand */
  --c-azul:       #1a3a8f;
  --c-azul-mid:   #2952c4;
  --c-azul-glow:  #3d6ff0;
  --c-azul-dark:  #0a1628;
  --c-rojo:       #c0392b;
  --c-rojo-hot:   #e74c3c;
  --c-amarillo:   #f0c040;
  --c-amarillo-bg:#fef6e0;
  --c-blanco:     #ffffff;
  --c-gris-light: #f2f5fb;
  --c-gris-mid:   #dde4f0;
  --c-gris-txt:   #5a6a82;
  --c-dark-1:     #060d1a;
  --c-dark-2:     #0c1829;
  --c-dark-3:     #112038;

  /* Glows */
  --glow-azul: 0 0 40px rgba(61,111,240,0.35);
  --glow-rojo: 0 0 30px rgba(192,57,43,0.4);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-body:    'DM Sans', 'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-section: clamp(64px, 8vw, 112px);
  --radius-card:   16px;
  --radius-pill:   100px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:  cubic-bezier(0.7, 0, 0.84, 0);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-dark-1);
  color: var(--c-blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }

/* Custom Cursor */
.cursor {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-azul-glow);
  box-shadow: var(--glow-azul);
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), background 0.25s;
}
.cursor-ring {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(61,111,240,0.5);
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease-out-expo), width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 6px; height: 6px; }
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring {
  width: 52px; height: 52px; border-color: rgba(192,57,43,0.6);
}
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: var(--space-section) 0; }
.section--dark  { background: var(--c-dark-1); }
.section--dark2 { background: var(--c-dark-2); }
.section--light {
  background: var(--c-blanco);
  color: var(--c-azul-dark);
}
.section--light p { color: var(--c-gris-txt); }
.section--light .section-label { color: var(--c-rojo); }
.section--light .section-title { color: var(--c-azul-dark); }
.section--light .section-title span { color: var(--c-azul); }

/* Typography */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--c-azul-glow);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-title span { color: var(--c-azul-glow); }
.section-title .red { color: var(--c-rojo); }
.section-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out-expo);
  position: relative; overflow: hidden;
  cursor: none;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--c-rojo);
  color: #fff;
  box-shadow: 0 4px 24px rgba(192,57,43,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 36px rgba(192,57,43,0.6);
}
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
}
.btn-ghost:hover {
  border-color: var(--c-azul-glow);
  transform: translateY(-2px);
  box-shadow: var(--glow-azul);
}
.btn-azul {
  background: var(--c-azul-mid);
  color: #fff;
  box-shadow: 0 4px 24px rgba(41,82,196,0.4);
}
.btn-azul:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(61,111,240,0.5);
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0;
  transition: all 0.4s var(--ease-out-expo);
}
.site-header.scrolled {
  background: rgba(6,13,26,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(61,111,240,0.15);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--c-blanco);
  display: flex; align-items: center; gap: 2px;
}
.site-logo .dot { color: var(--c-rojo); font-size: 28px; line-height: 0; margin-bottom: -4px; }
.site-logo .highlight { color: var(--c-azul-glow); }

/* ── Main nav list ── */
.main-nav {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}

/* Top-level items */
.main-nav > li {
  position: relative;
}
.main-nav > li > a {
  display: flex; align-items: center; gap: 5px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  padding: 9px 15px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0;
}
.main-nav > li > a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.main-nav > li.current-menu-item > a,
.main-nav > li > a.active {
  color: var(--c-azul-glow);
}

/* Chevron for items with children */
.main-nav > li.menu-item-has-children > a::after {
  content: '▾';
  font-size: 11px;
  opacity: 0.6;
  transition: transform 0.25s;
  display: inline-block;
}
.main-nav > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── Dropdown submenu ── */
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: rgba(8,16,34,0.97);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(61,111,240,0.18);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  z-index: 600;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease-out-expo),
              transform 0.22s var(--ease-out-expo),
              visibility 0.22s;
}

/* Show on hover */
.main-nav > li.menu-item-has-children:hover > .sub-menu,
.main-nav > li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown items */
.main-nav .sub-menu li a {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.18s;
  white-space: nowrap;
}
.main-nav .sub-menu li a::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-azul-glow);
  opacity: 0;
  transition: opacity 0.18s;
  flex-shrink: 0;
}
.main-nav .sub-menu li a:hover {
  color: #fff;
  background: rgba(61,111,240,0.12);
}
.main-nav .sub-menu li a:hover::before { opacity: 1; }

/* Divider between dropdown items */
.main-nav .sub-menu li + li {
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── CTA button in nav ── */
.nav-cta {
  font-family: var(--font-display);
  font-size: 14px !important;
  font-weight: 700;
  background: var(--c-rojo) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 4px 20px rgba(192,57,43,0.35);
  transition: all 0.3s var(--ease-out-expo) !important;
  margin-left: 8px;
}
.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 28px rgba(192,57,43,0.55) !important;
  background: var(--c-rojo-hot) !important;
}
.nav-cta::after { display: none !important; }

/* ── Mobile hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
}

/* ═══════════════════════════════════════════
   HERO — VIDEO FULLSCREEN
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}

/* Video background */
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;        /* ← BRILLO DEL VIDEO: sube hasta 0.9 para más claro, baja hasta 0.1 para más oscuro */
  filter: saturate(0.85) brightness(1.1); /* ← saturate = color, brightness = luminosidad */
}
.hero-video-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,13,26,0.72) 0%,   /* ← OVERLAY IZQUIERDA: baja el último número (0.72) para más claro */
    rgba(10,22,40,0.50) 40%, /* ← OVERLAY CENTRO */
    rgba(6,13,26,0.40) 100%  /* ← OVERLAY DERECHA */
  );
  /* Baja todos los valores para ver más video, súbelos para más oscuridad */
}

/* Canvas particle overlay */
#hero-canvas {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}

/* Grid lines overlay */
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(61,111,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,111,240,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Scanline effect */
.hero-scanline {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

.hero-content {
  position: relative; z-index: 10;
  padding: 120px 0 80px;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(61,111,240,0.3);
  background: rgba(61,111,240,0.08);
  backdrop-filter: blur(8px);
  color: var(--c-azul-glow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  text-transform: uppercase;
  animation: fadeSlideDown 0.8s var(--ease-out-expo) both;
}
.hero-eyebrow .dot-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.9s 0.15s var(--ease-out-expo) both;
}
.hero h1 .line-azul { color: var(--c-azul-glow); }
.hero h1 .line-grad {
  background: linear-gradient(135deg, var(--c-azul-glow), var(--c-rojo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.9s 0.3s var(--ease-out-expo) both;
}

.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeSlideUp 0.9s 0.45s var(--ease-out-expo) both;
}

/* Hero stats strip */
.hero-stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeSlideUp 0.9s 0.6s var(--ease-out-expo) both;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--c-blanco);
  line-height: 1;
}
.hero-stat-badge {
  display: inline-block;
  background: var(--c-amarillo);
  color: #3a2800;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: super;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeIn 1s 1.2s both;
}
.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.scroll-hint-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   MARQUEE STRIP
═══════════════════════════════════════════ */
.marquee-strip {
  background: var(--c-azul);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.marquee-inner {
  display: flex; gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 16px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item::after {
  content: '✦';
  color: var(--c-amarillo);
  font-size: 8px;
}

/* ═══════════════════════════════════════════
   PILARES / SERVICES CARDS
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(61,111,240,0.12);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out-expo);
  cursor: none;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,111,240,0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61,111,240,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-azul);
}
.service-card:hover::before { opacity: 1; }

.service-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.service-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: rgba(61,111,240,0.4);
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 22px;
  filter: saturate(0.8) brightness(0.85);
  transition: all 0.4s var(--ease-out-expo);
}
.service-card:hover .service-img {
  filter: saturate(1) brightness(1);
  transform: scale(1.02);
}

.service-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-blanco);
  margin-bottom: 10px;
  line-height: 1.2;
}
.service-text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-azul-glow);
  font-family: var(--font-display);
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }
.service-link .arrow { font-size: 16px; }

/* Featured card */
.service-card.featured {
  background: linear-gradient(135deg, rgba(26,58,143,0.2), rgba(41,82,196,0.1));
  border-color: rgba(61,111,240,0.3);
  grid-row: span 1;
}

/* ═══════════════════════════════════════════
   IMPACT SECTION — DARK
═══════════════════════════════════════════ */
.impact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.impact-visual {
  position: relative;
}
.impact-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-card);
  filter: saturate(0.7) brightness(0.7);
}
.impact-img-overlay {
  position: absolute; inset: 0;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(26,58,143,0.4), transparent);
  border: 1px solid rgba(61,111,240,0.2);
}
.impact-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(6,13,26,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(61,111,240,0.25);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.impact-badge-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--c-blanco);
}
.impact-badge-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  max-width: 100px;
  line-height: 1.4;
}

/* Bars */
.bars-wrap { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.bar-item {}
.bar-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.bar-meta-label { font-size: 13px; color: rgba(255,255,255,0.6); }
.bar-meta-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--c-amarillo);
  color: #3a2800;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.bar-track {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 1.6s var(--ease-out-expo);
}
.bar-fill--gray { background: rgba(255,255,255,0.18); width: 0; }
.bar-fill--blue {
  background: linear-gradient(90deg, var(--c-azul), var(--c-azul-glow));
  box-shadow: 0 0 12px rgba(61,111,240,0.5);
  width: 0;
}

/* ═══════════════════════════════════════════
   LEY 21.719 — LIGHT SECTION
═══════════════════════════════════════════ */
.ley-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ley-items { display: flex; flex-direction: column; gap: 24px; }
.ley-item { display: flex; gap: 18px; }
.ley-icon {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.ley-icon.azul { background: rgba(26,58,143,0.12); border: 1px solid rgba(26,58,143,0.2); }
.ley-icon.red  { background: rgba(192,57,43,0.1);  border: 1px solid rgba(192,57,43,0.2); }
.ley-item-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-azul-dark);
  margin-bottom: 4px;
}
.ley-item-text { font-size: 13px; color: var(--c-gris-txt); line-height: 1.65; }
.ley-alerta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-amarillo-bg);
  color: #7a5c00;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--c-amarillo);
  margin-top: 8px;
  font-family: var(--font-mono);
}
.ley-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(26,58,143,0.15);
}

/* ═══════════════════════════════════════════
   METODOLOGÍA — TIMELINE
═══════════════════════════════════════════ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline-line {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 1px;
  background: linear-gradient(90deg, var(--c-azul) 0%, var(--c-azul-glow) 50%, var(--c-rojo) 100%);
  opacity: 0.3;
}
.timeline-item { text-align: center; padding: 0 16px; position: relative; z-index: 2; }
.timeline-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  border: 2px solid;
  position: relative;
  transition: all 0.3s var(--ease-out-expo);
}
.timeline-dot.azul {
  background: rgba(41,82,196,0.15);
  border-color: var(--c-azul-mid);
  color: var(--c-azul-glow);
  box-shadow: 0 0 0 0 rgba(41,82,196,0.4);
}
.timeline-dot.red {
  background: rgba(192,57,43,0.15);
  border-color: var(--c-rojo);
  color: var(--c-rojo);
  box-shadow: 0 0 0 0 rgba(192,57,43,0.4);
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 8px rgba(41,82,196,0.12);
  transform: scale(1.08);
}
.timeline-badge {
  display: inline-block;
  background: rgba(240,192,64,0.15);
  color: var(--c-amarillo);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(240,192,64,0.3);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--c-blanco);
  margin-bottom: 8px;
}
.timeline-text { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ═══════════════════════════════════════════
   QUOTE / FILOSOFIA
═══════════════════════════════════════════ */
.quote-section {
  background: var(--c-azul);
  padding: var(--space-section) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '"';
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 280px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}
.quote-line {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--c-rojo), var(--c-azul-glow));
  border-radius: 2px;
  margin: 0 auto 32px;
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;
  max-width: 800px;
  margin: 0 auto 20px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.quote-author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   PRESENCIA SANTIAGO
═══════════════════════════════════════════ */
.presencia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.presencia-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-card);
  position: relative;
}
.presencia-img-wrap {
  position: relative;
}
.presencia-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(26,58,143,0.3), transparent);
  border: 1px solid rgba(61,111,240,0.15);
}

/* ═══════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════ */
.cta-section {
  background: var(--c-dark-1);
  padding: var(--space-section) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(41,82,196,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 900;
  color: var(--c-blanco);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.cta-title .red { color: var(--c-rojo); }
.cta-sub { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 36px; }
.contact-pills {
  display: inline-flex; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}
.contact-pill {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: all 0.3s;
}
.contact-pill:hover {
  border-color: rgba(61,111,240,0.4);
  color: var(--c-blanco);
  box-shadow: var(--glow-azul);
}
.contact-pill strong { color: var(--c-blanco); }
.contact-pill .icon { font-size: 16px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--c-dark-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
}
.footer-logo .dot { color: var(--c-rojo); }
.footer-logo .hl  { color: var(--c-azul-glow); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(61,111,240,0.3); }
  50%       { box-shadow: 0 0 48px rgba(61,111,240,0.6); }
}

/* Reveal animations (JS-triggered) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.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; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .impact-row, .ley-row, .presencia-row { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px; }
  .timeline-line { display: none; }
  .hero-stats { gap: 24px; }

  /* Mobile nav panel */
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(6,13,26,0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 490;
  }
  .main-nav.open { display: flex; }

  /* Mobile top-level links */
  .main-nav > li > a {
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 10px;
  }
  .main-nav > li.menu-item-has-children > a::after { content: ' ▾'; }

  /* Mobile submenu — show inline, not overlay */
  .main-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    margin: 4px 0 4px 16px;
    padding: 6px;
    box-shadow: none;
    backdrop-filter: none;
  }
  .main-nav .sub-menu li a {
    font-size: 14px;
    padding: 10px 14px;
  }

  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .timeline { grid-template-columns: 1fr; }
  .contact-pills { flex-direction: column; align-items: center; }
}

/* WP Core */
.wp-block-image { margin: 0; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
