/**
 * SPIKEDTECH - Modern CSS Framework
 * Optimized for Performance & User Experience
 * Compatible with existing design system
 */

/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
======================================== */
:root {
  /* Primary Colors - Manteniendo el esquema de color actual */
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --primary-light: #33ddff;
  --secondary: #6366f1;
  --secondary-dark: #4f46e5;
  --accent: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Background Colors - Tema oscuro como el existente */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --text-inverse: #000000;

  /* Glassmorphism Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-backdrop: blur(20px);

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-xs: 0.125rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(0, 212, 255, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  --transition-spring: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ========================================
   RESET & BASE STYLES
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body:not(.content-loaded) {
  overflow: hidden;
}

.content-loaded {
  overflow: auto !important;
}

/* ============================================
   3. LOADING SCREEN
   ============================================ */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  transition: opacity var(--transition-slow);
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.loading-logo-container {
  position: relative;
  margin-bottom: var(--space-xl);
}

.loading-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.loading-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

.loading-text h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.loading-message {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
  font-weight: 400;
}

.loading-progress-container {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  transition: width var(--transition-normal);
  position: relative;
}

.loading-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.loading-progress-text {
  position: absolute;
  top: -25px;
  right: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.loading-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.loading-particles::before,
.loading-particles::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  animation: float 3s infinite ease-in-out;
}

.loading-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.loading-particles::after {
  top: 60%;
  right: 20%;
  animation-delay: 1.5s;
}

header,
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0;
}

header.scrolled,
.modern-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  width: 100%;
}

/* LOGO - Lado Izquierdo */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(64, 248, 255, 0.5));
  transition: all 0.3s ease;
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 20px rgba(64, 248, 255, 0.8));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  margin: 0;
}

/* NAVEGACIÓN DESKTOP - Lado Derecho */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(64, 248, 255, 0.1);
  border-radius: 25px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover,
.nav-link.active {
  color: #00d4ff !important;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(64, 248, 255, 0.5);
}

.nav-link.active {
  font-weight: 600;
}

/* BOTÓN CTA */
.nav-cta {
  display: flex;
  align-items: center;
}

.btn-nav-cta {
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  color: #000000 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(64, 248, 255, 0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(64, 248, 255, 0.5);
  color: #000000 !important;
}

.btn-nav-cta svg {
  transition: transform 0.3s ease;
}

.btn-nav-cta:hover svg {
  transform: translateX(3px);
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  border-left: 1px solid rgba(64, 248, 255, 0.2);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

/* MOBILE MENU HEADER */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(64, 248, 255, 0.3));
}

.mobile-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #ffffff !important;
  cursor: pointer !important;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* MOBILE MENU CONTENT */
.mobile-menu-content {
  padding: 2rem;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 2rem;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  color: #00d4ff !important;
  background: rgba(64, 248, 255, 0.1);
  border-color: rgba(64, 248, 255, 0.3);
  transform: translateX(10px);
}

.mobile-link-icon {
  font-size: 1.25rem;
  min-width: 24px;
  text-align: center;
}

/* MOBILE CTA BUTTON */
.mobile-menu-cta {
  margin-bottom: 2rem;
}

.btn-mobile-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #00d4ff, #6366f1);
  color: #000000 !important;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(64, 248, 255, 0.3);
}

.btn-mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(64, 248, 255, 0.5);
  color: #000000 !important;
}

/* REDES SOCIALES MÓVIL */
.mobile-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* COLORES HOVER PARA REDES SOCIALES MÓVIL */
.mobile-social-link[href*="facebook"]:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.mobile-social-link[href*="instagram"]:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  ) !important;
  border-color: #e4405f !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.mobile-social-link[href*="wa.me"]:hover,
.mobile-social-link[href*="whatsapp"]:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.mobile-social-link[href*="mailto"]:hover {
  background: #ea4335 !important;
  border-color: #ea4335 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.mobile-social-link[href*="tel:"]:hover {
  background: #4caf50 !important;
  border-color: #4caf50 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ========================================
   MAIN CONTENT
======================================== */
.main {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg-primary);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  position: relative;
  padding: var(--space-4xl) 0;
  background: radial-gradient(
    circle at center,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  height: auto;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-normal);
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 212, 255, 0.3);
  background: var(--bg-card-hover);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  color: var(--text-inverse);
}

.service-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.service-description {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: var(--space-lg);
  padding: 0;
}

.service-features li {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-lg);
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.service-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.service-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.service-button:hover::before {
  left: 100%;
}

.service-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
  color: var(--text-inverse);
  text-decoration: none;
}

.service-button svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.service-button:hover svg {
  transform: translateX(3px);
}

/* Estilos oscuros para la sección CTA */
.cta-section {
  background-color: #121212;
  color: #f0f0f0;
  padding: 60px 0;
}

.cta-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 15px;
}

.cta-description {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #cccccc;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

.cta-button.primary {
  background-color: #25d366;
  color: #fff;
}

.cta-button.primary:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

.cta-button.secondary {
  background-color: #333;
  color: #fff;
}

.cta-button.secondary:hover {
  background-color: #444;
  transform: scale(1.05);
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(0, 212, 255, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.footer-section {
  text-align: left;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.footer-brand-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer-location h4,
.footer-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--primary);
  position: relative;
  letter-spacing: -0.01em;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-sm);
}

.footer-location p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.collaborator-logo {
  display: flex;
  justify-content: flex-start;
}

.collaborator-img {
  max-width: 120px;
  height: auto;
  filter: grayscale(50%) brightness(0.8);
  transition: all var(--transition-normal);
  border-radius: var(--radius-md);
}

.collaborator-img:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) 0;
  transition: all var(--transition-normal);
  position: relative;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin: auto;
}

.footer-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
}

.footer-links a:hover::before {
  width: 100%;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  backdrop-filter: var(--glass-backdrop);
  text-decoration: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  stroke: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Social Media Hover Colors */
.social-link.facebook:hover,
.social-link[href*="facebook"]:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
}

.social-link.instagram:hover,
.social-link[href*="instagram"]:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  ) !important;
  border-color: #e4405f !important;
}

.social-link.email:hover,
.social-link[href*="mailto"]:hover {
  background: #ea4335 !important;
  border-color: #ea4335 !important;
}

.social-link.whatsapp:hover,
.social-link[href*="wa.me"]:hover,
.social-link[href*="whatsapp"]:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
}

.social-link.phone:hover,
.social-link[href*="tel:"]:hover {
  background: #4caf50 !important;
  border-color: #4caf50 !important;
}

.social-link:hover svg {
  fill: white !important;
  stroke: white !important;
  transform: scale(1.1);
}

/* Footer Map */
.footer-map {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
}

.footer-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  transition: transform var(--transition-normal);
}

.footer-map:hover iframe {
  transform: scale(1.02);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

.footer-copyright p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.footer-flag .flag-img {
  width: 40px;
  height: auto;
  transition: transform var(--transition-normal);
  border-radius: var(--radius-sm);
}

.footer-flag .flag-img:hover {
  transform: scale(1.1);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.5;
  }
}

/* Card Float Animation */
@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.service-card:nth-child(odd) {
  animation: cardFloat 8s ease-in-out infinite;
}

.service-card:nth-child(even) {
  animation: cardFloat 8s ease-in-out infinite;
  animation-delay: -4s;
}

/* Animate on Scroll */
.animate-on-scroll {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: var(--transition-slow);
}

.animate-on-scroll.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 900px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .nav-title {
    font-size: 1.25rem;
  }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
  }

  .services {
    padding: var(--space-3xl) 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .service-card {
    min-height: 350px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .collaborator-logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-location {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .main {
    padding-top: 70px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2rem);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .services {
    padding: var(--space-2xl) 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .service-card {
    padding: var(--space-lg);
    min-height: 320px;
  }

  .cta-section {
    padding: var(--space-2xl) 0;
  }

  .cta-title {
    font-size: var(--text-2xl);
  }

  .cta-description {
    font-size: var(--text-base);
  }

  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .collaborator-logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-location {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .map-container iframe {
    height: 250px;
  }

  .main {
    padding-top: 60px;
  }
}

/* ========================================
   SCROLLBAR CUSTOMIZATION
======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) var(--bg-secondary);
}

/* ========================================
   UTILITIES & ACCESSIBILITY
======================================== */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.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;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  *:focus-visible {
    outline: 3px solid var(--primary) !important;
    outline-offset: 3px !important;
  }

  .service-card,
  .social-link {
    border-width: 2px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .loading-logo img,
  .loading-spinner,
  .service-card {
    animation: none !important;
  }

  .service-card:hover,
  .social-link:hover,
  .service-button:hover {
    transform: none !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .service-card:hover,
  .social-link:hover,
  .service-button:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .loading-screen,
  .header,
  .modern-header,
  .hamburger,
  .nav-menu {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .service-card {
    break-inside: avoid;
  }

  .footer {
    border-top: 1px solid #000;
  }
}

/* Dark Mode Specific Adjustments */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--bg-primary);
    color: var(--text-primary);
  }
}

/* Performance Optimization Classes */
.will-change-transform {
  will-change: transform;
}

.will-change-auto {
  will-change: auto;
}

/* Focus Management */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 8px;
  z-index: 100;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 6px;
}

/* ========================================
   FOOTER
======================================== */

/* ============================================
   9. FOOTER
   ============================================ */

.modern-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 10% 20%,
    rgba(0, 212, 255, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-section h4 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--primary);
  position: relative;
  letter-spacing: -0.01em;
}

.collaborator-logo {
  display: flex;
}

.collaborator-logo img {
  max-width: 120px;
  height: auto;
  filter: grayscale(50%) brightness(0.8);
  transition: all var(--transition-normal);
  border-radius: var(--radius-md);
}

.collaborator-logo img:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-sm) 0;
  transition: all var(--transition-normal);
  position: relative;
  border-radius: var(--radius-sm);
}

.footer-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
}

.footer-links a:hover::before {
  width: 100%;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  backdrop-filter: var(--glass-backdrop);
  text-decoration: none;
  will-change: transform;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: fill var(--transition-normal);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  will-change: auto;
}

/* COLORES HOVER PARA REDES SOCIALES EN FOOTER */
.social-link.facebook:hover,
.social-link[href*="facebook"]:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
}

.social-link.instagram:hover,
.social-link[href*="instagram"]:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  ) !important;
  border-color: #e4405f !important;
}

.social-link.email:hover,
.social-link[href*="mailto"]:hover {
  background: #ea4335 !important;
  border-color: #ea4335 !important;
}

.social-link.whatsapp:hover,
.social-link[href*="wa.me"]:hover,
.social-link[href*="whatsapp"]:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
}

.social-link.phone:hover,
.social-link[href*="tel:"]:hover {
  background: #4caf50 !important;
  border-color: #4caf50 !important;
}

.social-link:hover svg {
  fill: white !important;
  transform: scale(1.1);
}

.footer-location {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.footer-location h4 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.footer-location p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--text-base);
}

.map-container {
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  transition: transform var(--transition-normal);
}

.map-container:hover iframe {
  transform: scale(1.02);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: var(--space-md);
  flex-direction: column;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.costa-rica-flag img {
  width: 40px;
  height: auto;
  transition: transform var(--transition-normal);
  border-radius: var(--radius-sm);
}

.costa-rica-flag img:hover {
  transform: scale(1.1);
}

/* ============================================
   12. RESPONSIVE DESIGN - COMPATIBLE CON BOOTSTRAP
   ============================================ */

@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .navbar,
  .nav-container {
    padding: 0 1.5rem;
  }

  .links,
  .nav-links {
    gap: 1.5rem;
  }

  .links a,
  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .navbar,
  .nav-container {
    padding: 0 1rem;
    height: 86px;
  }

  .nav-right,
  .links,
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger-btn,
  .mobile-menu-btn {
    display: flex;
  }

  .logo img,
  .logo-img {
    width: 40px;
    height: 40px;
  }

  .nav-title,
  .logo-text {
    font-size: 1.25rem;
  }

  .mobile-menu {
    width: 100%;
    max-width: 100%;
  }

  .navigation {
    left: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .navbar,
  .nav-container {
    padding: 0 0.75rem;
    height: 60px;
  }

  .logo img,
  .logo-img {
    width: 35px;
    height: 35px;
  }

  .nav-title,
  .logo-text {
    font-size: 1.1rem;
  }
}
