/* footer-style.css - Estilos modernizados para el footer de Distrilife basado en el header */

/* Importar fuente Montserrat para consistencia */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap");

/* Variables de colores consistentes con el header */
:root {
  --dl-primary: #27ae60;
  --dl-primary-dark: #219653;
  --dl-secondary: #ff6b35;
  --dl-text-dark: #2c3e50;
  --dl-text-light: #ffffff;
  --dl-bg-light: #f9f9f9;
  --dl-border-color: #e8f5e9;
  --dl-shadow: 0 5px 15px rgba(39, 174, 96, 0.1);
  --dl-hover-green: #1e8449;
  --dl-bg-dark: #2c3e50;
}

/* Aplicar fuente Montserrat a todo el footer para consistencia */
.distrilife-footer {
  font-family: "Montserrat", sans-serif;
}

.footer-bottom .col-md-6 p a {
  color: #ff6600; /* color personalizado */
  font-weight: bold; /* lo pones en negrita */
  text-decoration: none; /* quita subrayado */
  transition: 0.3s ease; /* animación suave */
}

.footer-bottom .col-md-6 p a:hover {
  color: #cc5200; /* cambia color al pasar mouse */
  text-decoration: underline; /* subrayado al hover */
}

/* Estructura principal del footer */
.distrilife-footer {
  position: relative;
  background: linear-gradient(135deg, var(--dl-bg-dark) 0%, #1a2530 100%);
  color: var(--dl-text-light);
  overflow: hidden;
  padding-top: 60px;
  margin-top: 80px;
}

/* Fondo con efecto de resplandor mejorado */
.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  width: 200%;
  height: 100%;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
  animation: moveGlow 20s linear infinite;
}

.footer-glow-bottom {
  top: 50%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(39, 174, 96, 0.3) 0%,
    transparent 70%
  );
}

.footer-glow-top {
  top: -50%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(255, 107, 53, 0.2) 0%,
    transparent 70%
  );
  animation-delay: 5s;
}

@keyframes moveGlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* Contenido del footer */
.footer-content {
  position: relative;
  z-index: 1;
}

/* Widget Areas - Estilo modernizado */
.footer-widgets {
  padding: 30px 0;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--dl-shadow);
}

/* Main Footer */
.footer-main {
  padding: 60px 0 40px;
}

.footer-brand {
  margin-bottom: 30px;
}

.footer-logo img {
  max-height: 180px;
  margin-bottom: 20px;
  margin-top: 0px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 25px;
  font-weight: 300;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--dl-text-light);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--dl-shadow);
}

.social-icon:hover {
  background-color: var(--dl-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
  color: var(--dl-text-light);
}

/* Títulos de sección - Estilo similar al header */
.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--dl-text-light);
  position: relative;
  padding-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--dl-primary), var(--dl-secondary));
  border-radius: 3px;
}

/* Menú de enlaces - Estilo moderno */
.footer-links .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links .footer-menu li {
  margin-bottom: 14px;
}

.footer-links .footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
  font-weight: 400;
  display: inline-block;
}

.footer-links .footer-menu a:hover {
  color: var(--dl-primary);
  padding-left: 15px;
  transform: translateX(5px);
}

.footer-links .footer-menu a::before {
  content: "→";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--dl-primary);
}

.footer-links .footer-menu a:hover::before {
  left: 0;
  opacity: 1;
}

/* Información de contacto - Estilo moderno */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--dl-primary);
  width: 20px;
  font-size: 1.1rem;
}

/* Newsletter - Estilo moderno similar al header */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-form input {
  padding: 14px 18px;
  border: none;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--dl-text-light);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.newsletter-form input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px var(--dl-primary), inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(
    to right,
    var(--dl-primary),
    var(--dl-primary-dark)
  );
  color: var(--dl-text-light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  letter-spacing: 0.5px;
}

.newsletter-form button:hover {
  background: linear-gradient(
    to right,
    var(--dl-primary-dark),
    var(--dl-hover-green)
  );
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

/* Footer Bottom - Estilo moderno */
.footer-bottom {
  padding: 25px 0;
  background-color: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-payments {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  font-size: 1.6rem;
}

.footer-payments i {
  opacity: 0.7;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

.footer-payments i:hover {
  opacity: 1;
  color: var(--dl-primary);
  transform: translateY(-3px);
}

/* Botón de WhatsApp Flotante (sin cambios como solicitado) */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
  font-size: 28px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* RESPONSIVE DESIGN - Mobile First Approach */

/* Tabletas (768px - 991px) */
@media (max-width: 991.98px) {
  .footer-main .row > div {
    margin-bottom: 40px;
  }

  .footer-payments {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .footer-bottom .row {
    flex-direction: column;
    text-align: center;
  }

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

/* Móviles (≤ 767px) - Centrado completo */
@media (max-width: 767.98px) {
  .distrilife-footer {
    padding-top: 40px;
    text-align: center;
  }

  .footer-main {
    padding: 40px 0 20px;
  }

  .footer-widgets,
  .footer-main .container,
  .footer-bottom .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo img {
    max-height: 140px;
  }

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

  .contact-info {
    align-items: center;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .footer-links .footer-menu a:hover {
    padding-left: 0;
    transform: none;
  }

  .footer-links .footer-menu a::before {
    display: none;
  }

  .newsletter-form {
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    max-width: 300px;
  }

  .footer-payments {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

/* Móviles pequeños (≤ 575px) */
@media (max-width: 575.98px) {
  .footer-logo img {
    max-height: 110px;
  }

  .footer-social {
    flex-wrap: wrap;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .footer-description {
    font-size: 0.95rem;
  }

  .footer-widgets .row {
    flex-direction: column;
  }

  .footer-widgets .col-sm-6 {
    width: 100%;
    margin-bottom: 30px;
  }
}

/* Animaciones de entrada mejoradas */
.footer-widgets,
.footer-main,
.footer-bottom {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.footer-widgets {
  animation-delay: 0.1s;
}

.footer-main {
  animation-delay: 0.2s;
}

.footer-bottom {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Solución mejorada para correos largos */
.contact-item span {
    display: block;
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
}

.contact-item .email-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item .email-link:hover {
    color: var(--dl-primary);
    text-decoration: underline;
}

/* Para pantallas muy pequeñas */
@media (max-width: 380px) {
    .contact-item span {
        font-size: 0.85rem;
    }
}