/* ========== RESET Y ESTILOS BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Oswald', sans-serif;
  background: #f5f5f5;
}

body {
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ========== FOOTER PRINCIPAL ========== */
.mma-footer, .footer {
  background: #000;
  color: #fff;
  padding: 4rem 1rem 0;
  border-top: 3px solid #ff0000;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-container, .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

/* ========== SECCIONES DEL FOOTER ========== */
.footer-section {
  padding: 0 1rem;
}

.footer-section h3 {
  color: #ff0000;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.125rem;
  height: 2px;
  background: #ff0000;
}

.footer-section p, 
.footer-section a {
  color: #ccc;
  margin-bottom: 0.625rem;
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ff0000;
}

/* ========== ICONOS SOCIALES ========== */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #ff0000;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

/* ========== PARTE INFERIOR DEL FOOTER ========== */
.footer-bottom {
  background: #111;
  text-align: center;
  padding: 1.25rem 0;
  margin-top: 3rem;
}

.footer-bottom p {
  color: #999;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  margin: 0;
}

/* ========== MEDIA QUERIES ========== */
/* Tablet - 768px */
@media (max-width: 768px) {
  .mma-footer, .footer {
      padding: 3rem 0 0;
  }

  .footer-container, .footer-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
  }

  .footer-section {
      padding: 0;
      max-width: 400px;
      margin: 0 auto;
  }

  .footer-section h3::after {
      left: 50%;
      transform: translateX(-50%);
  }

  .social-icons {
      justify-content: center;
  }

  .footer-bottom {
      margin-top: 2rem;
  }
}

/* Mobile Grande - 480px */
@media (max-width: 480px) {
  .mma-footer, .footer {
      padding: 2.5rem 0 0;
  }

  .footer-container, .footer-grid {
      gap: 1.5rem;
      padding: 0 1rem;
  }

  .social-icons a {
      width: 2.2rem;
      height: 2.2rem;
      font-size: 1rem;
  }
}

/* Mobile Pequeño - 360px */
@media (max-width: 360px) {
  .footer-section h3 {
      font-size: 1.1rem;
  }

  .footer-section p, 
  .footer-section a {
      font-size: 0.85rem;
  }

  .social-icons {
      gap: 0.75rem;
  }

  .footer-bottom p {
      font-size: 0.75rem;
  }
}

/* Orientación horizontal en móviles */
@media (max-height: 480px) and (orientation: landscape) {
  .mma-footer, .footer {
      padding: 2rem 0 0;
  }

  .footer-container, .footer-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
  }

  .footer-section {
      padding: 0 0.5rem;
  }
}
