/* ==========================================================================
   CCS TECNOLOGY - SISTEMA DE DISEÑO DE ALTA GAMA (UI/UX PRO MAX)
   ========================================================================== */

:root {
  /* Paleta de Colores basándose en la Marca CCS TECNOLOGY */
  --bg-midnight: #070A12;
  --bg-midnight-card: #0F172A;
  
  --cyan-main: #00F2FE;
  --cyan-glow: rgba(0, 242, 254, 0.4);
  
  --purple-main: #7C3AED;
  --purple-glow: rgba(124, 58, 237, 0.4);

  --lime-main: #10B981;
  --lime-glow: rgba(16, 185, 129, 0.4);

  --orange-main: #F97316;
  --orange-glow: rgba(249, 115, 22, 0.4);

  --yellow-main: #F59E0B;

  --font-heading: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

/* Base Resets & Background */
body {
  background-color: var(--bg-midnight);
  color: #F8FAFC;
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Background Tech Grid Pattern */
.bg-tech-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Background Color Utilities */
.bg-midnight { background-color: #070A12; }
.bg-midnight-card { background-color: #0F172A; }

.text-cyan-main { color: #00F2FE; }
.text-purple-main { color: #7C3AED; }
.text-lime-main { color: #10B981; }
.text-orange-main { color: #F97316; }

.bg-cyan-main { background-color: #00F2FE; }
.bg-purple-main { background-color: #7C3AED; }
.bg-lime-main { background-color: #10B981; }
.bg-orange-main { background-color: #F97316; }

.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

/* Custom Animations */
@keyframes pulseSlow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-pulse-slow {
  animation: pulseSlow 8s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}

/* Navigation Links */
.nav-link {
  color: #E2E8F0;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.4rem 0.2rem;
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
  color: #00F2FE;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #00F2FE, #7C3AED);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(6px);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #CBD5E1;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Buttons Glow Styles */
.btn-glow-orange {
  display: inline-flex;
  items-center: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  border-radius: 0.85rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-glow-orange:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
}

.btn-glow-orange:active {
  transform: translateY(0) scale(0.98);
}

.btn-cyan-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #00F2FE;
  background-color: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 0.85rem;
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-cyan-outline:hover {
  background-color: rgba(0, 242, 254, 0.15);
  border-color: #00F2FE;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

/* Service Cards Interactive */
.service-card {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  border-width: 1px;
  border-style: solid;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 242, 254, 0.15);
}

.service-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.25rem;
  border-width: 1px;
  border-style: solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

/* Tools & Quiz Tabs */
.tool-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94A3B8;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-tab:hover {
  color: #FFFFFF;
  background-color: rgba(15, 23, 42, 0.9);
}

.tool-tab.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  border-color: #00F2FE;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.tool-content.hidden {
  display: none;
}

.tool-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee Infinito de Socios Comerciales */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Tarjeta interactiva de socio comercial */
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  min-width: 170px;
}

.partner-card:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: rgba(15, 23, 42, 0.95);
  border-color: var(--cyan-main);
  box-shadow: 0 10px 25px -5px rgba(0, 242, 254, 0.3);
}

.partner-card svg {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-card:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px currentColor);
}

/* ==========================================================================
   MENÚ PRINCIPAL FIJO SÓLIDO Y BARRA DE PROGRESO DE SCROLL INFERIOR
   ========================================================================== */
.header-solid-fixed {
  background-color: #070A12;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

#scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #00F2FE, #7C3AED, #F97316);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
  z-index: 50;
  transition: width 0.1s ease-out;
}

.logo-glow-aura {
  position: relative;
}

.logo-glow-aura::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,242,254,0.4) 0%, rgba(124,58,237,0.2) 50%, transparent 80%);
  filter: blur(8px);
  z-index: -1;
}

.nav-solid-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  color: #CBD5E1;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-solid-link:hover {
  color: #00F2FE;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.nav-solid-link.active {
  color: #FFFFFF;
}

.nav-solid-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: #00F2FE;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
  border-radius: 2px;
}

/* Levitación flotante para badges en Hero */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

