/* =========================================================
   FOOTER COMPONENT — TOOLarts
   Reglas de estilo del <footer> reutilizable.
   Depende de las variables :root definidas en cada página
   (--bg, --accent, --accent-dark, --ink, --muted, --line).
   ========================================================= */

.site-footer{
  background: var(--footer-bg, var(--ink));
  color: rgba(248,250,252,0.65);
  margin-top: 40px;
  transition: background .3s ease;
}

/* ===== Banner de temporada (opcional, vía temas-manager) =====
   Se agrega/quita en tiempo de ejecución desde footer.js. */
.footer-banner{
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  letter-spacing: 0.01em;
  transition: background .3s ease;
}

.footer-top{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo{
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 0;
}
.footer-brand .logo .logo-mark{
  height: 28px;
  width: auto;
  margin-right: -4px;
  flex-shrink: 0;
}
.footer-brand .logo .logo-emoji{
  font-size: 16px;
  line-height: 1;
}

.footer-brand p{
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 260px;
  margin: 0 0 22px;
  color: rgba(248,250,252,0.55);
}

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

.footer-social a{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,250,252,0.75);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer-social a:hover{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.footer-social svg{ width: 16px; height: 16px; }

.footer-col h4{
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.footer-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a{
  color: rgba(248,250,252,0.62);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .18s ease;
}
.footer-col a:hover{
  color: #fff;
}

.footer-newsletter{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 44px;
}

.newsletter-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-card h3{
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}
.newsletter-card p{
  margin: 0;
  font-size: 13.5px;
  color: rgba(248,250,252,0.55);
}

.newsletter-form{
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.newsletter-form input{
  width: 250px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13.5px;
  outline: none;
}
.newsletter-form input::placeholder{
  color: rgba(248,250,252,0.4);
}
.newsletter-form input:focus{
  border-color: var(--accent);
}

.newsletter-form button{
  background: linear-gradient(135deg, var(--accent2, #7C6AF0), var(--accent));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .2s ease, background .3s ease;
}
.newsletter-form button:hover{
  filter: brightness(1.08);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-inner p{
  margin: 0;
  font-size: 12.5px;
  color: rgba(248,250,252,0.45);
}

.footer-legal{
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal a{
  color: rgba(248,250,252,0.45);
  text-decoration: none;
  font-size: 12.5px;
  transition: color .18s ease;
}
.footer-legal a:hover{
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 620px){
  .footer-top{
    grid-template-columns: 1fr;
    padding: 48px 24px 32px;
  }
  .footer-newsletter{ padding: 0 24px 32px; }
  .newsletter-card{
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-form{ width: 100%; }
  .newsletter-form input{ flex: 1; width: auto; }
  .footer-bottom-inner{
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}
