/* ===================================================================
   pago.css — Cumplimiento de pasarela (Visa/MC + 3D Secure)
   Tira de pago del footer + páginas legales + checkout + recibo.
   Reutiliza variables y clases de style.css (--blue, --navy, .container, .btn…).
   =================================================================== */

/* ---------- Tira "Pago seguro" en el footer (todas las páginas) ---------- */
.footer-pay {
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
}
.fpay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.fpay-policies { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fpay-policies a {
  color: #cfe0ff; font-size: .86rem; text-decoration: none; opacity: .9;
}
.fpay-policies a:hover { color: #fff; text-decoration: underline; }
.fpay-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fpay-label {
  color: #9db6e0; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-right: 4px;
}
.fpay-logos img {
  height: 30px; width: auto; display: block;
  background: #fff; border-radius: 6px; padding: 3px 6px;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5);
}
.fpay-logos img.is-3ds { height: 30px; }

/* ---------- Tira de pago reutilizable en cuerpo (checkout, seguridad…) ---------- */
.pay-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg-soft);
}
.pay-strip .pay-label {
  font-weight: 700; color: var(--navy); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.pay-strip img { height: 34px; width: auto; display: block; }

/* ---------- Páginas legales (políticas) ---------- */
.legal-section { padding: 48px 0 70px; }
.legal-wrap { max-width: 880px; margin: 0 auto; }
.legal-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 34px clamp(20px, 4vw, 44px);
}
.legal-card h2 {
  font-size: 1.25rem; margin: 26px 0 10px; color: var(--navy);
  padding-bottom: 8px; border-bottom: 2px solid var(--bg-soft);
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 1.02rem; margin: 18px 0 6px; color: var(--ink); }
.legal-card p, .legal-card li { color: #33456a; font-size: .96rem; }
.legal-card p { margin: 0 0 12px; }
.legal-card ul, .legal-card ol { margin: 0 0 14px; padding-left: 22px; }
.legal-card li { margin: 0 0 7px; }
.legal-card a { color: var(--blue); }
.legal-updated { color: var(--muted); font-size: .85rem; margin-bottom: 22px; }
.legal-note {
  background: #fff8e6; border: 1px solid #f5e2a8; border-left: 4px solid #e3a008;
  color: #6b4e00; border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: .9rem;
}
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 24px;
  padding: 14px 16px; background: var(--bg-soft); border-radius: 12px;
}
.legal-toc a { color: var(--navy); font-weight: 600; font-size: .88rem; text-decoration: none; }
.legal-toc a:hover { color: var(--blue); }
.legal-contactbox {
  margin-top: 26px; padding: 18px 20px; border-radius: 12px;
  background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff;
}
.legal-contactbox h3 { color: #fff; margin: 0 0 6px; }
.legal-contactbox a { color: #9fd2ff; }

/* ---------- Sellos 3D Secure destacados ---------- */
.secure-badges {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin: 18px 0 6px;
}
.secure-badges img { height: 42px; width: auto; }

/* ---------- Checkout ---------- */
.checkout-section { padding: 40px 0 70px; }
.checkout-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start;
}
.co-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px clamp(18px, 3vw, 30px);
}
.co-card h2 { font-size: 1.1rem; margin: 0 0 16px; color: var(--navy); }
.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.co-field input, .co-field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.co-field input:focus, .co-field select:focus { outline: none; border-color: var(--blue); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-cardline { display: flex; align-items: center; gap: 8px; }
.co-cardline img { height: 26px; }
.co-secure {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 16px;
  color: #16794a; font-size: .86rem; font-weight: 600;
}
.co-secure i { color: #1aa564; }
.co-summary-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.co-summary-row.total { border-bottom: none; font-weight: 800; color: var(--navy); font-size: 1.1rem; padding-top: 14px; }
.co-policies { font-size: .82rem; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.co-policies a { color: var(--blue); }
.co-disabled-note {
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--muted); font-size: .85rem; margin-top: 12px;
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Recibo / comprobante ---------- */
.receipt-section { padding: 40px 0 70px; background: var(--bg-soft); }
.receipt {
  max-width: 560px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.receipt-top {
  background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff;
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.receipt-top img { height: 36px; }
.receipt-top .r-status {
  background: #1aa564; color: #fff; font-weight: 700; font-size: .78rem;
  padding: 5px 12px; border-radius: 999px;
}
.receipt-body { padding: 24px 26px; }
.receipt-amount { text-align: center; margin: 4px 0 20px; }
.receipt-amount .r-amt { font-size: 2rem; font-weight: 800; color: var(--navy); font-family: 'Poppins', sans-serif; }
.receipt-amount .r-cap { color: var(--muted); font-size: .85rem; }
.r-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.r-line span:first-child { color: var(--muted); }
.r-line span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.receipt-items { margin: 16px 0; }
.receipt-foot { padding: 18px 26px; background: var(--bg-soft); font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.6; }
.receipt-foot a { color: var(--blue); }
.receipt-3ds { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.receipt-3ds img { height: 26px; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .fpay-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .co-row { grid-template-columns: 1fr; }
  .fpay-logos img { height: 26px; }
}
