/**
 * SysNetConn - Custom Bootstrap 5 Theme & Corporate Design System
 * Inspired by csags.com.mx with modern tech aesthetics
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* SysNet Brand Colors */
  --sys-primary: #0a365c;
  --sys-primary-dark: #061d33;
  --sys-primary-light: #154c7d;
  --sys-secondary: #00a8cc;
  --sys-secondary-hover: #0087a3;
  --sys-accent: #05b384;
  --sys-accent-hover: #04926b;
  --sys-cyan-glow: #00e5ff;
  --sys-dark: #0a111a;
  --sys-dark-surface: #0f1c2b;
  --sys-light-surface: #f4f8fb;
  --sys-border-light: rgba(10, 54, 92, 0.1);
  --sys-border-dark: rgba(255, 255, 255, 0.1);

  /* Gradients */
  --sys-grad-primary: linear-gradient(135deg, #0a365c 0%, #061d33 100%);
  --sys-grad-hero: linear-gradient(135deg, rgba(6, 29, 51, 0.95) 0%, rgba(10, 54, 92, 0.90) 100%);
  --sys-grad-accent: linear-gradient(135deg, #00a8cc 0%, #05b384 100%);
  --sys-grad-card-hover: linear-gradient(180deg, rgba(0, 168, 204, 0.04) 0%, rgba(5, 179, 132, 0.01) 100%);

  /* Shadows */
  --sys-shadow-sm: 0 2px 8px rgba(10, 54, 92, 0.06);
  --sys-shadow-md: 0 10px 25px -5px rgba(10, 54, 92, 0.08), 0 8px 10px -6px rgba(10, 54, 92, 0.04);
  --sys-shadow-lg: 0 20px 35px -10px rgba(10, 54, 92, 0.12), 0 10px 10px -5px rgba(10, 54, 92, 0.04);
  --sys-shadow-glow: 0 0 25px rgba(0, 168, 204, 0.25);

  /* Bootstrap Variable Overrides */
  --bs-primary: #0a365c;
  --bs-primary-rgb: 10, 54, 92;
  --bs-secondary: #00a8cc;
  --bs-secondary-rgb: 0, 168, 204;
  --bs-success: #05b384;
  --bs-success-rgb: 5, 179, 132;
  --bs-info: #0284c7;
  --bs-info-rgb: 2, 132, 199;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-dark: #0a111a;
  --bs-dark-rgb: 10, 17, 26;
  --bs-light: #f4f8fb;
  --bs-light-rgb: 244, 248, 251;
  --bs-body-bg: #ffffff;
  --bs-body-color: #334155;
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bs-heading-color: #0b1e36;
}

/* Base Typography */
body {
  font-family: var(--bs-body-font-family);
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  overflow-x: hidden;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bs-heading-color);
}

a {
  color: var(--sys-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--sys-secondary-hover);
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar-sysnet {
  background-color: var(--sys-primary-dark);
  font-size: 0.85rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1050;
}

.topbar-sysnet a {
  color: #cbd5e1;
}

.topbar-sysnet a:hover {
  color: var(--sys-cyan-glow);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar-sysnet {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 54, 92, 0.08);
  transition: all 0.3s ease;
  z-index: 1040;
}

.navbar-sysnet.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--sys-shadow-md);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.navbar-sysnet .navbar-brand img {
  height: 48px;
  transition: height 0.3s ease;
}

.navbar-sysnet.scrolled .navbar-brand img {
  height: 42px;
}

.navbar-sysnet .nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: #1e293b;
  padding: 0.6rem 1rem !important;
  position: relative;
  transition: color 0.25s ease;
}

.navbar-sysnet .nav-link:hover,
.navbar-sysnet .nav-link.active {
  color: var(--sys-primary);
}

.navbar-sysnet .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2.5px;
  background: var(--sys-grad-accent);
  border-radius: 4px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-sysnet .nav-link:hover::after,
.navbar-sysnet .nav-link.active::after {
  transform: scaleX(1);
}

/* Language Switcher */
.lang-btn {
  background: rgba(10, 54, 92, 0.06);
  border: 1px solid rgba(10, 54, 92, 0.12);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sys-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--sys-primary);
  color: #ffffff;
  border-color: var(--sys-primary);
}

.lang-dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(10, 54, 92, 0.08);
  box-shadow: var(--sys-shadow-lg);
  min-width: 140px;
  padding: 0.5rem;
  z-index: 1060 !important;
}

.lang-dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-dropdown-item.active {
  background-color: var(--sys-primary);
  color: #ffffff;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-sysnet-primary {
  background: var(--sys-grad-primary);
  color: #ffffff;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(10, 54, 92, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sysnet-primary:hover {
  background: linear-gradient(135deg, #154c7d 0%, #0a365c 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 54, 92, 0.35);
}

.btn-sysnet-secondary {
  background: var(--sys-grad-accent);
  color: #ffffff;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 168, 204, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sysnet-secondary:hover {
  background: linear-gradient(135deg, #05b384 0%, #00a8cc 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 204, 0.45);
}

.btn-sysnet-outline {
  background: transparent;
  color: var(--sys-primary);
  border: 2px solid var(--sys-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sysnet-outline:hover {
  background: var(--sys-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 54, 92, 0.2);
}

.btn-sysnet-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sysnet-outline-light:hover {
  background: #ffffff;
  color: var(--sys-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge-sysnet {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-sysnet-cyan {
  background: rgba(0, 168, 204, 0.12);
  color: #0087a3;
  border: 1px solid rgba(0, 168, 204, 0.3);
}

.badge-sysnet-blue {
  background: rgba(10, 54, 92, 0.1);
  color: var(--sys-primary);
  border: 1px solid rgba(10, 54, 92, 0.2);
}

.badge-sysnet-teal {
  background: rgba(5, 179, 132, 0.12);
  color: #04926b;
  border: 1px solid rgba(5, 179, 132, 0.3);
}

.badge-sysnet-dark {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   HERO SECTIONS & CAROUSEL
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background-color: var(--sys-primary-dark);
  color: #ffffff;
  overflow: hidden;
}

.hero-slide-item {
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-overlay-circuit {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(0, 168, 204, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 15% 80%, rgba(5, 179, 132, 0.12) 0%, transparent 50%),
              var(--sys-grad-hero);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
}

.hero-slider-section .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  transition: all 0.3s ease;
}

.hero-slider-section .carousel-indicators .active {
  width: 32px;
  border-radius: 10px;
  background-color: var(--sys-cyan-glow);
}

/* Inner Page Header */
.page-header-sysnet {
  background: var(--sys-grad-hero);
  color: #ffffff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--sys-secondary);
}

.page-header-sysnet::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -40%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 204, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card-sysnet {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--sys-border-light);
  box-shadow: var(--sys-shadow-md);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card-sysnet:hover {
  transform: translateY(-6px);
  box-shadow: var(--sys-shadow-lg);
  border-color: rgba(0, 168, 204, 0.3);
}

.card-sysnet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sys-grad-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-sysnet:hover::before {
  opacity: 1;
}

.card-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(0, 168, 204, 0.1);
  color: var(--sys-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.card-sysnet:hover .card-icon-box {
  background: var(--sys-grad-accent);
  color: #ffffff;
  box-shadow: var(--sys-shadow-glow);
  transform: scale(1.05);
}

/* Division Split Section */
.division-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  padding: 3rem 2.5rem;
  transition: all 0.4s ease;
  height: 100%;
}

.division-infra {
  background: linear-gradient(145deg, #0a365c 0%, #07233c 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 168, 204, 0.3);
}

.division-infra:hover {
  border-color: var(--sys-cyan-glow);
  box-shadow: 0 15px 35px rgba(0, 168, 204, 0.2);
}

.division-software {
  background: linear-gradient(145deg, #072b2c 0%, #061e38 100%);
  color: #ffffff;
  border: 1px solid rgba(5, 179, 132, 0.3);
}

.division-software:hover {
  border-color: #34d399;
  box-shadow: 0 15px 35px rgba(5, 179, 132, 0.2);
}

/* ==========================================================================
   STATS COUNTERS
   ========================================================================== */
.stats-section {
  background: var(--sys-dark);
  color: #ffffff;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, var(--sys-cyan-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   PARTNER LOGOS
   ========================================================================== */
.partner-pill {
  background: #ffffff;
  border: 1px solid rgba(10, 54, 92, 0.08);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sys-shadow-sm);
  transition: all 0.3s ease;
  height: 70px;
}

.partner-pill:hover {
  box-shadow: var(--sys-shadow-md);
  border-color: var(--sys-secondary);
  transform: translateY(-3px);
}

.partner-pill span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #475569;
  letter-spacing: -0.01em;
}

.partner-pill:hover span {
  color: var(--sys-primary);
}

/* ==========================================================================
   TIMELINE (NOSOTROS)
   ========================================================================== */
.timeline-sysnet {
  position: relative;
  padding: 2rem 0;
}

.timeline-sysnet::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--sys-primary) 0%, var(--sys-secondary) 50%, var(--sys-accent) 100%);
  transform: translateX(-50%);
}

.timeline-block {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sys-secondary);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.4);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  width: 44%;
  background: #ffffff;
  border: 1px solid var(--sys-border-light);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--sys-shadow-md);
  position: relative;
}

.timeline-block:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-block:nth-child(even) .timeline-content {
  margin-right: auto;
}

@media (max-width: 768px) {
  .timeline-sysnet::before {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-sysnet .form-control,
.form-sysnet .form-select {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-sysnet .form-control:focus,
.form-sysnet .form-select:focus {
  border-color: var(--sys-secondary);
  box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.15);
}

.form-sysnet label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-sysnet {
  background-color: var(--sys-dark);
  color: #94a3b8;
  font-size: 0.92rem;
  border-top: 3px solid var(--sys-primary);
}

.footer-sysnet h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

.footer-sysnet ul li {
  margin-bottom: 0.65rem;
}

.footer-sysnet a {
  color: #94a3b8;
}

.footer-sysnet a:hover {
  color: var(--sys-cyan-glow);
  padding-left: 4px;
}

.footer-bottom {
  background-color: #060b11;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.social-link-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.social-link-btn:hover {
  background: var(--sys-secondary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   FLOATING TOOLS & BUTTONS
   ========================================================================== */
.btn-scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sys-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--sys-shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-scroll-top:hover {
  background: var(--sys-secondary);
  transform: translateY(-4px);
}

.whatsapp-float {
  position: fixed;
  bottom: 82px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Filter Nav in Solutions */
.filter-nav-sysnet .btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 30px;
  padding: 0.45rem 1.25rem;
  border: 1px solid var(--sys-border-light);
  color: #475569;
  background: #ffffff;
  transition: all 0.2s ease;
}

.filter-nav-sysnet .btn.active,
.filter-nav-sysnet .btn:hover {
  background: var(--sys-primary);
  color: #ffffff;
  border-color: var(--sys-primary);
}
