/**
 * Footer Styles - BEM Methodology
 * Estudio Defensor
 */

/* ============================================
   FOOTER BASE
   ============================================ */

.footer {
  position: relative;
  padding: 5rem 0 3rem;
  animation: fadeIn 0.6s ease-out;
}

.footer__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  z-index: -1;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* ============================================
   COLUMNAS
   ============================================ */

.footer__column {
  color: #ffffff;
}

.footer__column--info {
  /* Columna izquierda */
}

.footer__column--contact {
  /* Columna derecha */
}

/* ============================================
   TÍTULO DEL ESTUDIO
   ============================================ */

.footer__title {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer__title-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__title-link:hover {
  color: #FF6600;
}

/* ============================================
   DESCRIPCIÓN
   ============================================ */

.footer__description {
  margin: 0 0 2rem 0;
  font-size: 0.9375rem;
  color: #ffffff;
  line-height: 1.7;
  opacity: 0.9;
}

/* ============================================
   REDES SOCIALES
   ============================================ */

.footer__social {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__social-item {
  margin: 0;
  padding: 0;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer__social-link:hover {
  background-color: rgba(255, 102, 0, 0.2);
  transform: translateY(-3px) scale(1.1);
}

.footer__social-link svg {
  fill: #ffffff;
  width: 24px;
  height: 24px;
}

.footer__social-link:hover svg {
  fill: #FF6600;
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */

.footer__heading {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.footer__text {
  margin: 0 0 0.75rem 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #ffffff;
  opacity: 0.9;
}

.footer__link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #FF6600;
}

/* ============================================
   COPYRIGHT
   ============================================ */

.footer__copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer__copyright-text {
  margin: 0;
  font-size: 0.875rem;
  color: #ffffff;
  opacity: 0.9;
}

/* ============================================
   RESPONSIVIDAD
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .footer__content {
    gap: 2rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 2rem;
    text-align: center;
  }
  
  .footer__container {
    padding: 0 1.5rem;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer__title {
    font-size: 1.25rem;
  }
  
  .footer__social {
    justify-content: center;
  }
  
  .footer__copyright {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer__container {
    padding: 0 1rem;
  }
  
  .footer__title {
    font-size: 1.125rem;
  }
  
  .footer__social-link {
    width: 36px;
    height: 36px;
  }
  
  .footer__social-link svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

.footer__title-link:focus-visible,
.footer__link:focus-visible,
.footer__social-link:focus-visible {
  outline: 3px solid rgba(255, 102, 0, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .footer,
  .footer * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
