/* ====================================================================
   SSI S.A.S — Components
   Navbar, Footer, Buttons, Cards, Badges, Forms
   ==================================================================== */

/* ──────────────────────────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(0, 13, 48, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 212, 170, 0.18);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.site-nav.scrolled {
  background: rgba(0, 13, 48, 0.98);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img, .nav-logo svg { height: 46px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--mint); background: rgba(0, 212, 170, 0.1); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--mint);
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.28);
  text-transform: uppercase;
}
.nav-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  animation: blink 1.5s infinite;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-gold);
  color: var(--azul-midnight);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  transition: all var(--t-base);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(245, 166, 35, 0.55); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px; background: currentColor;
  position: relative;
  transition: all var(--t-base);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 2px; background: currentColor;
  transition: all var(--t-base);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Offset for fixed nav */
.page { padding-top: var(--nav-height); }

/* ──────────────────────────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: all var(--t-base);
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad-gold);
  color: var(--azul-midnight);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(245, 166, 35, 0.6);
}
.btn-secondary {
  background: var(--grad-accent);
  color: var(--azul-midnight);
  box-shadow: 0 6px 24px rgba(0, 212, 170, 0.35);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 212, 170, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--azul-real);
  border: 2px solid var(--azul-real);
}
.btn-outline:hover {
  background: var(--azul-real);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-white {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-lg { font-size: 1.05rem; padding: 18px 42px; }
.btn-sm { font-size: 0.82rem; padding: 10px 22px; }
.btn-pulse { animation: pulse 2.5s ease-in-out infinite; }

/* ──────────────────────────────────────────────────────────────────
   CARDS
   ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  border: 1.5px solid var(--gris-2);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--azul-pale);
}

/* Card con borde-top animado */
.card-accent::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card-accent:hover::before { transform: scaleX(1); }

/* Glassmorphism card (fondos oscuros) */
.card-glass {
  background: var(--grad-glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  color: #fff;
  transition: all var(--t-base);
}
.card-glass:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(0, 212, 170, 0.35);
  box-shadow: var(--shadow-glow);
}
.card-glass h3 { color: #fff; }
.card-glass p { color: rgba(255, 255, 255, 0.72); }

/* Icon container dentro de card */
.card-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.card-icon.azul   { background: linear-gradient(135deg, #EBF2FF, #D6E8FF); color: var(--azul-real); }
.card-icon.mint   { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: var(--verde); }
.card-icon.gold   { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: var(--gold-dark); }
.card-icon.violet { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: var(--violeta); }
.card-icon.cyan   { background: linear-gradient(135deg, #CFFAFE, #A5F3FC); color: var(--cyan); }
.card-icon.red    { background: linear-gradient(135deg, #FEE2E2, #FECACA); color: var(--rojo); }

.card h3 { color: var(--azul-midnight); margin-bottom: 10px; }
.card p  { font-size: 0.92rem; line-height: 1.7; }

/* Tag/chip pequeño dentro de card */
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--azul-pale);
  color: var(--azul-real);
  border: 1px solid rgba(0, 61, 165, 0.15);
  margin-top: 14px;
}
.chip-mint  { background: rgba(0, 212, 170, 0.12); color: var(--mint); border-color: rgba(0, 212, 170, 0.25); }
.chip-gold  { background: rgba(245, 166, 35, 0.12); color: var(--gold-dark); border-color: rgba(245, 166, 35, 0.3); }
.chip-violet{ background: rgba(124, 58, 237, 0.1); color: var(--violeta); border-color: rgba(124, 58, 237, 0.25); }

/* ──────────────────────────────────────────────────────────────────
   GRIDS utilitarios
   ────────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ──────────────────────────────────────────────────────────────────
   FORMS
   ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--texto);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 18px;
  background: var(--blanco);
  border: 1.5px solid var(--gris-2);
  border-radius: var(--radius);
  color: var(--texto);
  transition: all var(--t-fast);
}
.form-control:focus {
  border-color: var(--azul-real);
  box-shadow: 0 0 0 4px rgba(0, 61, 165, 0.12);
}
textarea.form-control { resize: vertical; min-height: 130px; font-family: inherit; }

/* ──────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #030a1c;
  color: rgba(255, 255, 255, 0.65);
  padding: 60px 0 28px;
  border-top: 1px solid rgba(0, 212, 170, 0.18);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--gold), var(--cyan), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--mint); }
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin-top: 16px;
  max-width: 320px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: all var(--t-fast);
}
.footer-social a:hover { background: var(--mint); color: var(--azul-midnight); border-color: var(--mint); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: var(--gold); }

/* ──────────────────────────────────────────────────────────────────
   BADGES / PILLS genéricos
   ────────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.pill-success { background: rgba(22, 163, 74, 0.12); color: var(--verde); border: 1px solid rgba(22, 163, 74, 0.25); }
.pill-warning { background: rgba(245, 166, 35, 0.12); color: var(--gold-dark); border: 1px solid rgba(245, 166, 35, 0.3); }
.pill-info    { background: var(--azul-pale); color: var(--azul-real); border: 1px solid rgba(0, 61, 165, 0.2); }
.pill-mint    { background: rgba(0, 212, 170, 0.12); color: var(--mint); border: 1px solid rgba(0, 212, 170, 0.28); }

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 20px;
    background: rgba(0, 13, 48, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--t-base);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { width: 100%; padding: 14px 16px; font-size: 0.98rem; }
  .nav-toggle { display: flex; }
  .nav-badge { display: none; }
  .nav-cta { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
