/* ============================================================
   footer.css — plasticalomas-theme
   Footer editorial 4 columnas + barra legal
   Tokens: design-system.css
   ============================================================ */

/* ── Variables locales ─────────────────────────────────────── */
.plx-footer {
  --footer-bg:        #0E1E2A;
  --footer-text:      rgba(255,255,255,.65);
  --footer-text-dim:  rgba(255,255,255,.35);
  --footer-title:     #ffffff;
  --footer-gold:      #8B6F47;
  --footer-border:    rgba(255,255,255,.10);
  --footer-gap:       clamp(2.5rem, 5vw, 4rem);
  --footer-pad-v:     clamp(3.5rem, 7vw, 6rem);
}

.plx-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: .875rem;
  line-height: 1.7;
}

/* ── Grid interior ─────────────────────────────────────────── */
.plx-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--footer-gap);
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--footer-pad-v) clamp(1.5rem, 5vw, 3rem);
  border-bottom: 1px solid var(--footer-border);
}

/* ── Columna marca ─────────────────────────────────────────── */
.plx-footer__logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.plx-footer__logo {
  display: block;
  height: auto;
  max-width: 160px;
  opacity: .92;
}

.plx-footer__logo-text {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--footer-title);
  letter-spacing: .02em;
}

.plx-footer__logo-text em {
  font-style: italic;
  color: var(--footer-gold);
}

.plx-footer__tagline {
  margin: 0 0 1.75rem;
  font-size: .8125rem;
  color: var(--footer-text);
  max-width: 28ch;
  line-height: 1.65;
}

/* ── Redes sociales ────────────────────────────────────────── */
.plx-footer__social {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.plx-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--footer-border);
  border-radius: 50%;
  color: var(--footer-text);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
  overflow: hidden;
}

.plx-footer__social-link svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
  display: block;
}

.plx-footer__social-link:hover,
.plx-footer__social-link:focus-visible {
  border-color: var(--footer-gold);
  color: var(--footer-gold);
  background: rgba(139,111,71,.08);
  outline: none;
}

.plx-footer__social-link--wa:hover,
.plx-footer__social-link--wa:focus-visible {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37,211,102,.08);
}

/* ── Títulos de columna ────────────────────────────────────── */
.plx-footer__col-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--footer-text-dim);
  margin: 0 0 1.25rem;
}

/* ── Listas de nav ─────────────────────────────────────────── */
.plx-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.plx-footer__nav-list a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.plx-footer__nav-list a::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--footer-gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}

.plx-footer__nav-list a:hover,
.plx-footer__nav-list a:focus-visible {
  color: #ffffff;
  outline: none;
}

.plx-footer__nav-list a:hover::before,
.plx-footer__nav-list a:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

/* ── Columna contacto ──────────────────────────────────────── */
.plx-footer__address {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-style: normal;
  margin-bottom: 1.5rem;
}

.plx-footer__address-line {
  color: var(--footer-text);
  font-size: .875rem;
}

.plx-footer__address-line--hospital {
  color: var(--footer-title);
  font-weight: 500;
}

/* Botón WhatsApp ─────────────────────────────────────────────*/
.plx-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border: 1px solid var(--footer-gold);
  border-radius: 2px;
  color: var(--footer-title);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, color .2s;
  margin-bottom: 1.5rem;
}

.plx-footer__cta svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

.plx-footer__cta:hover,
.plx-footer__cta:focus-visible {
  background: var(--footer-gold);
  color: #ffffff;
  outline: none;
}

/* COFEPRIS ───────────────────────────────────────────────────*/
.plx-footer__cofepris {
  margin: 0;
  font-size: .6875rem;
  color: var(--footer-text-dim);
  line-height: 1.5;
}

.plx-footer__cofepris span {
  display: block;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}

/* ── Barra legal ───────────────────────────────────────────── */
.plx-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem clamp(1.5rem, 5vw, 3rem);
}

.plx-footer__legal-copy {
  margin: 0;
  font-size: .75rem;
  color: var(--footer-text-dim);
}

.plx-footer__legal-links {
  display: flex;
  gap: 1.5rem;
}

.plx-footer__legal-links a {
  font-size: .75rem;
  color: var(--footer-text-dim);
  text-decoration: none;
  transition: color .2s;
}

.plx-footer__legal-links a:hover,
.plx-footer__legal-links a:focus-visible {
  color: var(--footer-text);
  outline: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .plx-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem clamp(1.5rem, 4vw, 3rem);
  }

  .plx-footer__col--brand {
    grid-column: 1 / -1;
  }

  .plx-footer__tagline {
    max-width: 48ch;
  }
}

@media (max-width: 600px) {
  .plx-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .plx-footer__col--brand {
    grid-column: auto;
  }

  .plx-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}
