/* ==========================================================================
   GRUPO COMERCIALIZADOR MÉXICO (GCM) / CORPORATIVO CG
   Hoja de Estilos Principal & Sistema de Diseño (Design System)
   ==========================================================================
   GUÍA DE NAVEGACIÓN Y GUÍA DE AJUSTES/PERSONALIZACIÓN RÁPIDA:
   --------------------------------------------------------------------------
   01. VARIABLES Y TEMA DEL SISTEMA (:root & body.light-theme)
       - Cambia aquí paletas globales, tonos cian, bordes glassmorphism y fuentes.
   02. REGLAS BASE Y RESET CSS (*, html, body)
       - Controla el comportamiento suave del scroll y el color base global.
   03. TIPOGRAFÍA Y CLASES DE TEXTO (h1-h6, .gradient-text, .section-title)
       - Ajusta tamaños de títulos principales y degradados de texto.
   04. DISPOSICIÓN Y UTILIDADES DE LAYOUT (.container, .grid, .glass-card)
       - Ajusta el ancho máximo de la web (default: 1380px) y el relleno de tarjetas.
   05. COMPONENTES GLOBALES:
       - 05.1 BARRA DE NAVEGACIÓN (.navbar, .nav-links, .theme-toggle-btn)
       - 05.2 BOTONES Y ACCIONES (.btn, .btn-primary, .btn-outline)
       - 05.3 BOTÓN FLOTANTE DE WHATSAPP (.whatsapp-float-btn)
         * SUGERENCIA: Ajusta 'bottom' / 'right' para cambiar la posición en pantalla.
       - 05.4 PIE DE PÁGINA (.footer, .footer-grid, .footer-bottom)
   06. SECCIONES DE LA PÁGINA PRINCIPAL (INDEX.HTML):
       - 06.1 SECCIÓN HERO Y CARRUSEL DE VIDEO (.hero, .hero-video-container)
       - 06.2 BARRA DE ESTADÍSTICAS (.stats-section, .stat-number)
       - 06.3 CARRUSEL PARALELO DE MARCAS Y CLIENTES (.carousel-wrapper, .carousel-item)
         * SUGERENCIA: Modifica '180s' / '200s' en .carousel-track para acelerar o frenar.
       - 06.4 METODOLOGÍA / PROCESO 5 PASOS (.steps-grid, .step-card)
   07. PÁGINA QUIÉNES SOMOS (QUIENES-SOMOS.HTML):
       - 07.1 TARJETAS DE MISIÓN Y VISIÓN (.mv-card, .mv-icon-box)
       - 07.2 REJILLA DE VALORES INSTITUCIONALES (.values-5col-grid)
       - 07.3 TARJETAS DE VALORES SECUNDARIOS (.value-cards-grid)
   08. PÁGINA CATÁLOGO DIGITAL (CATALOGO.HTML):
       - 08.1 BARRA LATERAL DE FILTROS (.filter-sidebar, .filter-group)
         * NOTA: Contiene '.catalog-layout { display: none !important; }' para ocultar temporalmente la grilla.
       - 08.2 BARRA DE HERRAMIENTAS Y VISTAS (.catalog-toolbar, .view-switcher)
       - 08.3 TARJETAS DE PRODUCTOS (.products-grid, .product-card, .product-img-box)
       - 08.4 MODAL DE GALERÍA Y ZOOM COMPLETO (.product-modal, .modal-main-img-box)
   09. PÁGINA DE SERVICIOS Y EVIDENCIAS (SERVICIOS.HTML):
       - 09.1 TARJETAS DE EVIDENCIAS / EVENTOS (.event-card, .event-badge)
         * SUGERENCIA: En .events-gallery-grid cambia 'repeat(3, 1fr)' a 'repeat(4, 1fr)' para 4 tarjetas por fila.
       - 09.2 MODAL DIVIDIDO SPLIT (.event-split-modal, .event-modal-desc-box)
   10. PÁGINA DE CONTACTO (CONTACTO.HTML):
       - 10.1 ESTILOS DE FORMULARIO E INPUTS (.form-group, .form-control)
       - 10.2 AVISO DE LÍMITES DE CARGA Y ESTADOS (.submit-notice)
   11. ADAPTACIONES RESPONSIVAS & MOBILE MEDIA QUERIES (@media)
       - Controla el comportamiento en celulares, tabletas y laptops.
   ========================================================================== */

/* ==========================================================================
   01. VARIABLES Y TEMA DEL SISTEMA (:root & body.light-theme)
   ========================================================================== */

/* Variables Predeterminadas: Modo Oscuro Tecnológico Corporativo */
:root {
  /* Paleta de Colores Primarios */
  --primary-dark: #0a1128;
  --primary-navy: #001f54;
  --primary-blue: #034078;
  --accent-cyan: #00d4ff;
  --accent-electric: #0056b3;
  --accent-light: #e0f7fa;

  /* Fondos */
  --bg-dark: #070b19;
  --bg-card: rgba(13, 27, 42, 0.7);
  --bg-card-hover: rgba(20, 40, 65, 0.85);
  --bg-light: #f8fafc;
  --bg-white: #ffffff;

  /* Textos */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #f8fafc;
  --text-heading: #ffffff;
  --text-cyan: #38bdf8;

  /* Bordes */
  --border-light: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-cyan: rgba(0, 212, 255, 0.3);

  /* Sombras y Efecto Cristal (Glassmorphism) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 25px rgba(0, 212, 255, 0.35);

  --glass-bg: rgba(7, 11, 25, 0.82);
  --glass-blur: blur(16px);

  --hero-bg-gradient: radial-gradient(
    circle at 10% 20%,
    rgba(3, 64, 120, 0.35) 0%,
    rgba(7, 11, 25, 1) 90%
  );
  --footer-bg: rgba(4, 7, 16, 0.95);
  --gradient-text-style: linear-gradient(
    135deg,
    #ffffff 0%,
    #00d4ff 60%,
    #38bdf8 100%
  );

  /* Fuentes y Transiciones */
  --font-main:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Outfit", sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Variables de Tema Claro Optimizado con Alto Contraste (Light Theme) */
html.light-theme,
body.light-theme {
  --bg-dark: #fafbfd;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-light: #f8fafc;
  --bg-section-alt: #ebf5ff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-white: #0f172a;
  --text-heading: #0f172a;
  --text-cyan: #0284c7;

  --accent-cyan: #0284c7;
  --accent-electric: #0284c7;

  /* Bordes de Contenedores y Separadores en Tema Claro */
  --border-glass: #cbd5e1;
  --border-cyan: #0284c7;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-glow: 0 6px 24px rgba(2, 132, 199, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.94);

  --hero-bg-gradient: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  --footer-bg: #ffffff;
  --gradient-text-style: linear-gradient(
    135deg,
    #0f172a 0%,
    #0369a1 70%,
    #0284c7 100%
  );

  /* Carrusel en Tema Claro */
  --carousel-item-bg: #0f2537;
  --carousel-item-text: #ffffff;
  --carousel-img-border: rgba(255, 255, 255, 0.7);
  --carousel-img-bg: rgba(255, 255, 255, 0.15);
}

/* Adaptación de Tarjetas Glassmorphic en Tema Claro */
html.light-theme .glass-card,
body.light-theme .glass-card {
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

body.light-theme .glass-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18);
}

/* ==========================================================================
   02. REGLAS BASE Y RESET CSS (*, html, body)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   03. TIPOGRAFÍA Y CLASES DE TEXTO (h1-h6, .gradient-text, .section-title)
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-text-style);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title {
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 0.65rem;
  letter-spacing: -0.5px;
  color: var(--text-heading);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

/* ==========================================================================
   04. DISPOSICIÓN Y UTILIDADES DE LAYOUT (.container, .grid, .glass-card)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  max-width: 96% !important;
  padding: 0 1rem;
}

.section-padding {
  padding: 3.5rem 0;
}

/* Tarjeta Estándar Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   05. COMPONENTES GLOBALES
   ========================================================================== */

/* --------------------------------------------------------------------------
   05.1 BARRA DE NAVEGACIÓN (.navbar, .nav-links, .theme-toggle-btn)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glass);
}

.navbar.scrolled {
  background: var(--glass-bg);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.25));
  transition: var(--transition-fast);
}

.logo-img:hover {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--accent-electric)
  );
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 86, 179, 0.4);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

/* Botón Conmutador de Tema Claro / Oscuro */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  margin-left: 0.5rem;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  background: var(--accent-cyan);
  color: #070b19;
  box-shadow: var(--shadow-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   05.2 BOTONES Y ACCIONES (.btn, .btn-primary, .btn-outline)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  line-height: 1;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
  color: #fff;
  box-shadow: 0 6px 20px rgba(67, 100, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(67, 100, 247, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-cyan);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-white);
  border: 1px solid var(--border-glass);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  width: 100%;
}

/* --------------------------------------------------------------------------
   05.3 BOTÓN FLOTANTE DE WHATSAPP (.whatsapp-float-btn)
   -------------------------------------------------------------------------- */
/* 
   SUGERENCIA DE PERSONALIZACIÓN DEL BOTÓN FLOTANTE DE WHATSAPP:
   - 'bottom: 2rem' y 'right: 2rem': Cambian la distancia con respecto a la esquina inferior derecha.
   - Si deseas moverlo a la izquierda, cambia 'right: 2rem' por 'left: 2rem'.
   - 'width' / 'height' (58px): Controlan el tamaño del círculo flotante.
*/
.whatsapp-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12) translateY(-4px);
  background: #20ba5a;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}

.whatsapp-float-btn:active {
  transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   05.4 PIE DE PÁGINA (.footer, .footer-grid, .footer-bottom)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 0 2rem 0;
  margin-top: 3.5rem;
  transition: var(--transition-normal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-heading);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Redes Sociales en Footer */
.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   06. SECCIONES DE LA PÁGINA PRINCIPAL (INDEX.HTML)
   ========================================================================== */

/* --------------------------------------------------------------------------
   06.1 SECCIÓN HERO Y CARRUSEL DE VIDEO (.hero, .hero-video-container)
   -------------------------------------------------------------------------- */
.hero {
  min-height: 45vh;
  padding-top: 95px;
  padding-bottom: 1.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg-gradient);
}

.hero-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(0, 119, 255, 0.1) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  top: -80px;
  right: -80px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.7rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-video-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 212, 255, 0.2);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 310px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
  background: #000;
}

.hero-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 11, 25, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(7, 11, 25, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-video-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-video-btn:hover:not(:disabled) {
  background: var(--accent-cyan);
  color: #070b19;
  box-shadow: var(--shadow-glow);
}

.hero-video-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.hero-video-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-vid-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-vid-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   06.2 BARRA DE ESTADÍSTICAS (.stats-section, .stat-number)
   -------------------------------------------------------------------------- */
.stats-section {
  background: var(--bg-section-alt, rgba(13, 27, 42, 0.6));
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
}

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

/* --------------------------------------------------------------------------
   06.3 CARRUSEL PARALELO DE MARCAS Y CLIENTES (.carousel-wrapper, .carousel-item)
   -------------------------------------------------------------------------- */
.carousel-multi-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.carousel-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
  cursor: grab;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-wrapper:active {
  cursor: grabbing;
}

/* 
   ==========================================================================
   GUÍA DE AJUSTE INDEPENDIENTE DE VELOCIDADES EN CARRUSELES:
   ==========================================================================
   Tanto Marcas como Clientes tienen 3 filas (Fila 1 normal, Fila 2 reverse, Fila 3 normal).
   
   A) CARRUSEL DE MARCAS:
      - .brands-section .carousel-track         -> Filas 1 y 3 (Izquierda)
      - .brands-section .carousel-track.reverse -> Fila 2 (Derecha)

   B) CARRUSEL DE CLIENTES:
      - .clients-section .carousel-track        -> Filas 1 y 3 (Izquierda)
      - .clients-section .carousel-track.reverse-> Fila 2 (Derecha)

   * MÁS RÁPIDO: Reduce el tiempo (ej: 60s, 90s).
   * MÁS LENTO: Aumenta el tiempo (ej: 240s, 300s).
   ==========================================================================
*/

/* Base de Pista Continuo de Carrusel */
.carousel-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  user-select: none;
  will-change: transform;
}

/* 1. VELOCIDADES CARRUSEL DE MARCAS (Sección Marcas) */
.brands-section .carousel-track {
  animation: scrollCarouselLeft 180s linear infinite; /* Marcas Filas 1 y 3 (Izquierda) */
}
.brands-section .carousel-track.reverse {
  animation: scrollCarouselRight 200s linear infinite; /* Marcas Fila 2 (Derecha) */
}

/* 2. VELOCIDADES CARRUSEL DE CLIENTES (Sección Clientes) */
.clients-section .carousel-track {
  animation: scrollCarouselLeft 180s linear infinite; /* Clientes Filas 1 y 3 (Izquierda) */
}
.clients-section .carousel-track.reverse {
  animation: scrollCarouselRight 200s linear infinite; /* Clientes Fila 2 (Derecha) */
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes scrollCarouselLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes scrollCarouselRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.carousel-item {
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  white-space: nowrap;
  transition: var(--transition-normal);
  cursor: default;
  height: 60px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

body.light-theme .carousel-item {
  background: var(--carousel-item-bg, #0f2537);
  color: var(--carousel-item-text, #ffffff) !important;
  border: 1px solid rgba(15, 37, 55, 0.2);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}

body.light-theme .carousel-item span {
  color: #ffffff !important;
}

.carousel-item-img-container {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 5px;
}

body.light-theme .carousel-item-img-container {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: var(--transition-fast);
}

.carousel-item:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.carousel-item:hover .carousel-item-img-container {
  background: rgba(0, 212, 255, 0.25);
}

/* --------------------------------------------------------------------------
   06.4 METODOLOGÍA / PROCESO 5 PASOS (.steps-grid, .step-card)
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--accent-electric)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem auto;
  box-shadow: var(--shadow-glow);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   07. PÁGINA QUIÉNES SOMOS (QUIENES-SOMOS.HTML)
   ========================================================================== */

/* --------------------------------------------------------------------------
   07.1 TARJETAS DE MISIÓN Y VISIÓN (.mv-card, .mv-icon-box)
   -------------------------------------------------------------------------- */
.mv-card {
  border-top: 3px solid var(--accent-cyan);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
}

.mv-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mv-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.mv-title {
  font-size: 1.6rem;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}

.mv-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   07.2 REJILLA DE VALORES INSTITUCIONALES (.values-5col-grid)
   -------------------------------------------------------------------------- */
.values-5col-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.value-col-card {
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.value-col-card .val-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  transition: var(--transition-fast);
}

.value-col-card:hover .val-icon-box {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.val-title {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.val-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   07.3 TARJETAS DE VALORES SECUNDARIOS (.value-cards-grid)
   -------------------------------------------------------------------------- */
.value-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.value-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.value-card:hover .value-card-icon {
  background: var(--accent-cyan);
  color: #070b19;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.value-card-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.value-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Imagen de Excelencia Operativa */
.about-card-img {
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.4);
  padding: 6px;
  border: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

body.light-theme .about-card-img {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   08. PÁGINA CATÁLOGO DIGITAL (CATALOGO.HTML)
   ========================================================================== */

/* --------------------------------------------------------------------------
   08.1 BARRA LATERAL DE FILTROS (.filter-sidebar, .filter-group)
   -------------------------------------------------------------------------- */
/* 
   ==========================================================================
   INSTRUCCIÓN PARA MOSTRAR / OCULTAR EL CATÁLOGO COMPLETO DE PRODUCTOS:
   ==========================================================================
   - ACTUALMENTE (OCULTO):
     .catalog-layout { display: none !important; }
   
   - PARA MOSTRAR LOS PRODUCTOS, BUSCADOR Y FILTROS EN EL FUTURO:
     Reemplaza las líneas de abajo por estas:
     .catalog-layout {
       display: grid;
       grid-template-columns: 280px 1fr;
       gap: 2rem;
       align-items: start;
     }
   ==========================================================================
*/
.catalog-layout {
  display: none !important;
}

.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: sticky;
  top: 100px;
}

.filter-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
}

.filter-group {
  margin-bottom: 0.85rem;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.filter-group-header:hover {
  background: rgba(0, 212, 255, 0.06);
}

.filter-group-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.filter-count-badge {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 700;
}

.toggle-icon {
  color: var(--accent-cyan);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.filter-group.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.filter-group.collapsed .filter-options {
  display: none;
}

.filter-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.35),
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin: 0.75rem 0 1rem 0;
}

.btn-clear-filters {
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: #ff6b6b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.btn-clear-filters:hover {
  background: rgba(255, 77, 77, 0.3);
  border-color: #ff6b6b;
  color: #fff;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.filter-options::-webkit-scrollbar {
  width: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
}

.btn-check {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.filter-name {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-num {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.filter-btn:hover .filter-num {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.4);
  color: #fff;
}

.filter-btn.active .filter-num {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #070b19;
  font-weight: 800;
}

.filter-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
  border-color: rgba(0, 212, 255, 0.3);
}

.filter-btn.active {
  background: linear-gradient(
    135deg,
    rgba(0, 86, 179, 0.4),
    rgba(0, 212, 255, 0.25)
  );
  border-color: var(--accent-cyan);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.filter-btn.active .btn-check {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #070b19;
  font-weight: 800;
}

.filter-btn.highlighted {
  border-color: rgba(67, 100, 247, 0.5);
  color: #c7d2fe;
}

.filter-btn.dimmed {
  opacity: 0.35;
  filter: grayscale(80%);
}

.selected-career-tag {
  background: var(--accent-cyan) !important;
  color: #070b19 !important;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* --------------------------------------------------------------------------
   08.2 BARRA DE HERRAMIENTAS Y VISTAS (.catalog-toolbar, .view-switcher)
   -------------------------------------------------------------------------- */
.search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.view-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.view-btn:hover,
.view-btn.active {
  background: var(--accent-cyan);
  color: #070b19;
}

.per-page-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toolbar-select {
  background: rgba(7, 11, 25, 0.8);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.toolbar-select:focus {
  border-color: var(--accent-cyan);
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.page-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #070b19;
  font-weight: 800;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* En Tema Claro (body.light-theme / html.light-theme):
   - Botones inactivos y de navegación: Fondo negro sólido (#000000) o blanco contrastado con texto negro duro (#000000).
   - Página activa: Fondo azul sólido (#1e40af / #4364f7) con texto en color blanco/negro resaltado. */
body.light-theme .page-btn,
html.light-theme .page-btn {
  background: #000000 !important;
  border: 1px solid #000000 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  opacity: 1;
}

body.light-theme .page-btn:hover:not(:disabled),
html.light-theme .page-btn:hover:not(:disabled) {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #00d4ff !important;
}

body.light-theme .page-btn.active,
html.light-theme .page-btn.active {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 10px rgba(30, 64, 175, 0.4) !important;
}

body.light-theme .page-btn:disabled,
html.light-theme .page-btn:disabled {
  background: #334155 !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.catalog-toolbar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

/* --------------------------------------------------------------------------
   08.3 TARJETAS DE PRODUCTOS (.products-grid, .product-card, .product-img-box)
   -------------------------------------------------------------------------- */
.products-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.products-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.products-grid.list-view .product-card {
  flex-direction: row;
  height: auto;
}

.products-grid.list-view .product-img-box {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

body.light-theme .product-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.35),
    0 8px 25px rgba(0, 0, 0, 0.4);
}

body.light-theme .product-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.22);
}

.product-img-box {
  width: 100%;
  height: 210px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(
    circle at center,
    rgba(15, 23, 42, 0.8),
    rgba(7, 11, 25, 0.98)
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

body.light-theme .product-img-box {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.06);
}

.img-zoom-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 11, 25, 0.85);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 3;
}

.product-img-box:hover .img-zoom-hint {
  opacity: 1;
  transform: scale(1.1);
}

.img-gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  background: rgba(7, 11, 25, 0.85);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  z-index: 3;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.product-img-box:hover .img-gallery-dots {
  opacity: 1;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  transform: scale(1.3);
}

.product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 11, 25, 0.9);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.product-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.product-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-model-name {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  color: #c084fc;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.product-title {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: #fff;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.careers-wrapper {
  margin-bottom: 1rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.careers-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.careers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.career-badge {
  background: rgba(67, 100, 247, 0.15);
  border: 1px solid rgba(67, 100, 247, 0.35);
  color: #a5b4fc;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  line-height: 1.2;
}

body.light-theme .career-badge {
  background: rgba(67, 100, 247, 0.12);
  border: 1px solid rgba(67, 100, 247, 0.3);
  color: #1e40af;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   08.4 MODAL DE GALERÍA Y ZOOM COMPLETO (.product-modal, .modal-main-img-box)
   -------------------------------------------------------------------------- */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.94);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10001;
}

.modal-close-btn:hover {
  background: var(--accent-cyan);
  color: #070b19;
  box-shadow: var(--shadow-glow);
}

.modal-content-wrapper {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-main-img-box {
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

body.light-theme .modal-main-img-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.modal-main-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 11, 25, 0.85);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10000;
}

.modal-nav-btn:hover:not(:disabled) {
  background: var(--accent-cyan);
  color: #070b19;
  box-shadow: var(--shadow-glow);
}

.event-modal-img-box .modal-nav-btn.prev {
  left: 10px !important;
}

.event-modal-img-box .modal-nav-btn.next {
  right: 10px !important;
}

.modal-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

.modal-title-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.modal-title-header h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.modal-title-header span {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-thumbs-menu {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.5rem;
}

.modal-thumb-item {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-thumb-item.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  transform: scale(1.08);
}

/* ==========================================================================
   09. PÁGINA DE SERVICIOS Y EVIDENCIAS (SERVICIOS.HTML)
   ========================================================================== */

/* --------------------------------------------------------------------------
   09.1 TARJETAS DE EVIDENCIAS / EVENTOS (.event-card, .event-badge)
   -------------------------------------------------------------------------- */
/* 
   SUGERENCIA DE PERSONALIZACIÓN DE COLUMNAS DE CASOS DE ÉXITO:
   - 'repeat(3, 1fr)' distribuye las tarjetas en 3 columnas por fila en laptops/desktops.
   - Si deseas mostrar 4 TARJETAS POR FILA, cambia a: grid-template-columns: repeat(4, 1fr);
   - Si deseas mostrar 2 TARJETAS MÁS ANCHAS POR FILA, cambia a: grid-template-columns: repeat(2, 1fr);
*/
.events-grid,
.events-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-normal);
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glow);
}

.event-img-box {
  width: 100%;
  height: 200px;
  background: rgba(15, 23, 42, 0.6);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.light-theme .event-img-box {
  background: #ffffff;
}

.event-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: var(--transition-smooth);
}

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

.event-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 11, 25, 0.9);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Categoría en Tema Claro: Fondo blanco sólido con borde azul */
body.light-theme .event-badge {
  background: #ffffff;
  border: 1px solid #1e40af;
  color: #1e40af;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.event-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.event-date {
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.event-client {
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

body.light-theme .event-client {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.event-title {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  font-weight: 700;
}

.event-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-read-more-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  transition: var(--transition-fast);
  margin-top: auto;
}

.event-read-more-btn:hover {
  color: var(--text-heading);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   09.2 MODAL DIVIDIDO SPLIT (.event-split-modal, .event-modal-desc-box)
   -------------------------------------------------------------------------- */
.event-split-modal .event-modal-body {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 1.75rem;
  max-width: 1100px;
  width: 92vw;
  max-height: 90vh;
  height: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  box-sizing: border-box;
}

.event-modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0; /* Evita que los hijos sobrepasen el ancho de la columna del Grid */
  box-sizing: border-box;
}

.event-modal-img-box {
  width: 100%;
  max-width: 100%;
  height: 380px;
  max-height: 380px;
  min-height: 380px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

/* Reubicación visible de flechas de navegación dentro/borde de la caja */
.event-modal-img-box .modal-nav-btn.prev {
  left: 8px;
}

.event-modal-img-box .modal-nav-btn.next {
  right: 8px;
}

body.light-theme .event-modal-img-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

#event-modal-main-img,
.event-modal-main-img-box img,
.event-modal-img-box img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  flex-shrink: 1 !important;
  display: block;
}

.event-modal-right {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0; /* Evita desbordes por palabras largas o imágenes */
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

.event-modal-right::-webkit-scrollbar {
  width: 6px;
}

.event-modal-right::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}

.event-modal-heading {
  font-size: 1.35rem;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
}

.event-modal-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.event-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border-glass);
  padding-bottom: 0.4rem;
}

.event-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.info-val {
  color: var(--text-heading);
  text-align: right;
  font-weight: 600;
}

.event-modal-desc-box {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 3px solid var(--accent-cyan);
  margin-bottom: 0.5rem;
}

body.light-theme .event-modal-info-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.light-theme .event-modal-desc-box {
  background: #f1f5f9;
  border-left: 3px solid #4364f7;
}

body.light-theme .event-full-desc-text {
  color: #1e293b;
}

.event-full-desc-text {
  font-size: 0.92rem;
  color: var(--text-white);
  line-height: 1.6;
}

/* ==========================================================================
   10. PÁGINA DE CONTACTO (CONTACTO.HTML)
   ========================================================================== */

/* --------------------------------------------------------------------------
   10.1 ESTILOS DE FORMULARIO E INPUTS (.form-group, .form-control)
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

/* En Tema Claro, el texto introducido en inputs, textareas y selects debe ser Negro (#000000) */
body.light-theme .form-control,
html.light-theme .form-control {
  color: #000000 !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

body.light-theme .form-control option,
html.light-theme .form-control option {
  color: #000000 !important;
  background: #ffffff !important;
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   10.2 AVISO DE LÍMITES DE CARGA Y ESTADOS (.submit-notice)
   -------------------------------------------------------------------------- */
#submit-notice {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-align: center;
  background: rgba(0, 212, 255, 0.08);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ==========================================================================
   11. ADAPTACIONES RESPONSIVAS & MOBILE MEDIA QUERIES (@media)
   ========================================================================== */
@media (max-width: 1100px) {
  .products-grid.grid-view {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: relative;
    top: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-grid,
  .events-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .products-grid.grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-split-modal .event-modal-body {
    grid-template-columns: 1fr;
    max-height: 90vh;
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .section-padding {
    padding: 2.5rem 0;
  }
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 2.5rem;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(7, 11, 25, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .carousel-item {
    padding: 0.6rem 1.2rem;
    height: 52px;
    font-size: 0.88rem;
  }
  .carousel-item-img-container {
    width: 32px;
    height: 32px;
  }
  .products-grid.list-view .product-card {
    flex-direction: column;
  }
  .products-grid.list-view .product-img-box {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .values-5col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .events-grid,
  .events-gallery-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-float-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 600px) {
  .value-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .products-grid.grid-view {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .values-5col-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .value-col-card {
    text-align: left;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .value-col-card .val-icon-box {
    margin-bottom: 0.75rem;
  }
}
