/* ============================================
   SPIKEDTECH - Modern CSS Styles
   Optimized for Performance & Modern Design
   ============================================ */

/* ============================================
   1. VARIABLES CSS
   ============================================ */

:root {
  /* Primary Colors */
  --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; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 3rem; /* 48px */
  --space-3xl: 4rem; /* 64px */
  --space-4xl: 6rem; /* 96px */

  /* 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; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */
  --text-7xl: 4.5rem; /* 72px */

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

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

/* Remove default focus styles and add custom ones */
*:focus {
  outline: none;
}

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

/* Estado de carga para el body */
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;
}

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

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

.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: 80px;
  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,
.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
  transition: all 0.3s ease;
}

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

.nav-title,
.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;
}

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

.links a,
.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;
}

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

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

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

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

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

.servi,
.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(0, 212, 255, 0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.servi:hover,
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 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 */
.hamburger-btn,
.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;
}

.hamburger-btn:hover,
.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(0, 212, 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(0, 212, 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;
}

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

.close-btn:hover,
.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(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 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(0, 212, 255, 0.3);
}

.btn-mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 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);
}

/* ============================================
   5. NAVEGACIÓN ESPECÍFICA
   ============================================ */

.navigation {
  position: fixed;
  top: 100px;
  left: var(--space-lg);
  z-index: 900;
}

.arrow-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-normal);
  backdrop-filter: var(--glass-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   6. MAIN CONTENT & PRODUCTOS
   ============================================ */

.main {
  padding-top: 120px;
  min-height: 100vh;
  background: var(--bg-primary);
}

.title {
  text-align: center;
}

.h1-productos {
  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-xl);
  text-align: center;
  position: relative;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.h1-productos::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
}

/* ============================================
   7. CARDS DE PRODUCTOS - COMPATIBLE CON BOOTSTRAP
   ============================================ */

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

/* Mantenemos el sistema de grid de Bootstrap */
.row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: -0.75rem !important;
  margin-left: -0.75rem !important;
  min-height: auto !important; /* Sobrescribir el min-height: 100vh del HTML */
}

/* Estilos específicos para las columnas de productos */
.row > [class*="col-"] {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

.card {
  width: 100% !important;
  max-width: 100%;
  height: 630px !important;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-shadow);
  will-change: transform;
}

.carousel-control-next,
.carousel-control-prev {
  margin-top: 8em;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
}

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

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

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

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

/* ============================================
   8. CAROUSEL
   ============================================ */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  height: 280px !important;
  flex-shrink: 0;
}

.carousel-inner {
  height: 100% !important;
}

.carousel-inner img {
  height: 300px; /* Puedes ajustar la altura */
  object-fit: contain;
  background-color: #fff; /* Opcional, por si la imagen no llena todo */
}

.carousel-item {
  height: 100% !important;
}

.card-img-top {
  width: 100%;
  height: 280px !important;
  object-fit: contain;
  transition: var(--transition-slow);
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: none;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-normal);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-50%) scale(1.1);
}

/* ============================================
   9. CARD BODY
   ============================================ */

.card-body {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 470px;
  overflow: hidden;
  background-color: black;
}

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

.card-content {
  flex-grow: 1;
  flex-direction: column;
  overflow: hidden;
}

.card-text {
  margin-bottom: var(--space-md);
}

.card-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3em;
}

.card-pricing {
  margin: var(--space-sm) 0;
}

.card-pricing strong {
  color: var(--primary);
  font-size: var(--text-xl);
  font-weight: 700;
}

.card-pricing strike {
  color: var(--error);
  font-size: var(--text-base);
}

.card-availability {
  background: rgba(0, 212, 255, 0.1);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 255, 0.3);
  margin: var(--space-sm) 0;
  text-align: center;
}

.card-availability strong {
  color: var(--primary);
  font-weight: 600;
}

.pad,
.card-availability {
  padding: var(--space-xs) 0;
  color: var(--text-primary);
}

.card-action {
  padding-top: var(--space-md);
  padding-bottom: var(--space-sm);
}

.btn-primary {
  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);
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: var(--text-base);
  display: block;
}

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

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

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

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

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

/* ============================================
   11. ANIMACIONES
   ============================================ */

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

/* Efectos especiales para cartas */
@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.card:nth-child(6n + 1) {
  animation: cardFloat 8s ease-in-out infinite;
}

.card:nth-child(6n + 3) {
  animation: cardFloat 8s ease-in-out infinite;
  animation-delay: -4s;
}

.card:nth-child(6n + 5) {
  animation: cardFloat 8s ease-in-out infinite;
  animation-delay: -2s;
}

/* Efecto de brillo en hover */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: var(--transition-slow);
  pointer-events: none;
}

.card:hover::after {
  left: 100%;
}

/* Animaciones de entrada - VISIBLES POR DEFECTO */
.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;
}

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

  .container {
    max-width: 900px;
  }
}

@media (max-width: 900px) {
  .card {
    height: 620px !important;
  }
}

@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%;
  }

  .h1-produtos {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .card {
    height: 600px !important;
  }

  .card-body {
    height: 450px;
  }

  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 250px !important;
  }

  .card-img-top {
    height: 250px !important;
  }

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

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .card {
    margin: 0;
    height: 550px !important;
  }

  .card-body {
    height: 430px;
  }

  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 220px !important;
  }

  .card-img-top {
    height: 220px !important;
  }

  .main {
    padding-top: 80px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-section h4,
  .abajo {
    text-align: center;
    margin-bottom: var(--space-md);
  }

  .wrapper {
    justify-content: center;
  }

  .center1 {
    justify-content: center;
  }

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

/* ============================================
   13. SCROLLBAR PERSONALIZADO
   ============================================ */

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

/* ============================================
   14. UTILIDADES & ACCESIBILIDAD & BOOTSTRAP COMPATIBILITY
   ============================================ */

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

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

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

/* Bootstrap grid system compatibility */
.d-flex {
  display: flex !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Responsive Bootstrap columns */
.col-lg-4 {
  flex: 0 0 auto;
  width: 33.33333333%;
}

.col-md-6 {
  flex: 0 0 auto;
  width: 50%;
}

@media (max-width: 991.98px) {
  .col-lg-4 {
    width: 50%;
  }
}

@media (max-width: 767.98px) {
  .col-md-6,
  .col-lg-4 {
    width: 100%;
  }
}

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

/* Focus styles para accesibilidad */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

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

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

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

/* Asegurar que Bootstrap funcione correctamente */
.container-fluid,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

/* ============================================
   15. ESTADOS ESPECIALES
   ============================================ */

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

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

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

  .loading-logo,
  .loading-glow,
  .loading-particles::before,
  .loading-particles::after,
  .card {
    animation: none !important;
  }

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

/* Better experience on touch devices */
@media (hover: none) {
  .icon:hover,
  .social-link:hover,
  .card:hover {
    transform: none;
  }
}

/* ============================================
   16. PRINT STYLES
   ============================================ */

@media print {
  .loading-screen,
  header,
  .modern-header,
  .navigation,
  .wrapper,
  .mobile-social {
    display: none !important;
  }

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

  .card {
    break-inside: avoid;
  }
}
