/* ===================================
   FOOTER CORPORATIVO MODERNO
   ================================= */

.footer-modern {
  background: linear-gradient(135deg, var(--adit-primary, #840537) 0%, var(--adit-primary-dark, #2F2D38) 100%);
  color: #ffffff;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040; /* Por debajo del navbar (1050) pero por encima del contenido */
  padding: 0.75rem 0; /* Padding reducido para footer fijo */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #373A46 0%, #3351A6 25%, #A0293E 50%, #C73E1D 75%, #3351A6 100%);
}

/* Secciones del footer */
.footer-section {
  padding: 0 1rem;
}

/* Logo y marca */
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
  filter: brightness(1.2);
}

.footer-brand {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
  background: linear-gradient(45deg, #3351A6, #A0293E, #C73E1D);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Descripción */
.footer-description {
  color: #B8B8B8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Información de contacto */
.footer-contact {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #D4D4D4;
  font-size: 0.9rem;
}

.contact-item i {
  color: #ffffff;
  width: 20px;
  margin-right: 0.5rem;
  text-align: center;
}

/* Títulos de secciones */
.footer-title {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3351A6;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #A0293E, #C73E1D);
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #B8B8B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #3351A6;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 20px;
}

.footer-links a:hover::before {
  color: #A0293E;
  transform: translateX(3px);
}

/* Información legal */
.legal-info p {
  color: #D4D4D4;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.legal-info p strong {
  color: #FFFFFF;
}

/* Badges de certificación */
.certifications {
  margin-top: 1rem;
}

.cert-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3351A6, #A0293E);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Separador */
.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #3351A6 50%, transparent 100%);
  margin: 2rem 0 1.5rem 0;
}

/* Parte inferior del footer */
.footer-bottom {
  align-items: center;
}

/* Copyright */
.copyright p {
  color: #B8B8B8;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.version-info {
  color: #888888 !important;
  font-size: 0.75rem !important;
}

/* Redes sociales */
.social-links {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #404040, #2C2C2C);
  color: #B8B8B8;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #555555;
}

.social-link:hover {
  background: linear-gradient(135deg, #3351A6, #A0293E);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 21, 56, 0.4);
}

/* Decoración visual */
.footer-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    #373A46 0%, 
    #3351A6 20%, 
    #A0293E 40%, 
    #C73E1D 60%, 
    #A0293E 80%, 
    #3351A6 100%
  );
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-modern {
    padding: 2rem 0 1rem 0;
  }

  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
    text-align: center;
  }

  .copyright {
    text-align: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .footer-brand {
    font-size: 1.3rem;
  }

  .footer-description {
    font-size: 0.85rem;
  }

  .contact-item {
    font-size: 0.85rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
  }
}

/* ===== REDES SOCIALES ===== */
.social-media {
  margin-top: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #B8B8B8;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: var(--adit-primary, #840537);
  border-color: var(--adit-primary, #840537);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(132, 5, 55, 0.3);
}

/* Colores específicos para cada red social en hover */
.social-links a[href*="facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-links a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.social-links a[href*="linkedin"]:hover {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.social-links a[href*="twitter"]:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.social-links a[href*="youtube"]:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* ===== CERTIFICACIONES ===== */
.footer-certifications {
  margin-top: 1.5rem;
}

.footer-certifications .footer-links a {
  font-size: 0.85rem;
  padding-left: 12px;
}

.footer-certifications .footer-links a::before {
  content: '🏆';
  font-size: 0.8rem;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  padding-top: 0.5rem;
}

/* ===== MEJORAS RESPONSIVE ===== */
@media (max-width: 768px) {
  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .footer-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-contact .contact-item {
    justify-content: center;
  }
}
