/**
 * FOOTER CORE CSS - Módulo base del footer
 * 
 * CONTENIDO:
 * - Configuración base y reset
 * - Layout principal del footer
 * - Grid system del footer
 * - Compatibilidad con WooCommerce
 * - Variables CSS específicas del footer
 * 
 * NAMESPACE: .meloopets-footer
 */

/* ===================================================================
   CONFIGURACIÓN BASE DEL FOOTER
   ================================================================= */

.meloopets-footer .custom-footer {
  margin-top: 50px;
  font-family: 'Fredoka', sans-serif;
  padding-top: 0;
  border-top: none;
  scroll-margin-top: 100px;
}

/* Compatibilidad con WooCommerce */
.meloopets-footer.woocommerce .custom-footer {
  margin-top: 40px;
}

.meloopets-footer .custom-footer .woocommerce-message,
.meloopets-footer .custom-footer .woocommerce-error,
.meloopets-footer .custom-footer .woocommerce-info {
  margin-bottom: 20px;
}

/* Accesibilidad */
.meloopets-footer .custom-footer {
  scroll-margin-top: 100px;
}

/* ===================================================================
   SECCIÓN PRINCIPAL DEL FOOTER
   ================================================================= */

.meloopets-footer .footer-main {
  background: #1a3a0f; /* Verde muy oscuro */
  color: #ecf0f1;
  padding: 30px 0 20px;
  position: relative;
  /* SVG como imagen de fondo que cubre todo el contenedor */
  background-image: 
    linear-gradient(rgba(58, 25, 15, 0.45), rgba(58, 25, 15, 0.45)),
    url('../../../uploads/2021/12/paw-pattern-2.svg');
  background-size: auto, cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  background-color: #1a3a0f;
  background-origin: border-box;
  background-clip: border-box;
  margin-top: 0;
  border-top: none;
  box-shadow: var(--footer-shadow);
}

/* Gradiente decorativo superior */
.meloopets-footer .footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f26722 0%, #F4BE0C 50%, #4A7356 100%);
  z-index: 2;
}

/* Capa semi-transparente desactivada para mostrar mejor el patrón */
.meloopets-footer .footer-main::after {
  /* content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.1);
  z-index: 1; */
  display: none; /* Desactivado para mostrar el patrón claramente */
}

/* Grid principal del footer */
.meloopets-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 3; /* Por encima de la capa semi-transparente */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--footer-padding-horizontal, 0);
}

/* Mejorar legibilidad del texto sobre el patrón */
.meloopets-footer .footer-main * {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.meloopets-footer .footer-column h4 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===================================================================
   COLUMNAS DEL FOOTER - CONFIGURACIÓN GENERAL
   ================================================================= */

.meloopets-footer .footer-column {
  animation: fadeInUp 0.6s ease-out;
}

.meloopets-footer .footer-column:nth-child(1) { animation-delay: 0.1s; }
.meloopets-footer .footer-column:nth-child(2) { animation-delay: 0.2s; }
.meloopets-footer .footer-column:nth-child(3) { animation-delay: 0.3s; }
.meloopets-footer .footer-column:nth-child(4) { animation-delay: 0.4s; }

.meloopets-footer .footer-column h4 {
  color: #F4BE0C;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.meloopets-footer .footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #f26722;
}

/* ===================================================================
   ENLACES DEL FOOTER
   ================================================================= */

.meloopets-footer .footer-section a {
  color: var(--footer-text-secondary);
  text-decoration: none;
  transition: color var(--footer-transition-fast);
  font-weight: 500;
}

/* ===================================================================
   LISTAS DEL FOOTER
   ================================================================= */

.meloopets-footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meloopets-footer .footer-section li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

/* ===================================================================
   PÁRRAFOS Y TEXTO DEL FOOTER
   ================================================================= */

.meloopets-footer .footer-section p {
  color: var(--footer-text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.meloopets-footer .footer-section strong {
  color: var(--footer-text-primary);
  font-weight: 600;
}

/* Ajustes migrados desde custom-footer.css */

.meloopets-footer .footer-bottom {
  background: linear-gradient(135deg, #0f1f08, #1a3a0f);
  padding: 25px 0;
  border-top: 1px solid rgba(244, 190, 12, 0.15);
  position: relative;
  transition: all 0.3s ease;
}
.meloopets-footer .footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #F4BE0C, transparent);
  opacity: 0.5;
}
.meloopets-footer .footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.meloopets-footer .footer-legal {
  display: flex;
  gap: 30px;
  align-items: center;
}
.meloopets-footer .footer-legal a {
  color: #95a5a6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 12px;
  border-radius: 4px;
}
.meloopets-footer .footer-legal a:hover {
  color: #F4BE0C;
  background: rgba(244, 190, 12, 0.1);
  transform: translateY(-1px);
}
.meloopets-footer .footer-legal a:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: -18px;
  color: #7f8c8d;
  font-weight: bold;
}
.meloopets-footer .footer-copyright p {
  color: #bdc3c7;
  font-size: 14px;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.meloopets-footer .footer-copyright p::before {
  content: '© ';
  color: #F4BE0C;
  font-weight: 600;
}
