/*
 * footer.css — Smart Catering Child · Fase 1
 *
 * Replica del footer del prototipo + credito Zanovix.
 */

@layer components {

  body.scc-fase0 .sc-footer {
    background: var(--color-dark);
    color: #d8d6cc;
    padding: var(--space-20) 0 var(--space-8);
    font-family: var(--font-sans);
  }

  body.scc-fase0 .sc-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }

  body.scc-fase0 .sc-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-16);
  }
  @media (min-width: 768px) {
    body.scc-fase0 .sc-footer__grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  body.scc-fase0 .sc-footer__brand img {
    height: 56px;
    width: auto;
    display: block;
    margin-bottom: var(--space-4);
  }
  body.scc-fase0 .sc-footer__brand p {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    opacity: 0.8;
    max-width: 28ch;
    margin: 0;
  }

  body.scc-fase0 .sc-footer h4,
  body.scc-fase0 .sc-footer .sc-footer__col-heading {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: var(--fw-medium);
    margin: 0 0 var(--space-5);
  }

  body.scc-fase0 .sc-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: var(--fs-sm);
  }

  body.scc-fase0 .sc-footer a {
    color: #d8d6cc;
    text-decoration: none;
    transition: color 0.2s;
  }
  body.scc-fase0 .sc-footer a:hover { color: var(--color-gold); }

  body.scc-fase0 .sc-footer__contact { opacity: 0.9; }

  body.scc-fase0 .sc-footer__lang {
    margin-top: var(--space-6);
    display: flex;
    gap: var(--space-3);
    font-size: var(--fs-xs);
    align-items: center;
  }
  body.scc-fase0 .sc-footer__lang .label { opacity: 0.6; }
  body.scc-fase0 .sc-footer__lang .sep { opacity: 0.4; }
  body.scc-fase0 .sc-footer__lang a {
    color: inherit;
    opacity: 0.6;
  }
  body.scc-fase0 .sc-footer__lang a.is-current { opacity: 1; color: #fff; }
  body.scc-fase0 .sc-footer__lang a:hover { color: var(--color-gold); opacity: 1; }

  body.scc-fase0 .sc-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    font-size: var(--fs-xs);
    opacity: 0.7;
  }
  @media (min-width: 768px) {
    body.scc-fase0 .sc-footer__bottom {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  }

  body.scc-fase0 .sc-footer__social {
    display: flex;
    gap: var(--space-4);
  }

  body.scc-fase0 .sc-footer__credit {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: var(--fs-xs);
    opacity: 0.55;
    letter-spacing: 0.06em;
  }
  body.scc-fase0 .sc-footer__credit a {
    color: inherit;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
  }
  body.scc-fase0 .sc-footer__credit a:hover {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
  }

}

/* ──────────────────────────────────────────────────────────────────────
 * UNLAYERED OVERRIDES — Fase 1 fix 2026-06-03
 *
 * GeneratePress aplica `h1..h6 { font-family: Merriweather; color: #333 }`
 * sin envolver en @layer → vence a cualquier @layer components nuestro.
 * Estas reglas, también unlayered, lo derrotan por specificity (4 selectores).
 * También fija el logo del footer porque GP `img { height:auto }` colapsa
 * la altura cuando interactúa con lazyload de LiteSpeed.
 * ────────────────────────────────────────────────────────────────────── */
body.scc-fase0 footer.sc-footer h1,
body.scc-fase0 footer.sc-footer h2,
body.scc-fase0 footer.sc-footer h3,
body.scc-fase0 footer.sc-footer h4,
body.scc-fase0 footer.sc-footer h5,
body.scc-fase0 footer.sc-footer h6 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0 0 var(--space-5);
}

body.scc-fase0 footer.sc-footer .sc-footer__brand img {
  height: 56px;
  width: auto;
  max-width: none;
  display: block;
  margin-bottom: var(--space-4);
}

