/* ========================================
   FOOTER - DISEÑO MODERNO
   Speck Developers - Paleta Azul y Blanco
   ======================================== */

/* Footer principal */
.footer-modern {
  background: linear-gradient(135deg, #0A3D5C 0%, #1E5F8C 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Main content */
.footer-main {
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}

/* Widget del footer */
.footer-widget {
  margin-bottom: 20px;
}

/* Logo */
.footer-logo {
  margin-bottom: 20px;
}

.footer-logo a {
  text-decoration: none;
}

.footer-logo h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.footer-logo h2 span {
  color: #4A90C4;
}

/* Descripción */
.footer-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Redes sociales */
.footer-social {
  margin-top: 25px;
}

.footer-social h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.social-link.facebook:hover {
  color: #1877f2;
}

.social-link.instagram:hover {
  color: #e4405f;
}

.social-link.telegram:hover {
  color: #0088cc;
}

.social-link.whatsapp:hover {
  color: #25d366;
}

/* Títulos de secciones */
.footer-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #4A90C4;
  border-radius: 2px;
}

/* Enlaces del footer */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-decoration: none;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-links a i {
  font-size: 12px;
  color: #4A90C4;
}

/* Información de contacto */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #4A90C4;
  flex-shrink: 0;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.contact-item a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #4A90C4;
}

/* Newsletter */
.footer-newsletter {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 15px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Form del newsletter */
.newsletter-form .input-group {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #4A90C4;
}

.newsletter-form button {
  width: 45px;
  height: 45px;
  background: #4A90C4;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  background: #ffffff;
  color: #1E5F8C;
  transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.copyright strong {
  color: #ffffff;
  font-weight: 600;
}

/* Enlaces del footer bottom */
.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-decoration: none;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-bottom-links span {
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
  .footer-main {
    padding: 50px 0 30px;
  }

  .footer-logo h2 {
    font-size: 24px;
  }

  .footer-title {
    font-size: 18px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .footer-main {
    padding: 40px 0 20px;
  }

  .footer-widget {
    margin-bottom: 35px;
  }

  .footer-logo h2 {
    font-size: 22px;
  }

  .footer-description {
    font-size: 14px;
  }

  .footer-title {
    font-size: 17px;
  }

  .footer-bottom {
    padding: 20px 0;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 15px;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links a {
    font-size: 14px;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .footer-logo h2 {
    font-size: 20px;
  }

  .newsletter-form .input-group {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
/* ========================================
   FIX MÓVILES - UNA COLUMNA ORDENADA
   ======================================== */

@media (max-width: 768px) {
  
  /* IMPORTANTE: Forzar una sola columna */
  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }
  
  .footer-links li {
    width: 100% !important;
    margin-bottom: 8px;
  }
  
  /* Evitar que Bootstrap Grid haga 2 columnas */
  .footer-main .col-lg-2,
  .footer-main .col-md-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  /* Espaciado entre secciones del footer */
  .footer-widget {
    margin-bottom: 30px !important;
    text-align: left;
  }
  
  /* Enlaces más legibles y espaciados */
  .footer-links a {
    font-size: 15px;
    padding: 5px 0;
    display: flex;
    align-items: center;
  }
  
  /* Contacto centrado y legible */
  .contact-item {
    justify-content: flex-start;
    text-align: left;
  }
  
  /* Email que no se salga */
  .contact-item a {
    word-break: break-word;
    font-size: 14px;
  }
  
  /* Newsletter input más grande */
  .newsletter-form input {
    padding: 14px 15px;
    font-size: 15px;
  }
  
  .newsletter-form button {
    width: 50px;
    height: 50px;
  }
  
  /* Redes sociales alineadas */
  .social-links {
    justify-content: flex-start;
  }
}

/* Móviles pequeños - Ajustes adicionales */
@media (max-width: 480px) {
  
  /* Reducir padding del footer */
  .footer-main {
    padding: 30px 15px 20px;
  }
  
  /* Títulos más compactos */
  .footer-title {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  /* Enlaces más compactos */
  .footer-links a {
    font-size: 14px;
  }
  
  /* Espaciado entre secciones */
  .footer-widget {
    margin-bottom: 25px !important;
  }
  
  /* Newsletter a una columna */
  .newsletter-form .input-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .newsletter-form button {
    width: 100%;
    height: 45px;
  }
}

/* ======================================== */