/* ============================================
   CIMA TECH GAMING - STYLE.CSS
   Vibe: Cyberpunk / Gamer / Dark Mode Only
   ============================================ */

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
/* Rajdhani (Headings) + Inter (Body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Rajdhani:wght@500;600;700&display=swap');

/* ============================================
   VARIABLES CSS GLOBALES (:root)
   Base Dark Mode Nativa (Sin switch light/dark)
   ============================================ */
:root {
  /* ========================================
     PALETA DE COLORES - NEON DARK
     ======================================== */
  /* Colores Principales (Neon) */
  --primary-color: #00F0FF;     /* Cyan Eléctrico */
  --primary-hover: #00B8C4;     /* Cyan Oscuro */
  --secondary-color: #7000FF;   /* Violeta Neon */
  --secondary-hover: #5600C2;   /* Violeta Oscuro */
  --accent-color: #FF0055;      /* Rosa Cyberpunk */
  --accent-hover: #C20041;
  
  /* Fondos (Deep Black & Dark Gray) */
  --background: #050505;        /* Negro casi puro */
  --background-alt: #0F172A;    /* Azul muy oscuro / Gris */
  --background-glass: rgba(15, 23, 42, 0.6); /* Para efecto vidrio */
  
  /* Textos */
  --text-color: #FFFFFF;        /* Blanco puro */
  --text-light: #CBD5E1;        /* Gris azulado claro */
  --text-muted: #94A3B8;        /* Gris azulado medio */
  
  /* Bordes y Líneas */
  --border-color: #334155;      /* Gris visible */
  --border-neon: rgba(0, 240, 255, 0.3); /* Borde sutil brillante */
  
  /* ========================================
     TIPOGRAFÍA
     ======================================== */
  --font-heading: 'Rajdhani', sans-serif; /* Tech / Gamer */
  --font-body: 'Inter', sans-serif;       /* Legibilidad */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Escala Tipográfica */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 2rem;        /* 32px */
  --font-size-4xl: 2.5rem;      /* 40px */
  --font-size-5xl: 3.5rem;      /* 56px */
  --font-size-6xl: 4.5rem;      /* 72px */
  
  /* ========================================
     ESPACIADO Y TAMAÑOS
     ======================================== */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-2xl: 5rem;     /* 80px */
  
  --container-padding: 1.25rem; /* 20px */
  --section-padding: 80px 0;
  
  /* ========================================
     BORDES Y RADIOS
     ======================================== */
  --border-width: 1px;
  
  /* Radios (Mezcla de curvos y rectos para look Tech) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;         /* Cards */
  --radius-xl: 16px;
  --radius-round: 9999px;    /* Pills / Botones redondos */
  --radius-circle: 50%;
  
  --radius-cards: 12px;
  --radius-buttons: 4px;     /* Botones más cuadrados (Tech) */
  --radius-inputs: 4px;
  
  /* ========================================
     EFECTOS (Glow & Glass)
     ======================================== */
  /* Sombras con color (Glow Effect) */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  
  /* Neon Glows */
  --glow-primary: 0 0 15px rgba(0, 240, 255, 0.4);
  --glow-secondary: 0 0 15px rgba(112, 0, 255, 0.4);
  --glow-text: 0 0 10px rgba(255, 255, 255, 0.5);
  
  /* Backdrop Filters */
  --blur-glass: blur(12px);
  
  /* ========================================
     TRANSICIONES
     ======================================== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* ========================================
     CAPAS (Z-INDEX)
     ======================================== */
  --z-back: -1;
  --z-normal: 1;
  --z-sticky: 100;
  --z-fixed: 1000;
  --z-modal: 2000;
}

/* ============================================
   RESET Y ESTILOS BASE
   Normalización y Estilos Globales Dark
   ============================================ */

/* Reset Universal */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML y Body */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background); /* Fondo Negro Puro */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; /* Suavizado de fuentes */
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Personalizada (Estilo Gamer) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color); /* Cyan */
  border-radius: var(--radius-round);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Selección de Texto (Cyan + Negro) */
::selection {
  background-color: var(--primary-color);
  color: #000;
}

/* Imágenes y Medios */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Enlaces */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-color);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase; /* Estilo agresivo/gaming */
  letter-spacing: 0.5px;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light); /* Ligeramente apagado para lectura */
}

/* Botones Reset */
button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

/* Inputs y Elementos de Formulario (Dark Mode) */
input, textarea, select {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: var(--radius-inputs);
  font-family: var(--font-body);
  transition: var(--transition-base);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2); /* Glow sutil */
}

/* Clase de utilidad para texto gradiente (Cyberpunk) */
.text-gradient {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ============================================
   LAYOUT Y CONTENEDORES
   Estructura general y sistemas de grilla
   ============================================ */

/* Contenedor Principal Limitado */
.container {
  max-width: 1200px; /* Ancho máximo estándar */
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Secciones Generales */
section {
  padding: var(--section-padding);
  position: relative;
  width: 100%;
}

/* Headers de Sección (Títulos centrados) */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--font-size-4xl);
  color: var(--text-color);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Subrayado Neón para Títulos */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: var(--spacing-sm) auto 0;
  box-shadow: var(--glow-primary); /* Glow effect */
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Utilidades Flexbox */
.flex { display: flex; }
.flex-column { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

/* Utilidades Grid (Base) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

/* Desktop Utility Overrides (Se activarán en media queries, 
   pero dejo la base preparada si se usa clases directas) */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Separadores visuales entre secciones (Líneas finas) */
section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   HEADER Y NAVEGACIÓN
   Sticky Header con efecto Glass/Neon
   ============================================ */

/* Header Base (Transparente sobre Hero) */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-base);
  background-color: transparent; /* Inicio transparente */
}

/* Header al hacer Scroll (Activado por JS más adelante) */
.main-header.scrolled {
  background-color: rgba(5, 5, 5, 0.85); /* Fondo Dark semi-transparente */
  backdrop-filter: var(--blur-glass);    /* Efecto vidrio borroso */
  -webkit-backdrop-filter: var(--blur-glass);
  padding: var(--spacing-xs) 0;          /* Se hace más compacto */
  border-bottom: 1px solid var(--primary-color); /* Borde Neon Cyan */
  box-shadow: var(--glow-primary);       /* Resplandor inferior */
}

/* Layout del Header */
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo (Texto) */
.logo-text {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Navegación Desktop */
.main-nav {
  display: none; /* Oculto en Mobile por defecto */
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-list a {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  position: relative;
  padding: 5px 0;
}

/* Efecto Hover en Links (Underline Neon) */
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-base);
  box-shadow: 0 0 8px var(--primary-color);
}

.nav-list a:hover {
  color: var(--text-color);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-list a:hover::after {
  width: 100%;
}

/* Botón Header (Desktop) */
.main-header .btn-primary {
  display: none; /* Se muestra en desktop */
}

/* ============================================
   MENÚ HAMBURGUESA (MOBILE)
   ============================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: var(--z-fixed);
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: var(--transition-base);
  box-shadow: 0 0 2px var(--primary-color); /* Glow sutil */
}

/* Animación Hamburger Activo (X) */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: var(--primary-color);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: var(--primary-color);
}

/* ============================================
   MENÚ MOBILE (OFF-CANVAS)
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Oculto a la derecha */
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: rgba(5, 5, 5, 0.95);
  border-left: 1px solid var(--border-color);
  backdrop-filter: blur(15px);
  padding: 100px var(--spacing-lg); /* Espacio para no tapar la X */
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 900; /* Debajo del botón hamburger */
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.mobile-nav-list a {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: var(--spacing-xs);
  display: block;
}

.mobile-nav-list a:hover {
  color: var(--primary-color);
  padding-left: 10px; /* Desplazamiento visual */
  border-bottom-color: var(--primary-color);
}

/* ============================================
   MEDIA QUERIES (HEADER)
   ============================================ */
/* Tablet & Desktop (768px+) */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .main-nav {
    display: block;
  }
  
  .main-header .btn-primary {
    display: inline-flex; /* Botón visible en desktop */
    font-size: var(--font-size-sm);
    padding: 0.5rem 1.25rem;
  }
}

/* ============================================
   HERO SECTION
   Banner principal inmersivo con estética Cyberpunk
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh; /* Ocupa toda la pantalla */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Imagen de fondo definida en CSS para mejor control o fallback */
  background-image: url('../img/hero-gaming.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto Parallax básico */
  margin-top: -80px; /* Compensa el header fixed transparente */
  padding-top: 80px;
}

/* Overlay Oscuro + Gradiente */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.7) 0%,   /* Arriba: oscuro para header */
    rgba(5, 5, 5, 0.4) 50%,  /* Medio: más claro para ver imagen */
    rgba(5, 5, 5, 1) 100%    /* Abajo: fundido a negro sólido */
  );
  z-index: 1;
}

/* Efecto de "Scanline" o Textura Tech (Opcional, sutil) */
.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.03) 3px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--spacing-lg);
}

/* Título Hero */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem); /* Responsive fluido */
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Subtítulo */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Badge de Urgencia (Fuego/Novedad) */
.hero-urgency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  padding: 0.5rem 1.5rem;
  background: rgba(255, 0, 85, 0.15); /* Fondo Accent transparente */
  border: 1px solid var(--accent-color);
  border-radius: var(--radius-round);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
  animation: pulse-glow 2s infinite;
}

/* Animación sutil para la urgencia */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(255, 0, 85, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 0, 85, 0.6); }
  100% { box-shadow: 0 0 10px rgba(255, 0, 85, 0.3); }
}

/* ============================================
   COMPONENTES: BOTONES (NEO-BRUTALISM / GLOW)
   ============================================ */

/* Estilos Base de Botón */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-buttons);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  font-size: var(--font-size-base);
}

/* Botón Primario (Cyan Glow) */
.btn-primary {
  background-color: var(--primary-color);
  color: #000; /* Texto negro para máximo contraste con Cyan */
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); /* Glow inicial */
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7); /* Glow intenso al hover */
}

.btn-primary:active {
  transform: translateY(0);
}

/* Botón Secundario (Outline / Ghost) */
.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-light);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  border-color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Modificador de Tamaño */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem; /* 18px */
}

/* Contenedor de Botones Hero */
.hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Iconos dentro de botones */
.btn-icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   SECCIÓN: SERVICIOS (EQUIPAMIENTO)
   Cards tipo "Holo-deck"
   ============================================ */
.servicios-section {
  background-color: var(--background);
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.servicio-card {
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-cards);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Efecto Hover: Elevación + Glow Borde */
.servicio-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.15); /* Glow ambiental */
}

/* Icono */
.servicio-icon {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  transition: transform 0.3s ease;
  display: inline-block;
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.servicio-title {
  font-size: var(--font-size-xl);
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.servicio-description {
  font-size: var(--font-size-base);
  color: var(--text-muted);
}

/* ============================================
   SECCIÓN: PROBLEMA - SOLUCIÓN
   Diseño asimétrico con indicadores de estado
   ============================================ */
.problema-solucion-section {
  background-color: rgba(255, 255, 255, 0.02); /* Diferenciación sutil */
}

.problema-solucion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

/* Cajas de texto (Problema vs Solución) */
.problema-box, 
.solucion-box {
  background: var(--background-alt);
  padding: var(--spacing-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; /* Borde izquierdo recto */
  border-left: 4px solid transparent;
  margin-bottom: var(--spacing-md);
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

/* Estilo Problema (Alerta/Rojo) */
.problema-box {
  border-left-color: var(--accent-color); /* Rosa/Rojo */
  background: linear-gradient(90deg, rgba(255, 0, 85, 0.05) 0%, transparent 100%);
}

.problema-icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Estilo Solución (Stable/Cyan) */
.solucion-box {
  border-left-color: var(--primary-color); /* Cyan */
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.05) 0%, transparent 100%);
}

.solucion-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.problema-text, .solucion-text {
  font-size: var(--font-size-base);
  color: var(--text-light);
}

/* Imagen Ilustrativa */
.problema-solucion-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  /* Filtro tech azulado */
  filter: sepia(20%) hue-rotate(180deg) contrast(1.1); 
  transition: filter 0.3s ease;
}

.problema-solucion-image img:hover {
  filter: none; /* Color original al hover */
}

/* ============================================
   SECCIÓN: GALERÍA
   Grid de imágenes con Overlay
   ============================================ */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile: 2 col */
  gap: var(--spacing-sm);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1/1; /* Cuadradas */
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.gallery-item:hover {
  border-color: var(--primary-color);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

/* Overlay con icono (inicialmente oculto) */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Modal Lightbox (Oculto por defecto) */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: none; /* JS lo cambia a flex */
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.gallery-modal.active {
  display: flex;
}

.modal-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  border: 1px solid var(--border-color);
}

/* Botones Modal */
.modal-close, .modal-prev, .modal-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 2001;
}

.modal-close:hover, .modal-prev:hover, .modal-next:hover {
  background: var(--primary-color);
  color: #000;
}

.modal-close { top: 20px; right: 20px; }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* ============================================
   SECCIÓN: TESTIMONIOS
   Cards de review
   ============================================ */
.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.testimonio-card {
  background-color: var(--background-alt);
  padding: var(--spacing-lg);
  border-radius: var(--radius-cards);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.testimonio-rating {
  color: #FFD700; /* Dorado para estrellas */
  margin-bottom: var(--spacing-sm);
  display: flex;
  gap: 2px;
}

.testimonio-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.testimonio-author {
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-sm);
}

.author-name {
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
}

.author-location {
  font-size: var(--font-size-sm);
  color: var(--primary-color);
}

/* ============================================
   SECCIÓN: UBICACIÓN
   Mapa y Datos
   ============================================ */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.ubicacion-direccion {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.direccion-icon {
  color: var(--primary-color);
}

.ubicacion-mapa iframe {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  filter: grayscale(80%) invert(90%); /* Mapa oscuro estilo Cyberpunk */
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background-color: #020202; /* Casi negro absoluto */
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.footer-title {
  color: var(--text-color);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.footer-links, .footer-contact {
  list-style: none;
}

.footer-links li, .footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a, .footer-contact a, .footer-contact span {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--primary-color);
  padding-left: 5px; /* Efecto slide */
}

/* Redes Sociales */
.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--text-color);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md) 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.credits a {
  color: var(--text-light);
}

.credits a:hover {
  color: var(--primary-color);
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color); /* Cyan para match tema (o #25D366 si preferís clásico) */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
  z-index: var(--z-fixed);
  transition: all 0.3s ease;
  color: #000; /* Icono negro para contraste con cyan */
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   Mobile First: Base es 320px+ (Ya definido arriba)
   ============================================ */

/* ========================================
   TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
  
  /* Ajuste de Contenedor */
  .container {
    padding: 0 2rem;
  }

  /* Tipografía */
  :root {
    --font-size-5xl: 4rem; /* H1 más grande */
  }

  /* Grillas Generales */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr); /* En tablet, 3 cols pueden ser mucho, usamos 2 */
  }

  /* Hero Section */
  .hero-title {
    margin-bottom: var(--spacing-lg);
  }

  /* Sección: Problema - Solución (Lado a Lado) */
  .problema-solucion-grid {
    grid-template-columns: 1fr 1fr; /* Texto izq, Imagen der */
    gap: var(--spacing-2xl);
    align-items: center;
  }

  /* Sección: Servicios */
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Feature: Card destacada ocupa 2 espacios si es impar */
  .servicio-card:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  /* Sección: Ubicación */
  .ubicacion-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .ubicacion-mapa {
    height: 100%;
  }
  
  .ubicacion-mapa iframe {
    height: 100%;
    min-height: 400px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {

  /* Ajuste de Contenedor */
  .container {
    padding: 0 40px;
    max-width: 1280px;
  }

  /* Espaciado más generoso */
  section {
    padding: 100px 0;
  }

  /* Grillas Desktop */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero */
  .hero-content {
    max-width: 1000px;
  }

  /* Servicios: 3 Columnas */
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Reset del span de tablet */
  .servicio-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  /* Galería: 4 o 5 columnas */
  .galeria-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Efecto mosaico: algunas imágenes más grandes */
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8) {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* Testimonios: 3 Columnas */
  .testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer: 4 Columnas */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Ajustes Visuales Desktop */
  .section-title {
    font-size: 3rem;
  }

  /* Scrollbar más estilizado en desktop */
  ::-webkit-scrollbar {
    width: 10px;
  }
}

/* ========================================
   DESKTOP LARGE / 4K (1440px+)
   ======================================== */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 6rem; /* Impacto masivo */
  }
}

/* ========================================
   PRINT STYLES (Para facturas o impresión)
   ======================================== */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  
  .hero-section, .hero-overlay, .whatsapp-float, .mobile-menu, iframe {
    display: none !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
}