/* VARIABLES DE COLOR (Basadas en tu logotipo) */
:root {
  --azul-oscuro: #1A3673;
  --azul-medio: #2B5296;
  --rojo-corporativo: #7A1212;
  --blanco-cristal: rgba(255, 255, 255, 0.75);
  --borde-cristal: rgba(255, 255, 255, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--azul-oscuro), #0f1c3f, var(--rojo-corporativo));
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Efecto Glassmorphism Base */
.glass-effect {
  background: var(--blanco-cristal);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--borde-cristal);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* --- HEADER & MENÚ FLOTANTE --- */
.header-flotante {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  z-index: 1000;
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-menu a {
  color: var(--azul-oscuro);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--rojo-corporativo);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--azul-oscuro);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- CUERPO (BANNER & CONTENIDO) --- */
main {
  margin-top: 110px; /* Margen para que el header flotante no tape el inicio */
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* ==========================================================================
   CSS MEJORADO: BANNER CINEMÁTICO DE ALTO RENDIMIENTO
   ========================================================================== */

.banner-container {
  width: 100%;
  max-width: 1200px;
  height: 480px;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
}

/* Las diapositivas ahora se apilan una encima de otra con posición absoluta */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  z-index: 1;
}

/* Diapositiva visible */
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Efecto Ken Burns (Efecto de zoom suave y constante en la imagen activa) */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 6s ease-out; /* El zoom dura el tiempo en que la imagen está expuesta */
}

.slide.active img {
  transform: scale(1.08); /* Crece sutilmente un 8% sin pixelarse */
}

/* Máscara oscura con degradado estético para legibilidad extrema */
.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Cuadro de texto flotante con animación de aparición suave */
.slide-caption {
  position: absolute;
  bottom: 45px;
  left: 45px;
  max-width: 550px;
  padding: 30px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  
  /* Animación de entrada para el texto */
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, opacity 0.8s ease 0.3s;
}

.slide.active .slide-caption {
  transform: translateY(0);
  opacity: 1;
}

.slide-caption h2 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.slide-caption p {
  color: #f3f4f6;
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Ajustes adaptables optimizados para móviles */
@media (max-width: 768px) {
  .banner-container { 
    height: 300px;
    border-radius: 12px;
  }
  
  .slide-caption {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 15px;
    max-width: none;
    background: rgba(15, 28, 63, 0.75); /* Cristal tintado con el azul oscuro corporativo */
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .slide-caption h2 { font-size: 20px; margin-bottom: 6px; }
  .slide-caption p { font-size: 13px; }
}


/* Secciones Generales */
.info-section {
  width: 100%;
  max-width: 1200px;
  padding: 35px 25px;
  color: #222222;
}

.info-section h1, .info-section h2 {
  color: var(--azul-oscuro);
  margin-bottom: 20px;
  font-size: 28px;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.card {
  padding: 25px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  border-left: 6px solid var(--rojo-corporativo);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card h3 { color: var(--azul-oscuro); margin-bottom: 10px; }
.card p { color: #444444; font-size: 15px; line-height: 1.5; }

/* --- SECCIÓN CONTACTO Y MAPA --- */
.contacto-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 15px;
  color: #333;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--azul-medio);
}

.btn-enviar {
  background: var(--azul-oscuro);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-enviar:hover {
  background: var(--rojo-corporativo);
}

.mapa-box {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.mapa-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FOOTER Y REDES --- */
footer {
  width: 100%;
  margin-top: 50px;
  padding: 40px 20px;
  color: var(--azul-oscuro);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { margin-bottom: 15px; color: var(--rojo-corporativo); }
.footer-col p { font-size: 14px; line-height: 1.6; }

/* ==========================================================================
   REDES SOCIALES Y BOTÓN DE RETORNO (ESTILO EXACTO MOCKUP)
   ========================================================================== */

/* Alineación de la columna del footer */
.footer-redes-col {
  display: flex;
  flex-direction: column;
}

/* Contenedor horizontal de los círculos */
.redes-sociales-container {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Círculos Rojos Corporativos para los Iconos */
.social-icon-circle {
  width: 44px;
  height: 44px;
  background-color: var(--rojo-corporativo); /* Color #7A1212 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Iconos Internos Blancos */
.social-icon-circle svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  transition: fill 0.25s ease;
}

/* Efecto hover interactivo moderno */
.social-icon-circle:hover {
  transform: translateY(-3px);
  background-color: var(--azul-oscuro); /* Cambia al azul corporativo al pasar el mouse */
}

/* ==========================================================================
   INTEGRACIÓN DEL CHAT INTELIGENTE (CSS NATIVO ULTRA-RENDIMIENTO)
   ========================================================================== */

/* Burbuja Flotante de Chat */
#burbuja-chat {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background-color: #1e3d73;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#burbuja-chat:hover { transform: scale(1.08); }
#burbuja-chat:active { transform: scale(0.95); }

.icono-emoji-chat { font-size: 24px; }

/* RE-POSICIONAMIENTO DEL BOTÓN VOLVER ARRIBA (Para que no se encimen) */
.btn-back-to-top {
  position: fixed;
  bottom: 95px; /* Subido para quedar exactamente sobre la burbuja del chat */
  right: 30px;
  width: 46px;
  height: 46px;
  background-color: var(--rojo-corporativo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

/* Ventana del Asistente Virtual (Glassmorphism Oscuro) */
#ventana-chat {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 360px;
  height: 500px;
  background: rgba(15, 23, 42, 0.88); /* Slate 900 con 88% opacidad */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#ventana-chat.hidden {
  display: none !important;
}

/* Encabezado */
.chat-header-top {
  background: rgba(37, 99, 235, 0.9); /* Blue 600 */
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-status-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-status-wrapper h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Punto verde parpadeante */
.chat-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399; /* Emerald 400 */
  border-radius: 50%;
  animation: pulseChat 2s infinite;
}

@keyframes pulseChat {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.btn-cerrar-chat {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: bold;
}
.btn-cerrar-chat:hover { color: #ffffff; }

/* Historial de Conversación */
#chat-conversacion {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.4); /* Slate 950 al 40% */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Estructura general de filas de chat */
.chat-msg-row {
  display: flex;
  width: 100%;
}
.msg-izq { justify-content: flex-start; }
.msg-der { justify-content: flex-end; }

.chat-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 85%;
}

/* Estilo respuestas IA */
.ia-welcome-bubble, .chat-ia-response {
  background: rgba(30, 61, 115, 0.5);
  color: #eff6ff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-ia-response {
  background: rgba(30, 58, 138, 0.8) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* Estilo preguntas Usuario */
.chat-user-bubble {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top-right-radius: 0;
}

.chat-loading-text {
  color: #93c5fd;
  font-style: italic;
  font-size: 11px;
  animation: pulse 1.5s infinite;
}

/* Barra inferior de entrada */
.chat-input-bar {
  padding: 16px;
  border-t: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.6);
}

.chat-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#chat-input-mensaje {
  width: 100%;
  padding: 12px 45px 12px 16px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s;
}
#chat-input-mensaje:focus {
  border-color: #3b82f6;
}

.btn-enviar-chat {
  position: absolute;
  right: 8px;
  background: #2563eb;
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-enviar-chat:hover { background: #1d4ed8; }
.btn-enviar-chat:active { transform: scale(0.95); }

/* Ajustes Responsivos Móviles */
@media (max-width: 480px) {
  #ventana-chat {
    width: calc(100% - 30px);
    right: 15px;
    left: 15px;
    bottom: 85px;
    height: 440px;
  }
  #burbuja-chat { right: 15px; bottom: 15px; }
  .btn-back-to-top { right: 20px; bottom: 80px; }
}


/* --- CORRECCIÓN EXCLUSIVA MÓVIL --- */
@media (max-width: 768px) {
  .header-flotante {
    width: 95%;
    padding: 10px 15px;
    top: 10px;
  }
  
  .logo img { height: 35px; }
  
  .menu-toggle { display: flex; }
  
  /* Menú desplegable móvil corregido */
  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 25px;
    gap: 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--borde-cristal);
    
    /* Animación oculta por defecto */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  
  /* Clase activa del menú móvil */
  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  main {
    margin-top: 90px; /* Ajuste para evitar empujes de layout */
    padding: 10px;
    gap: 20px;
  }
  
  .banner-container { height: 200px; }
  
  .info-section {
    padding: 25px 15px;
  }
  
  .grid-servicios {
    grid-template-columns: 1fr; /* Una tarjeta por fila exacta en vertical */
  }
}

/* ==========================================================================
   CSS PARA EL SLIDER INFINITO DE CLIENTES
   ========================================================================== */

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

/* Ventana contenedora que oculta el desborde lateral */
.ticker-container {
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
  margin-top: 25px;
  position: relative;
}

/* Sombreado difuminado a los costados para dar un efecto de desvanecimiento elegante */
.ticker-container::before,
.ticker-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.ticker-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent);
}
.ticker-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.15), transparent);
}

/* La tira interna que se desplaza lateralmente */
.ticker-track {
  display: flex;
  width: max-content; /* Se adapta dinámicamente al número de elementos */
  animation: scrollClientes 25s linear infinite; /* Movimiento constante sin pausas */
}

/* Detiene el carrusel cuando un cliente pone el puntero encima */
.ticker-track:hover {
  animation-play-state: paused;
}

/* Estilo individual para cada contenedor de logotipo */
.ticker-item {
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticker-item img {
  height: 45px;
  width: auto;
  object-fit: contain;
  /* Integración sutil: Grises y semitransparente para que no compitan visualmente */
  filter: grayscale(100%) opacity(60%);
  transition: filter 0.4s ease, transform 0.3s ease;
}

/* Al pasar el mouse, el logo se ilumina en sus colores corporativos */
.ticker-item img:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.05); /* Micro-zoom estético */
}

/* ANIMACIÓN NATIVA DE DESPLAZAMIENTO (Hardware Accelerated) */
@keyframes scrollClientes {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Se desplaza exactamente la mitad (el bloque duplicado) */
  }
}

/* Optimización móvil */
@media (max-width: 768px) {
  .ticker-container {
    padding: 15px 0;
  }
  .ticker-item {
    padding: 0 25px; /* Menor espacio en pantallas táctiles */
  }
  .ticker-item img {
    height: 35px; /* Reducción de tamaño del logo */
  }
}


/* ==========================================================================
   NUEVO GRID DE LÍNEAS DE NEGOCIO (ESTILO COMPAÑÍA)
   ========================================================================== */

.titulo-lineas {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px !important;
}

.subtitulo-lineas {
  text-align: center;
  color: #555555;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Distribución de rejilla fluida de 3 columnas */
.grid-lineas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Estructura cristalina con base blanca para legibilidad */
.card-linea {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 35px 25px 25px 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-linea:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* El círculo rojo flotante para el icono (Fiel a tu imagen) */
.icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--rojo-corporativo); /* Usa tu color #7A1212 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -30px; /* Sube la mitad del círculo sobre el borde */
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(122, 18, 18, 0.3);
}

/* Estilo para los iconos SVG integrados */
.icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: #ffffff; /* Color blanco para el interior del icono */
}

.card-linea h3 {
  color: var(--azul-oscuro);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.card-linea p {
  color: #4a5568;
  font-size: 14.5px;
  line-height: 1.6;
  text-align: center;
}

/* --- ADAPTACIÓN PARA TABLETAS Y MÓVILES (RESPONSIVO) --- */
@media (max-width: 1024px) {
  .grid-lineas {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
    gap: 40px 25px;
  }
}

@media (max-width: 768px) {
  .grid-lineas {
    grid-template-columns: 1fr; /* 1 sola columna vertical perfecta en celulares */
    gap: 50px 0; /* Mayor separación superior por el icono flotante */
  }
  
  .titulo-lineas {
    font-size: 24px;
  }
  
  .card-linea {
    padding: 40px 20px 20px 20px;
  }
}
/* ==========================================================================
   SISTEMA DE CAPTCHA PROFESIONAL ANTI-SPAM
   ========================================================================== */

.captcha-wrapper {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.captcha-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Caja gris con distorsión de fondo y letras cruzadas */
.captcha-box {
  background: repeating-linear-gradient(45deg, #78828a, #78828a 2px, #869199 2px, #869199 10px);
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  padding: 10px 20px;
  border-radius: 6px;
  text-shadow: 2px 3px 4px rgba(0,0,0,0.6);
  font-family: 'Courier New', Courier, monospace;
  user-select: none;
  -webkit-user-select: none;
  font-style: italic;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
  display: inline-block;
  min-width: 160px;
  text-align: center;
}

/* Botón circular de refresco */
.btn-refresh-captcha {
  width: 42px;
  height: 42px;
  background-color: #fff2f2; /* Tono rojizo muy suave de fondo */
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-refresh-captcha:hover {
  background-color: #fce8e8;
  transform: rotate(180deg); /* Efecto dinámico de giro al pasar el mouse */
}

.btn-refresh-captcha svg {
  width: 20px;
  height: 20px;
  fill: var(--rojo-corporativo); /* Tu color #7A1212 */
}

.margin-top-captcha {
  margin-top: 5px;
}

/* Estilo específico para resaltar el error de validación visualmente */
.captcha-error {
  border: 2px solid var(--rojo-corporativo) !important;
  background-color: #fff5h5 !important;
}
/* ==========================================================================
   DISEÑO PARA LA CUADRÍCULA DE MARCAS DISTRIBUIDAS
   ========================================================================== */

.section-marcas {
  margin-top: 40px;
}

.titulo-marcas {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 8px !important;
}

.subtitulo-marcas {
  text-align: center;
  color: #555555;
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}

/* Rejilla flexible que calcula el espacio disponible automáticamente */
.grid-marcas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  padding: 10px 0;
}

/* Cajas individuales de marcas con Glassmorphism reforzado */
.marca-item-box {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.marca-item-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Integración sobria: escala de grises sutil para diseño de alta gama */
  filter: grayscale(100%) opacity(70%);
  transition: all 0.35s ease;
}

/* Efecto interactivo al pasar el cursor */
.marca-item-box:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(26, 54, 115, 0.12);
  border-color: rgba(43, 82, 150, 0.3); /* Destello sutil azul medio */
}

/* Al hacer hover en la caja, el logo toma su color e identidad original */
.marca-item-box:hover img {
  filter: grayscale(0%) opacity(100%);
}

/* Estilo para las cajas de respaldo si no hay imágenes */
.respaldo-box span {
  font-size: 13px;
  font-weight: 600;
  color: var(--azul-medio);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- ADAPTACIÓN MÓVIL --- */
@media (max-width: 768px) {
  .titulo-marcas {
    font-size: 24px;
  }
  .grid-marcas {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas exactas simétricas en celulares */
    gap: 15px;
  }
  .marca-item-box {
    height: 95px;
    padding: 15px;
  }
}



