/*
 * Pie de página (inc/footer.php, template-parts/footer/). Base común, el
 * tono en variables y después un bloque por modelo. La cabecera vive en
 * assets/css/header/.
 */

/* ----- Tono ----- */
.site-footer {
  --footer-bg: var(--shoe-ink);
  --footer-strong: #fff;
  --footer-text: #ffe5ec;
  --footer-muted: #d5bfc6;
  --footer-line: rgba(255,255,255,.13);
  --footer-line-strong: rgba(255,255,255,.18);
  --footer-tint: rgba(255,255,255,.05);
  --footer-accent: var(--shoe-accent);
  --footer-chip: var(--shoe-sand);
  --footer-chip-ink: var(--shoe-ink);
  --footer-panel: #21171b;
  overflow: hidden;
  color: var(--footer-text);
  background: var(--footer-bg);
}
.site-footer--claro {
  --footer-bg: var(--shoe-sand);
  --footer-strong: var(--shoe-ink);
  --footer-text: #44383d;
  --footer-muted: #625258;
  --footer-line: rgba(0,0,0,.12);
  --footer-line-strong: rgba(0,0,0,.22);
  --footer-tint: rgba(0,0,0,.03);
  --footer-accent: var(--shoe-clay-dark);
  --footer-chip: var(--shoe-ink);
  --footer-chip-ink: #fff;
  /* La llamada a la acción sigue oscura: sus textos son claros en los dos tonos. */
  --footer-panel: var(--shoe-ink);
}

/* ----- Base ----- */
.site-footer a { color: var(--footer-text); font-size: 13px; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: var(--footer-strong); }
.site-footer__top { display: flex; gap: 42px; padding-top: 48px; padding-bottom: 38px; }
.site-footer__intro { flex: 1.6 1 0; min-width: 0; }
/* Tantas columnas como grupos del menú más la de ayuda (--footer-cols). */
.site-footer__cols { display: grid; flex: var(--footer-cols, 2) 1 0; grid-template-columns: repeat(var(--footer-cols, 2), minmax(0, 1fr)); gap: 42px; min-width: 0; }

.site-footer .site-footer__brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--footer-strong); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: 31px; font-weight: 400; letter-spacing: -.07em; line-height: 1; text-decoration: none; }
.site-footer__brand-dot { width: 6px; height: 6px; margin-top: 14px; border-radius: 50%; background: var(--shoe-clay); }
.site-footer__brand--logo .custom-logo-link { display: block; line-height: 0; }
.site-footer__brand--logo .custom-logo { width: auto; max-width: 190px; max-height: 50px; }
/* El filtro deja el logo en blanco puro. Es opcional porque un logo ya
   pensado para fondo oscuro se estropea al aplicarlo; en el tono claro no aplica. */
.site-footer--oscuro .site-footer__brand--blanco .custom-logo { filter: brightness(0) invert(1); }
.site-footer__desc { max-width: 320px; margin: 20px 0 0; color: var(--footer-text); font-size: 14px; line-height: 1.65; }

.site-footer__title { margin: 4px 0 14px; color: var(--footer-strong); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-footer__social-title { margin: 24px 0 12px; }
.site-footer__accordion-trigger { display: block; width: auto; padding: 0; margin: 4px 0 14px; background: transparent; border: 0; color: var(--footer-strong); font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-align: left; cursor: default; pointer-events: none; }
.site-footer__accordion-icon { display: none; }
.site-footer__accordion-panel { display: block; }
.site-footer__accordion-inner { padding-bottom: 0; }
.site-footer__menu { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.site-footer__menu a { line-height: 1.35; display: inline-block; }
.site-footer__inline { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; }

.site-footer__contact p { margin: 6px 0; color: var(--footer-muted); font-size: 13px; line-height: 1.5; }
.site-footer .site-footer__email { display: inline-flex; align-items: center; gap: 10px; color: var(--footer-strong); font-size: 16px; }
.site-footer .site-footer__email:hover { color: var(--footer-accent); }
.site-footer__email span { font-size: 16px; font-weight: 400; line-height: 0; }

.site-footer__socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.site-footer__social-title + .site-footer__socials { margin-top: 0; }
.site-footer .site-footer__socials a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--footer-text); border: 1px solid var(--footer-line-strong); transition: color .2s ease, background .2s ease, border-color .2s ease; }
.site-footer .site-footer__socials a:hover { color: var(--footer-chip-ink); background: var(--footer-chip); border-color: var(--footer-chip); }

.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--footer-line); color: var(--footer-muted); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
/* Franja de derechos a todo el ancho: igual que el pie, un tono distinto u
   otro color (con texto claro u oscuro según el fondo). */
.site-footer__bar { background: var(--footer-bar-bg, transparent); }
.site-footer--oscuro .site-footer__bar--tono { --footer-bar-bg: color-mix(in srgb, var(--footer-bg) 92%, #fff); }
.site-footer--claro .site-footer__bar--tono { --footer-bar-bg: color-mix(in srgb, var(--footer-bg) 94%, #000); }
.site-footer__bar:not(.site-footer__bar--igual) .site-footer__bottom { border-top: 0; }
.site-footer__bar.is-dark { --footer-muted: rgba(255,255,255,.78); --footer-strong: #fff; --footer-text: rgba(255,255,255,.85); --footer-line: rgba(255,255,255,.2); }
.site-footer__bar.is-light { --footer-muted: #4d4741; --footer-strong: var(--shoe-ink); --footer-text: #4d4741; --footer-line: rgba(0,0,0,.15); }
.site-footer__author { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }
.site-footer .site-footer__author a { color: inherit; font-size: inherit; font-weight: inherit; text-decoration: none; }
.site-footer .site-footer__author a:hover { color: var(--footer-strong); }

/* ----- Libro de Reclamaciones y medios de pago ----- */
/* Las variables caen a los colores oscuros fuera del pie (variante flotante). */
.site-footer__legal { margin-top: 30px; }
.cite-claims { display: inline-flex; align-items: center; gap: 12px; padding: 11px 15px; color: var(--footer-text, #d5cdc5) !important; border: 1px solid var(--footer-line-strong, rgba(255,255,255,.18)); font-size: 11px !important; font-weight: 600; letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.cite-claims:hover { color: var(--footer-chip-ink, var(--shoe-ink)) !important; background: var(--footer-chip, #f3e3d7); border-color: var(--footer-chip, #f3e3d7); }
.cite-claims__mark { flex: 0 0 auto; width: 40px; height: 26px; }
/* Tan ancho como su palabra más larga: con 11ch «RECLAMACIONES» se salía del recuadro. */
.cite-claims__text { width: min-content; }
.cite-claims--imagen { padding: 0; border: 0; background: transparent !important; }
.cite-claims--imagen:hover { background: transparent !important; opacity: .88; }
.cite-claims--imagen img { display: block; width: auto; max-width: 175px; height: auto; border-radius: 4px; }
.cite-claims--texto { text-decoration: underline; text-underline-offset: 3px; }

.cite-payments { margin-top: 22px; }
.cite-payments .site-footer__title { margin: 0 0 10px; color: var(--footer-text); font-weight: 700; letter-spacing: .13em; }
.cite-payments__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cite-payments__icon { display: block; width: 48px; height: 28px; padding: 0; color: var(--footer-text, #cfc8c0); background: var(--footer-tint, rgba(255,255,255,.05)); border: 1px solid var(--footer-line-strong, rgba(255,255,255,.16)); border-radius: 4px; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.cite-payments__icon:hover { color: var(--footer-strong, #fff); border-color: var(--footer-muted, rgba(255,255,255,.28)); }

/* ----- Modelo Centrado ----- */
.site-footer--centrado .site-footer__top { flex-direction: column; align-items: center; gap: 0; padding-top: 48px; padding-bottom: 38px; text-align: center; }
.site-footer--centrado .site-footer__desc { max-width: 460px; margin-top: 18px; }
.site-footer--centrado .site-footer__nav { margin-top: 30px; }
.site-footer--centrado .site-footer__inline { justify-content: center; }
.site-footer--centrado .site-footer__socials { justify-content: center; margin-top: 28px; }
.site-footer--centrado .site-footer__contact { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 20px; margin-top: 28px; }
.site-footer--centrado .site-footer__contact p { margin: 0; }
.site-footer--centrado .site-footer__legal { display: flex; flex-direction: column; align-items: center; margin-top: 28px; }
.site-footer--centrado .cite-payments__row { justify-content: center; }
.site-footer--centrado .site-footer__bottom { flex-wrap: wrap; justify-content: center; column-gap: 32px; }

/* ----- Modelo Compacto ----- */
.site-footer--compacto .site-footer__top { align-items: center; gap: 32px; padding-top: 34px; padding-bottom: 30px; }
.site-footer--compacto .site-footer__brand { flex: 0 0 auto; }
.site-footer--compacto .site-footer__brand--logo .custom-logo { max-height: 42px; }
.site-footer--compacto .site-footer__nav { flex: 1 1 auto; min-width: 0; }
.site-footer--compacto .site-footer__inline { justify-content: center; }
.site-footer--compacto .site-footer__socials { flex: 0 0 auto; margin-top: 0; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--footer-line); }
.site-footer--compacto .site-footer__contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.site-footer--compacto .site-footer__contact p { margin: 0; font-size: 12px; }
.site-footer--compacto .site-footer__email { font-size: 14px; }
.site-footer--compacto .site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 0; }
.site-footer--compacto .cite-payments { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.site-footer--compacto .cite-payments .site-footer__title { margin: 0; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .site-footer--clasico .site-footer__top { flex-direction: column; gap: 40px; }
  .site-footer--compacto .site-footer__top { flex-wrap: wrap; justify-content: space-between; row-gap: 22px; }
  .site-footer--compacto .site-footer__nav { flex-basis: 100%; order: 3; }
  .site-footer--compacto .site-footer__inline { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .site-footer__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 34px;
  }
  .site-footer .site-footer__brand {
    justify-content: center;
    margin-inline: auto;
    text-align: center;
  }
  .site-footer__brand--logo .custom-logo-link {
    display: inline-block;
    text-align: center;
  }
  .site-footer__brand--logo .custom-logo {
    margin-inline: auto;
  }
  .site-footer__desc {
    max-width: 380px;
    margin: 16px auto 0;
    text-align: center;
  }
  .site-footer__social-title {
    text-align: center;
    margin: 24px 0 12px;
  }
  .site-footer__socials {
    justify-content: center;
  }

  .site-footer--accordion-mobile .site-footer__top { gap: 0; padding-top: 40px; padding-bottom: 0; }
  .site-footer--accordion-mobile .site-footer__intro { margin-bottom: 34px; }
  .site-footer--accordion-mobile .site-footer__cols { grid-template-columns: 1fr; gap: 0; }
  .site-footer--accordion-mobile .site-footer__col { margin: 0; border-top: 1px solid var(--footer-line); }
  .site-footer--accordion-mobile .site-footer__col:last-child { border-bottom: 1px solid var(--footer-line); }
  .site-footer--accordion-mobile .site-footer__accordion-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 16px 0; margin: 0 !important; cursor: pointer; pointer-events: auto; font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
  .site-footer--accordion-mobile .site-footer__accordion-trigger:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }
  .site-footer--accordion-mobile .site-footer__accordion-icon { display: block; flex-shrink: 0; width: 16px; height: 16px; color: var(--footer-text); transition: transform .25s ease, color .2s ease; }
  .site-footer--accordion-mobile .site-footer__col.is-open .site-footer__accordion-icon { transform: rotate(180deg); color: var(--footer-strong); }
  .site-footer--accordion-mobile .site-footer__accordion-panel { display: none; margin: 0; padding: 0; }
  .site-footer--accordion-mobile .site-footer__col.is-open .site-footer__accordion-panel { display: block; }
  .site-footer--accordion-mobile .site-footer__accordion-inner { padding: 4px 0 20px; }
  .site-footer--accordion-mobile .site-footer__bottom { border-top: none; padding-top: 22px; padding-bottom: 24px; }

  .site-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    padding-top: 22px;
    padding-bottom: 24px;
  }
  .site-footer__bottom span,
  .site-footer__bottom .site-footer__author {
    display: block;
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 680px) {
  .site-footer__top { padding-top: 36px; padding-bottom: 24px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__legal { margin-top: 24px; }
  .site-footer__bottom { display: grid; gap: 8px; justify-items: center; text-align: center; }
  .site-footer--centrado .site-footer__bottom { justify-items: center; text-align: center; }
  .site-footer--compacto .site-footer__meta { flex-direction: column; align-items: flex-start; }
}
