/* ===============================================
   GCLA - Footer
   Componente Modular - Información Empresarial
   =============================================== */

/* Contenedor Principal */
.main-footer {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

/* Brand del footer */
.footer-brand {
  position: relative;
  z-index: 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo .logo-img {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.footer-logo .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-logo .brand-line-1 {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.footer-logo .brand-line-2 {
  font-size: 14px;
  font-weight: 600;
}

.footer-logo .brand-line-3 {
  font-weight: 800;
}

.footer-description {
  font-size: 16px;
  color: #D1D5DB;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Estadísticas del footer */
.footer-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-stats .stat-item {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.footer-stats .stat-number {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #10B981;
  line-height: 1;
  margin-bottom: 4px;
}

.footer-stats .stat-label {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enlaces sociales */
.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D1D5DB;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.social-link:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.social-link i {
  font-size: 18px;
}

/* Secciones del footer */
.footer-section {
  position: relative;
  z-index: 2;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 2px;
}

/* Enlaces del footer */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #10B981;
  transform: translateX(4px);
}

.footer-links a i {
  font-size: 12px;
  width: 16px;
  text-align: center;
}

/* Información de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-icon i {
  font-size: 16px;
  color: #10B981;
}

.contact-item:hover .contact-icon {
  background: rgba(16, 185, 129, 0.3);
  transform: scale(1.05);
}

.contact-details strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.contact-details p {
  font-size: 14px;
  color: #D1D5DB;
  margin: 0;
  line-height: 1.4;
}

/* CTA del footer */
.footer-cta {
  margin-top: 20px;
}

.footer-cta .btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.footer-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Divider del footer */
.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 40px 0 20px 0;
}

/* Footer inferior */
.footer-bottom {
  position: relative;
  z-index: 2;
}

.copyright {
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 12px;
}

.copyright strong {
  color: #10B981;
  font-weight: 700;
}

.footer-links-bottom {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links-bottom a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
  color: #10B981;
}

/* Métodos de pago */
.payment-methods {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.payment-label {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
  margin-right: 8px;
}

.payment-methods i {
  font-size: 20px;
  color: #6B7280;
  transition: color 0.3s ease;
  cursor: pointer;
}

.payment-methods i:hover {
  color: #10B981;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-logo {
    justify-content: center;
    text-align: center;
  }
  
  .footer-stats {
    justify-content: center;
    gap: 16px;
  }
  
  .footer-stats .stat-item {
    min-width: 70px;
  }
  
  .footer-stats .stat-number {
    font-size: 18px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-title {
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links a {
    justify-content: center;
  }
  
  .contact-item {
    justify-content: center;
    text-align: center;
  }
  
  .footer-cta {
    text-align: center;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-links-bottom {
    justify-content: center;
  }
  
  .payment-methods {
    justify-content: center;
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .footer-logo .brand-line-1 {
    font-size: 14px;
  }
  
  .footer-logo .brand-line-2 {
    font-size: 12px;
  }
  
  .footer-description {
    font-size: 14px;
  }
  
  .footer-stats {
    gap: 12px;
  }
  
  .footer-stats .stat-number {
    font-size: 16px;
  }
  
  .footer-stats .stat-label {
    font-size: 10px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .social-link i {
    font-size: 16px;
  }
  
  .footer-title {
    font-size: 16px;
  }
  
  .footer-links a {
    font-size: 13px;
  }
  
  .contact-icon {
    width: 36px;
    height: 36px;
  }
  
  .contact-icon i {
    font-size: 14px;
  }
  
  .contact-details strong {
    font-size: 13px;
  }
  
  .contact-details p {
    font-size: 13px;
  }
  
  .footer-links-bottom {
    gap: 16px;
  }
  
  .footer-links-bottom a {
    font-size: 11px;
  }
  
  .payment-methods i {
    font-size: 18px;
  }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  .main-footer {
    background: #000000;
  }
  
  .social-link {
    border-color: #10B981;
  }
  
  .contact-icon {
    border-color: #10B981;
  }
}

/* Reducir animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .social-link,
  .footer-links a,
  .contact-icon,
  .footer-cta .btn {
    transition: none;
  }
  
  .social-link:hover,
  .footer-links a:hover,
  .contact-item:hover .contact-icon,
  .footer-cta .btn:hover {
    transform: none;
  }
}