/* ==========================================================================
   PIE FOOTER — Modelo 4 columnas (Peru Ideal Expeditions)
   ========================================================================== */

.pie-footer {
  background: #f7f4ef;
  color: #4a5568;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: clamp(48px, 6vw, 72px);
}

html[data-theme="dark"] .pie-footer {
  background: #f7f4ef;
  color: #4a5568;
}

.pie-footer__grid {
  display: grid;
  gap: 36px 28px;
  padding-bottom: clamp(40px, 5vw, 56px);
}

.pie-footer__brand img {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  margin-bottom: 16px;
}

.pie-footer__slogan {
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
  font-style: italic;
  margin: 0 0 10px;
  max-width: 280px;
}

.pie-footer__hashtag {
  font-size: 12px;
  font-weight: 600;
  color: #b8860b;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.pie-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pie-footer__social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.pie-footer__social:hover {
  transform: translateY(-2px);
  background: #b8860b;
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
  color: #fff;
}

.pie-footer__legal {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px;
  line-height: 1.5;
}

.pie-footer__legal-sub {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.pie-footer__col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f2937;
  margin: 0 0 14px;
}

.pie-footer__col h4 + ul + h4 {
  margin-top: 28px;
}

.pie-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pie-footer__links li {
  margin-bottom: 7px;
}

.pie-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  transition: color 0.2s ease, padding-left 0.2s ease;
  line-height: 1.45;
}

.pie-footer__links a::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(180deg, #d4af37, #b8860b);
  opacity: 0.9;
  flex-shrink: 0;
  transition: height 0.2s ease, opacity 0.2s ease;
}

.pie-footer__links a:hover {
  color: #b8860b;
  padding-left: 4px;
}

.pie-footer__links a:hover::before {
  height: 14px;
  opacity: 1;
}

.pie-footer__contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pie-footer__contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c49b50, #b8860b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.pie-footer__contact-body {
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
}

.pie-footer__contact-body strong {
  display: block;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 2px;
}

.pie-footer__contact-body a {
  color: #4b5563;
  transition: color 0.2s ease;
}

.pie-footer__contact-body a:hover {
  color: #b8860b;
}

.pie-footer__libro {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pie-footer__libro-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f2937;
  margin: 0 0 10px;
}

.pie-footer__libro-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.pie-footer__libro-link:hover {
  opacity: 0.85;
}

.pie-footer__libro-link img {
  display: block;
  width: 120px;
  height: auto;
}

.pie-footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pie-footer__copyright {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.pie-footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pie-footer__pay {
  background: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pie-footer__pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.pie-footer__pay img {
  display: block;
  height: 20px;
  width: auto;
}

.pie-footer__pay--text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  min-width: 52px;
  text-align: center;
}

.pie-footer__pay--pago { color: #1569c7; }
.pie-footer__pay--yape { background: #6a0dad; color: #fff; border-color: transparent; }

a.pie-footer__pay {
  text-decoration: none;
  color: inherit;
}

a.pie-footer__pay:focus-visible {
  outline: 2px solid #B8860B;
  outline-offset: 2px;
}

.footer-link-libro span {
  font-size: 12px;
  color: inherit;
}

@media (min-width: 768px) {
  .pie-footer__grid {
    grid-template-columns: 1.15fr 1fr 1fr 1.2fr;
  }
}

@media (max-width: 767px) {
  .pie-footer__brand {
    text-align: center;
  }
  .pie-footer__brand img {
    margin-inline: auto;
  }
  .pie-footer__slogan,
  .pie-footer__hashtag {
    margin-inline: auto;
  }
  .pie-footer__socials {
    justify-content: center;
  }
  .pie-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .pie-footer__payments {
    justify-content: center;
  }
}
