/* ============================================================
   FOOTER — Prensa Inteligente
   Namespaced under .pif to avoid any collision with the legacy
   .footer/.footer-col rules still present in styles.css, home.css and
   metodologia.css (duplicated 3x with no single source of truth — this
   file replaces all of that for the shared footer partial only).
   Loaded last so it always wins regardless of link order.
   ============================================================ */

.pif {
  background: #0b0b0b;
  color: #ffffff;
  padding: 56px 48px 0;
}

.pif a {
  text-decoration: none;
}

/* ===== Top row — content/discovery links ===== */
.pif-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.pif-col h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  color: #ffffff;
}

.pif-col {
  display: flex;
  flex-direction: column;
}

/* Países column is doubled (spans 2 of the 5 tracks) to fit the growing
   list of countries without running out of vertical room; the links inside
   wrap into 2 sub-columns instead of one long list. */
.pif-col-countries {
  grid-column: span 2;
}

.pif-countries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}

.pif-col a,
.pif-soon {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
}

.pif-col a:hover {
  color: #facc15;
}

.pif-soon {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
}

.pif-soon em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0b0b0b;
  background: #facc15;
  padding: 2px 6px;
  border-radius: 20px;
}

.pif-divider {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Lower row — brand + quienes somos + tagline + ayuda =====
   Same 5-column / 24px-gap / 1280px-max-width grid as .pif-links above,
   so .pif-col-help lands in column 5 directly under "Mi cuenta". */
.pif-lower {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 0;
}

.pif-brand {
  grid-column: 1;
  display: flex;
  align-items: center;
}

.pif-logo {
  height: 140px;
  width: auto;
  display: block;
}

.pif-col-company {
  grid-column: 2;
  text-align: left;
}

.pif-tagline-col {
  grid-column: 3 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pif-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 420px;
  margin: 0;
}

.pif-col-help {
  grid-column: 5;
  text-align: left;
}

/* ===== Bottom bar ===== */
.pif-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.pif-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.pif-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* App store / Google Play badges — not live yet (aria-disabled), so styled
   to read clearly as "coming soon" rather than a dead link: dimmed, no
   pointer cursor, no hover state. */
.pif-badges {
  display: flex;
  gap: 10px;
}

.pif-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}

.pif-badge-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pif-badge-text {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
}

.pif-badge-text em {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== Social icons — same circular-badge language as the sidebar ===== */
.pif-social {
  display: flex;
  gap: 10px;
}

.pif .social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pif .social-icon svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  transition: fill 0.15s ease;
  display: block;
}

.pif .social-icon:hover {
  background: #facc15;
  border-color: #facc15;
  transform: translateY(-2px);
}

.pif .social-icon:hover svg {
  fill: #0b0b0b;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .pif-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .pif-lower {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .pif-brand,
  .pif-col-company,
  .pif-tagline-col,
  .pif-col-help {
    grid-column: auto;
  }

  .pif-tagline {
    text-align: center;
  }

  .pif-col-company,
  .pif-col-help {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .pif {
    padding: 40px 24px 0;
  }

  .pif-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .pif-lower {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .pif-tagline {
    max-width: 100%;
    text-align: center;
  }

  .pif-col-company,
  .pif-col-help {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .pif-links {
    grid-template-columns: 1fr;
  }

  .pif-col-countries {
    grid-column: auto;
  }

  .pif-countries-grid {
    grid-template-columns: 1fr;
  }

  .pif-brand {
    flex-direction: column;
    align-items: center;
  }

  .pif-logo {
    height: 80px;
  }

  .pif-tagline {
    margin: 0;
    text-align: center;
  }

  .pif-col-company,
  .pif-col-help {
    margin-left: 0;
    text-align: center;
  }

  .pif-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
