/* ====================================================================
   SSI S.A.S — Main Stylesheet
   High-Tech Enterprise Design System
   ==================================================================== */

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
  /* Paleta corporativa */
  --azul-midnight:  #001D50;
  --azul-real:      #003DA5;
  --azul-mid:       #1A56C8;
  --azul-light:     #2E74D5;
  --azul-pale:      #EBF2FF;
  --azul-ice:       #F4F7FB;

  /* Acentos */
  --gold:           #F5A623;
  --gold-dark:      #D4891A;
  --mint:           #00D4AA;
  --cyan:           #0099CC;
  --mint-glow:      rgba(0, 212, 170, 0.35);

  /* Estados */
  --verde:          #16A34A;
  --verde-pale:     #DCFCE7;
  --rojo:           #DC2626;
  --violeta:        #7C3AED;

  /* Neutros */
  --blanco:         #FFFFFF;
  --gris:           #F4F7FB;
  --gris-2:         #E8EEF7;
  --gris-3:         #CBD5E1;
  --texto:          #1A2340;
  --subtexto:       #4B5D80;
  --subtexto-2:     #6B7A99;
  --gris-oscuro:    #334155;

  /* Gradientes */
  --grad-corporate:   linear-gradient(135deg, #001D50 0%, #003DA5 55%, #1A56C8 100%);
  --grad-hero:        linear-gradient(135deg, #000D30 0%, #001D50 30%, #003DA5 70%, #0D5BD5 100%);
  --grad-accent:      linear-gradient(135deg, #0099CC 0%, #00D4AA 100%);
  --grad-gold:        linear-gradient(135deg, #F5A623 0%, #E8901A 100%);
  --grad-card:        linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --grad-glass:       linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  --grad-text:        linear-gradient(90deg, #003DA5 0%, #1A56C8 50%, #0099CC 100%);

  /* Sombras */
  --shadow-sm:        0 2px 8px rgba(0, 29, 80, 0.08);
  --shadow-md:        0 6px 20px rgba(0, 29, 80, 0.10);
  --shadow-lg:        0 14px 40px rgba(0, 29, 80, 0.14);
  --shadow-xl:        0 24px 60px rgba(0, 29, 80, 0.20);
  --shadow-glow:      0 0 40px rgba(0, 212, 170, 0.25), 0 6px 30px rgba(0, 153, 204, 0.20);
  --shadow-gold:      0 8px 30px rgba(245, 166, 35, 0.45);

  /* Geometría */
  --radius-sm:        10px;
  --radius:           14px;
  --radius-lg:        18px;
  --radius-xl:        24px;
  --radius-full:      999px;

  /* Movimiento */
  --t-fast:           0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:           0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:           0.55s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --nav-height:       72px;
  --container-max:    1180px;
}

/* ── Tipografía ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--texto);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--subtexto); font-size: clamp(0.95rem, 1.6vw, 1rem); line-height: 1.75; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout helpers ─────────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
section { padding: clamp(64px, 9vw, 110px) 0; scroll-margin-top: var(--nav-height); }

.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Focus state for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Labels de sección */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--azul-real);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--azul-pale);
  border: 1px solid rgba(0, 61, 165, 0.15);
  margin-bottom: 18px;
}
.section-label.on-dark {
  color: var(--mint);
  background: rgba(0, 212, 170, 0.12);
  border-color: rgba(0, 212, 170, 0.28);
}
.section-label .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: blink 1.6s infinite;
}

.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-header h2 { margin-bottom: 16px; color: var(--azul-midnight); }
.section-header.on-dark h2 { color: var(--blanco); }
.section-header p { margin: 0 auto; }
.section-header.on-dark p { color: rgba(255,255,255,0.75); }

/* ── Animaciones ────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes float    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes pulse    { 0%,100% { transform:scale(1); } 50% { transform:scale(1.05); } }
@keyframes spinRing { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes blink    { 0%,100% { opacity:1; } 50% { opacity:0.35; } }
@keyframes shimmer  { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes gradShift{ 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes countUp  { from { opacity:0; transform:scale(0.6); } to { opacity:1; transform:scale(1); } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }

.fade-up  { animation: fadeUp 0.7s ease both; }
.fade-in  { animation: fadeIn 0.9s ease both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.40s; }
.d6 { animation-delay: 0.48s; }

/* Reveal-on-scroll base (populated by JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ── Scrollbar corporativo ──────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gris); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--azul-real), var(--azul-mid)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--azul-midnight); }

/* ── SelecciÃ³n ──────────────────────────────────────────────────── */
::selection { background: rgba(0, 61, 165, 0.85); color: #fff; }
