/**
 * SPIKEDTECH - Design Services CSS
 * Modern Design System for Design Categories
 */

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

  /* Background Colors */
  --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;
}

/* ========================================
   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-container {
  text-align: center;
  position: relative;
  z-index: 2;
}

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

.loading-logo img {
  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-content {
  position: relative;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-lg);
}

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

.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 {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

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

/* ============================================
   4. HEADER/NAVIGATION
   ============================================ */

.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(64, 248, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0;
}

.modern-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: rgba(64, 248, 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);
}

/* Utilidades adicionales para header */
.modern-header * {
  color: inherit;
}

.modern-header a {
  color: #ffffff;
}

.modern-header a:hover {
  color: #00d4ff;
}

/* Prevenir problemas de z-index */
.modern-header,
.mobile-menu-overlay {
  isolation: isolate;
}

/* Mejor rendering de texto */
.modern-header,
.hero-title,
.section-title,
.about-title {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   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: 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;
  }
}

/* ========================================
   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;
}

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

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

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

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

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

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

.category-image {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .card-img {
  transform: scale(1.05);
}

.category-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

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

.category-description {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
  padding: var(--space-4xl) 0;
  background: radial-gradient(
    circle at center,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.cta-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

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

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

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
  color: var(--text-inverse);
  text-decoration: none;
}

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

/* ========================================
   MODAL STYLES
======================================== */
.modal-dialog {
  max-width: 800px; /* Ancho máximo del modal */
  width: 90%; /* Ancho responsivo */
  margin: 1.75rem auto;
}

.modal-content.custom-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  width: 100%;
}

.modal-header {
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-lg);
}

.modal-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
}

.modal-title svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.btn-close:hover {
  opacity: 1;
  color: var(--primary);
  transform: scale(1.1);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-description {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.category-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  max-width: 100%;
}

.category-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  backdrop-filter: var(--glass-backdrop);
  text-decoration: none;
  font-size: var(--text-sm);
}

.category-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.category-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.modal-footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--space-lg);
  display: flex;
  justify-content: flex-end;
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--primary);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   FOOTER - Usando el mismo estilo moderno
======================================== */
.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 {
  text-align: left;
}

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

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

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

.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-xs) 0;
  transition: all var(--transition-normal);
  position: relative;
  display: inline-block;
  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);
}

.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);
  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;
  transform: scale(1.1);
}

/* Footer Location Section */
.footer-location {
  text-align: center;
  margin-bottom: var(--space-2xl);
  grid-column: 1 / -1;
}

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

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

.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);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

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

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

/* ========================================
   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 shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

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

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

.category-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) {
  .nav-container {
    padding: 0 var(--space-md);
  }

  .nav-links {
    gap: var(--space-md);
  }

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

  .container {
    max-width: 900px;
  }

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

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

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo {
    width: 40px;
    height: 40px;
  }

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

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

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

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

  .category-card {
    min-height: 320px;
  }

  .category-image {
    height: 200px;
  }

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

  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .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-bottom {
    flex-direction: column;
    text-align: center;
  }

  .main {
    padding-top: 70px;
  }

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

  .category-buttons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 var(--space-sm);
    height: 60px;
  }

  .nav-logo {
    width: 35px;
    height: 35px;
  }

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

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

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

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

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

  .category-card {
    min-height: 300px;
  }

  .category-image {
    height: 180px;
  }

  .category-content {
    padding: var(--space-md);
  }

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

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

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

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

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

  .main {
    padding-top: 60px;
  }

  .modal-body {
    padding: var(--space-md);
  }

  .category-buttons-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .category-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
  }
}

/* ========================================
   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;
}

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

  .category-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,
  .category-card {
    animation: none !important;
  }

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

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

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

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

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

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