/*
 * Estilos CSS para el footer.
 * Adaptado a la paleta de colores y el estilo de la imagen proporcionada.
 * Diseño moderno y responsivo.
 */

/* Estilos generales del footer */
.footer {
  background-color: #f8f8fc;
  padding: 50px 0;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  color: #1f1f3a;
}

.footer-wave {
  display: none;
}

/* Contenedor principal del footer */
.container.footer-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Estilos para cada sección del footer */
.footer-section {
  background-color: #f8f8fc;
  border-radius: 25px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.footer-section h3 {
  color: #3004E1;
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-section p {
  color: #000000;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 0.95em;
}

/* Sección Rumbero Extremo (Logo) */
.footer-about .footer-logo-link {
  margin-bottom: 10px;
  display: inline-block;
}

.footer-about .footer-logo {
  max-width: 70px;
  height: auto;
}

/* Enlaces Rápidos */
/* Estilos para la sección de Enlaces Rápidos */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 15px; /* Agrega un margen superior para bajar la lista */
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.footer-links h3 {
  color: #3004E1;
  font-size: 1.5em;
  margin-bottom: 15px;
  margin-top: 10px; /* Agrega un margen superior al título */
  font-weight: bold;
}

.footer-links li {
  width: 80%;
  max-width: 250px;
}

.footer-links a {
  background-color: #A601B3;
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.85em;
}

.footer-links a:hover {
  background-color: #3004E1;
  transform: translateY(-2px);
}

/* Sección Conéctate */
.footer-connect .connect-icon-container {
  background-color: #e2dcdc;
  border-radius: 50%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.footer-connect .connect-icon-container:hover {
  transform: scale(1.1);
}

.footer-connect svg {
  width: 60px;
  height: 60px;
  color: #3004E1;
  stroke: #A601B3;
}

/* Íconos de redes sociales */
.footer-connect .social-icons-connect {
  display: flex;
  gap: 15px; /* Espacio entre los íconos, puedes ajustarlo si quieres más o menos separación */
  margin-top: 20px; /* Margen superior para separarlos del texto, ajusta si es necesario */
  align-items: center;
  justify-content: center;
  width: 100%; /* Asegura que el contenedor abarque todo el ancho disponible */
}

/* Estilo para los íconos individuales (los enlaces que contienen los íconos) */
.social-icons-connect a {
  font-size: 2.5em; /* Reducimos drásticamente el tamaño de los íconos */
  color: #a0a0a0; /* Color inicial gris */
  transition: color 0.3s ease, transform 0.3s ease;
  /* Aseguramos que los íconos sean elementos de bloque para que el padding y el tamaño funcionen bien */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px; /* Ancho fijo para cada icono */
  height: 60px; /* Alto fijo para cada icono */
}

/* Al pasar el cursor, cambiamos el color y añadimos animación */
.social-icons-connect a:hover {
  color: #3004E1; /* Color azul en hover */
  transform: translateY(-5px) scale(1.1); /* Sube ligeramente y se agranda un poco */
}

/* IMPORTANTE: Si estás usando imágenes para los íconos, o un framework como Font Awesome,
   puede que necesites ajustar las clases de los íconos directamente, por ejemplo: */
.social-icons-connect img {
    width: 60px; /* Ajusta el tamaño de la imagen */
    height: 60px; /* Ajusta el tamaño de la imagen */
    filter: grayscale(100%) brightness(0.8); /* Para que las imágenes se vean en gris */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-icons-connect a:hover img {
    filter: none; /* Recupera el color original de la imagen en hover */
    transform: translateY(-5px) scale(1.1);
}

/* Newsletter Section Specific Adjustments */
.footer-section.footer-newsletter {
  padding: 20px;
  justify-content: center;
}

.footer-newsletter h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.footer-newsletter p {
  font-size: 0.85em;
  margin-bottom: 15px;
  text-align: center;
}

.newsletter-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
  border-radius: 30px;
  background: linear-gradient(to right, #A601B3, #3004E1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  padding: 3px;
  box-sizing: border-box;
}

.newsletter-input-group input[type="email"] {
  flex-grow: 1;
  min-width: 0;
  padding: 8px 15px;
  border: none;
  outline: none;
  font-size: 0.8em;
  background-color: #fff;
  border-radius: 20px 0 0 20px;
  color: #1f1f3a;
  height: 38px;
  box-sizing: border-box;
}

.newsletter-input-group input[type="email"]::placeholder {
  color: #a0a0a0;
}

.newsletter-input-group .subscribe-button {
  flex-shrink: 0;
  flex-basis: auto;
  min-width: 80px;
  background-color: transparent;
  color: #fff;
  border: none;
  padding: 8px 15px;
  font-size: 0.8em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
  height: 38px;
  border-radius: 0 20px 20px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-input-group .subscribe-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.error-message, .success-message {
  font-size: 0.7em;
  margin-top: 5px;
  text-align: center;
  width: 100%;
}

.error-message {
  color: #e74c3c;
}

.success-message {
  color: #2ecc71;
}

/* Estilos de la sección inferior de copyright */
.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: #1f1f3a;
}

.footer-bottom p {
  margin: 0.5rem 0;
}

/* Media query para dispositivos más pequeños */
@media (max-width: 1024px) {
  .container.footer-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 0;
  }

  .container.footer-grid-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 15px;
  }

  .footer-links li {
    width: 80%;
    max-width: 300px;
  }

  .newsletter-input-group {
    flex-direction: column;
    border-radius: 25px;
    max-width: 300px;
    background: linear-gradient(to bottom, #3004E1, #A601B3);
  }

  .newsletter-input-group input[type="email"] {
    border-radius: 25px;
    margin-bottom: 8px;
    width: 100%;
    height: 45px;
    text-align: center;
    border: 1px solid #a601b3;
  }

  .newsletter-input-group .subscribe-button {
    width: 100%;
    border-radius: 25px;
    height: 45px;
    font-size: 0.9em;
    padding: 10px 0;
  }
}