/**
 * templates/child-theme-base/css/footer-style.css — Wizard-System v0.7.0
 *
 * Estilos del footer wizard. Scope contextual: body .wizard-site-footer.
 * Carga después de style.css (depende de wizard-child-css).
 *
 * Clases emitidas por inc/partials/footer.php:
 *   .wizard-site-footer, .wizard-site-footer-inner
 *   .wizard-footer-intro, .wizard-footer-site-name, .wizard-footer-description
 *   .wizard-footer-columns, .wizard-footer-column, .wizard-footer-column-title
 *   .wizard-footer-column-items, .wizard-nav-items, .wizard-nav-item
 *   .wizard-footer-nav, .wizard-footer-social, .wizard-social-item
 *   .wizard-social-link, .wizard-social-icon
 *   .wizard-footer-bottom, .wizard-footer-copyright, .wizard-footer-made-with
 */


/* ===========================================================================
   FOOTER CONTENEDOR
   =========================================================================== */

body .wizard-site-footer {
  background: var(--footer-bg, var(--color-bg, #FFFFFF));
  color: var(--footer-text, var(--color-ink, #1A1A1A));
  padding: clamp(3rem, 7vw, 5rem) 0 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: var(--footer-border-width, 3px) solid var(--footer-border, var(--color-accent, #E94B3C));
  font-family: var(--font-body, system-ui, sans-serif) !important;
}

body .wizard-site-footer * {
  color: inherit;
}

body .wizard-site-footer-inner {
  max-width: var(--layout-max-width, 1200px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}


/* ===========================================================================
   INTRO (site.name + descripción)
   =========================================================================== */

body .wizard-footer-intro {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border, #E5E5E5);
}

body .wizard-footer-site-name {
  font-family: var(--font-headings, serif) !important;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: inherit;
}

body .wizard-footer-description {
  font-size: 0.9375rem;
  opacity: 0.75;
  margin: 0;
  max-width: 48ch;
  line-height: 1.6;
}


/* ===========================================================================
   COLUMNAS
   =========================================================================== */

body .wizard-footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  body .wizard-footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  body .wizard-footer-columns { grid-template-columns: repeat(4, 1fr); }
}

body .wizard-footer-column {}

body .wizard-footer-column-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.6;
  margin: 0 0 1rem;
  color: inherit;
}

body .wizard-footer-column-items {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body .wizard-footer-column-items li {
  list-style: none;
}

body .wizard-footer-column-items li a,
body .wizard-footer-column-items .wizard-nav-item a {
  color: var(--footer-link, var(--color-ink-muted, #666666)) !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
}

body .wizard-footer-column-items li a:hover,
body .wizard-footer-column-items .wizard-nav-item a:hover {
  color: var(--color-accent, #E94B3C) !important;
}


/* ===========================================================================
   MENÚ SIMPLE (sin columnas)
   =========================================================================== */

body .wizard-footer-nav {
  margin-bottom: 2rem;
}

body .wizard-footer-nav .wizard-nav-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0; margin: 0;
}

body .wizard-footer-nav .wizard-nav-item a {
  color: inherit !important;
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.75;
  padding: 0.25rem 0.5rem;
  transition: opacity 0.2s ease;
}

body .wizard-footer-nav .wizard-nav-item a:hover {
  color: var(--color-accent, #E94B3C) !important;
  opacity: 1;
}


/* ===========================================================================
   RRSS
   =========================================================================== */

body .wizard-footer-social {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0; margin: 0 0 2rem;
}

body .wizard-social-item {
  list-style: none;
  margin: 0;
}

body .wizard-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border, #E5E5E5);
  color: var(--color-ink-muted, #666666) !important;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body .wizard-social-link:hover {
  color: var(--color-bg, #FFFFFF) !important;
  background: var(--color-accent, #E94B3C);
  border-color: var(--color-accent, #E94B3C);
}

body .wizard-social-icon {
  width: 18px; height: 18px;
  display: block;
  fill: currentColor;
}


/* ===========================================================================
   BOTTOM BAR (copyright + made_with)
   =========================================================================== */

body .wizard-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  margin: 0 calc(-1 * clamp(1rem, 3vw, 2rem));
  border-top: 1px solid var(--color-border, #E5E5E5);
  font-size: 0.8125rem;
  opacity: 0.65;
}

body .wizard-footer-copyright {
  margin: 0;
  white-space: nowrap;
}

body .wizard-footer-made-with {
  margin: 0;
  text-align: right;
}

@media (max-width: 480px) {
  body .wizard-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  body .wizard-footer-made-with {
    text-align: left;
  }
}
