/* ========================================= */
/* ESTILOS DEL FOOTER */
/* ========================================= */

.footer {
  background-color: #f3f4f6;
  color: #4b5563;
  padding: 40px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 80px;
  max-width: 1200px; /* Añadido para un mejor control del ancho */
  margin: 0 auto; /* Centra el contenedor */
}

.footer-logo {
  max-width: 300px;
}

.footer-logo img {
  width: 100px;
  height: auto;
}

.footer-logo p {
  margin: 10px 0;
  font-size: 14px;
  color: #6b7280;
}

.social-icons i {
  font-size: 18px;
  margin-right: 12px;
  color: #6b7280;
  transition: color 0.3s;
}

/* Agrupación de selectores :hover para los iconos */
.social-icons .instagram-icon:hover { color: #E1306C; }
.social-icons .facebook-icon:hover { color: #1877F2; }
.social-icons .youtube-icon:hover { color: #FF0000; }
.social-icons .tiktok-icon:hover { color: #000000; }

.footer-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #111827;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0; /* Añadido para consistencia */
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  text-decoration: none;
  color: #6b7280;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #fc3c34;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  text-align: center;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 14px;
  color: #9ca3af;
}

/* ========================================= */
/* ESTILOS DEL MODAL */
/* ========================================= */

.modal-overlay-m {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay-m.activo {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.modal-overlay-m.activo .modal-content {
  transform: translateY(0);
}

.modal-header {
  background: linear-gradient(to right, #ff4136, #e63946);
  color: white;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
}

.modal-close {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  width: 32px; /* Tamaño ajustado */
  height: 32px; /* Tamaño ajustado */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-body {
  padding: 26px;
  overflow-y: auto;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.lista-compacta {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.lista-compacta li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 10px;
  text-align: justify;
}

.lista-compacta li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #e63946;
  font-weight: bold;
}

/* ========================================= */
/* ESTILOS RESPONSIVOS PARA EL FOOTER (AGRUPADOS) */
/* ========================================= */

/* --- VISTA TABLET Y MÓVIL (hasta 1024px) --- */
/* Reglas que se aplican a ambos tamaños de pantalla */
@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    width: 100%;
  }

  .footer-logo {
    align-items: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Un valor intermedio */
    width: 100%;
  }

  .footer-column {
    width: 100%;
    max-width: 320px;
  }

  .footer-column ul {
    padding-left: 0;
  }
}

/* --- SOLO VISTA TABLET (601px a 1024px) --- */
/* Reglas específicas que solo aplican a tablets */
@media (min-width: 601px) and (max-width: 1024px) {
  .footer {
    padding: 60px 40px;
  }
}

/* --- SOLO VISTA MÓVIL (hasta 600px) --- */
/* Reglas específicas que solo aplican a móviles */
@media (max-width: 600px) {
  .footer {
    padding: 40px 25px;
  }
  
  .footer-bottom {
    font-size: 13px;
  }
}