/* Fundación Hogares Claret — vista de donación */
:root {
  --fhc-red: #c21f16;
  --fhc-red-dark: #9f1810;
  --fhc-red-soft: #fef2f2;
  --fhc-navy: #0f172a;
  --fhc-ink: #1e293b;
  --fhc-muted: #64748b;
  --fhc-line: #e2e8f0;
  --fhc-bg: #f1f5f9;
  --fhc-white: #ffffff;
  --fhc-radius: 14px;
  --fhc-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body.fhc-donation-page {
  margin: 0 !important;
  background: var(--fhc-bg) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fhc-ink);
  -webkit-font-smoothing: antialiased;
}

body.fhc-donation-page .preloader,
body.fhc-donation-page header.main-header,
body.fhc-donation-page .page-header,
body.fhc-donation-page footer.main-footer,
body.fhc-donation-page .elementor-location-header,
body.fhc-donation-page .elementor-location-footer {
  display: none !important;
}

.fhc-don *,
.fhc-don *::before,
.fhc-don *::after { box-sizing: border-box; }

.fhc-don {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fhc-don__top {
  background: var(--fhc-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
}

.fhc-don__top-in {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.fhc-don__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.fhc-don__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}
.fhc-don__brand strong {
  display: block;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  font-size: 12px;
}
.fhc-don__brand span span,
.fhc-don__brand > span {
  opacity: 0.92;
}

.fhc-don__back {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.fhc-don__back:hover { color: #fff; }

.fhc-don__main {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 28px 0 48px;
  flex: 1;
}

.fhc-don__intro {
  margin-bottom: 22px;
  animation: fhcDonIn 0.45s ease both;
}
.fhc-don__kicker {
  display: inline-block;
  color: var(--fhc-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fhc-don__intro h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--fhc-navy);
  letter-spacing: -0.02em;
}
.fhc-don__intro p {
  margin: 0;
  max-width: 40rem;
  color: var(--fhc-muted);
  font-size: 15px;
  line-height: 1.55;
}

.fhc-don__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
  animation: fhcDonIn 0.55s ease 0.08s both;
}

.fhc-don__card,
.fhc-don__right .fhc-don__total,
.fhc-don__steps {
  background: var(--fhc-white);
  border-radius: var(--fhc-radius);
  box-shadow: var(--fhc-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.fhc-don__amounts {
  padding: 22px 20px 18px;
}

.fhc-don__amounts h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fhc-navy);
}

.fhc-don__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fhc-don__amt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1.5px solid var(--fhc-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
  background: #fff;
  user-select: none;
}
.fhc-don__amt input { position: absolute; opacity: 0; pointer-events: none; }
.fhc-don__amt:hover {
  border-color: #fecaca;
  transform: translateY(-1px);
}
.fhc-don__amt.is-selected {
  border-color: var(--fhc-red);
  background: var(--fhc-red-soft);
  box-shadow: 0 0 0 1px rgba(194, 31, 22, 0.15);
}

.fhc-don__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  flex-shrink: 0;
  position: relative;
}
.fhc-don__amt.is-selected .fhc-don__radio,
.fhc-don__pay.is-selected .fhc-don__radio {
  border-color: var(--fhc-red);
}
.fhc-don__amt.is-selected .fhc-don__radio::after,
.fhc-don__pay.is-selected .fhc-don__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fhc-red);
}

.fhc-don__amt-val {
  font-weight: 800;
  font-size: 15px;
  color: var(--fhc-navy);
}

.fhc-don__custom {
  margin-top: 14px;
}
.fhc-don__custom label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fhc-muted);
  margin-bottom: 6px;
}
.fhc-don__money {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--fhc-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.fhc-don__money span {
  padding: 0 12px;
  font-weight: 800;
  color: var(--fhc-muted);
  background: #f8fafc;
  border-right: 1px solid var(--fhc-line);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.fhc-don__money input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  color: var(--fhc-navy);
  min-width: 0;
}

.fhc-don__hint {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 13px;
  line-height: 1.45;
}
.fhc-don__hint i {
  color: #2563eb;
  margin-top: 2px;
}

.fhc-don__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.fhc-don__total span {
  font-size: 14px;
  font-weight: 600;
  color: var(--fhc-muted);
}
.fhc-don__total strong {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--fhc-navy);
  letter-spacing: -0.02em;
}
.fhc-don__fx {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--fhc-muted);
  padding: 0 4px;
}

.fhc-don__steps {
  overflow: hidden;
}

.fhc-don__step + .fhc-don__step {
  border-top: 1px solid var(--fhc-line);
}

.fhc-don__step-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  color: var(--fhc-red);
  text-align: left;
  font-family: inherit;
}
.fhc-don__step-head i {
  color: var(--fhc-red);
  transition: transform 0.25s ease;
}
.fhc-don__step.is-open .fhc-don__step-head i {
  transform: rotate(180deg);
}

.fhc-don__step-body {
  padding: 0 20px 20px;
  animation: fhcDonIn 0.3s ease;
}

.fhc-don__lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--fhc-muted);
}

.fhc-don__field {
  display: block;
  margin-bottom: 12px;
}
.fhc-don__field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fhc-ink);
  margin-bottom: 5px;
}
.fhc-don__field em {
  color: var(--fhc-red);
  font-style: normal;
}
.fhc-don__field input,
.fhc-don__field select {
  width: 100%;
  border: 1.5px solid var(--fhc-line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--fhc-ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fhc-don__field input:focus,
.fhc-don__field select:focus {
  border-color: var(--fhc-red);
  box-shadow: 0 0 0 3px rgba(194, 31, 22, 0.12);
}

.fhc-don__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fhc-don__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 16px;
  font-size: 13.5px;
  color: var(--fhc-ink);
}
.fhc-don__check .fhc-privacy-check__label {
  cursor: pointer;
}
.fhc-don__check input {
  margin-top: 3px;
  accent-color: var(--fhc-red);
}
.fhc-don__check a {
  color: #1d4ed8;
  font-weight: 700;
}

.fhc-don__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.fhc-don__btn--primary {
  background: var(--fhc-red);
  color: #fff;
  float: right;
}
.fhc-don__btn--primary:hover {
  background: var(--fhc-red-dark);
  transform: translateY(-1px);
}
.fhc-don__btn--pay {
  width: 100%;
  background: var(--fhc-navy);
  color: #fff;
  padding: 15px 22px;
  font-size: 16px;
  margin-top: 8px;
}
.fhc-don__btn--pay:hover {
  background: #1e293b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}
.fhc-don__btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.fhc-don__paylist {
  border: 1.5px solid var(--fhc-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.fhc-don__pay {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--fhc-line);
  background: #fff;
  transition: background 0.15s;
}
.fhc-don__pay:last-child { border-bottom: 0; }
.fhc-don__pay input { position: absolute; opacity: 0; pointer-events: none; }
.fhc-don__pay.is-selected { background: var(--fhc-red-soft); }
.fhc-don__pay.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

.fhc-don__pay-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #003087;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.fhc-don__pay-icon--epayco {
  background: #ee3f24;
  font-weight: 900;
  font-size: 16px;
}
.fhc-don__pay-icon--wompi {
  background: #2d1b69;
  font-weight: 900;
  font-size: 15px;
}
.fhc-don__pay-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fhc-don__pay-text strong {
  font-size: 14.5px;
  color: var(--fhc-navy);
}
.fhc-don__pay-text small {
  font-size: 12px;
  color: var(--fhc-muted);
}
.fhc-don__badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e2e8f0;
  color: #475569;
  padding: 4px 8px;
  border-radius: 999px;
}

.fhc-don__error {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13.5px;
  font-weight: 600;
}

.fhc-don__foot {
  text-align: center;
  padding: 18px 16px 28px;
  color: var(--fhc-muted);
  font-size: 13px;
}
.fhc-don__foot p { margin: 0; }
.fhc-don__foot i { color: var(--fhc-red); }

/* Checkout donación: menos “tienda” */
body.fhc-donation-checkout .woocommerce-form-coupon-toggle,
body.fhc-donation-checkout .checkout_coupon,
body.fhc-donation-checkout .woocommerce-shipping-fields {
  display: none !important;
}

/* Pedido recibido / comprobante de pago */
body.fhc-order-received .site-main,
body.fhc-order-received .elementor-location-single,
body.fhc-order-received .woocommerce {
  background: #f1f5f9;
}
body.fhc-order-received .woocommerce-order.fhc-receipt {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fhc-receipt__hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #991b1b 100%);
  color: #fff;
  padding: 40px 20px 48px;
}
.fhc-receipt__hero-in {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.fhc-receipt__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.fhc-receipt__badge.is-paid { background: #14532d; color: #bbf7d0; }
.fhc-receipt__badge.is-pending { background: #78350f; color: #fde68a; }
.fhc-receipt__badge.is-failed { background: #7f1d1d; color: #fecaca; }
.fhc-receipt__hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 900;
  color: #fff !important;
  line-height: 1.15;
}
.fhc-receipt__hero p {
  margin: 0;
  color: #e2e8f0 !important;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 40rem;
}

.fhc-receipt__card {
  max-width: 760px;
  margin: -28px auto 56px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .1);
  padding: 24px 24px 20px;
  position: relative;
  z-index: 1;
}
.fhc-receipt__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}
.fhc-receipt__brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.fhc-receipt__brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.fhc-receipt__brand strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}
.fhc-receipt__brand span {
  color: #64748b;
  font-size: 12px;
}
.fhc-receipt__invoice {
  text-align: right;
}
.fhc-receipt__invoice span {
  display: block;
  font-size: 12px;
  color: #64748b;
}
.fhc-receipt__invoice strong {
  font-size: 1.35rem;
  color: #0f172a;
}

.fhc-receipt__alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.fhc-receipt__alert p { margin: 0 0 12px; color: #7f1d1d; }

.fhc-receipt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.fhc-receipt__block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}
.fhc-receipt__block h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.fhc-receipt__block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.fhc-receipt__block li {
  display: grid;
  gap: 2px;
}
.fhc-receipt__block li span {
  font-size: 11px;
  color: #94a3b8;
}
.fhc-receipt__block li strong {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
  word-break: break-word;
}
.fhc-receipt__mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px !important; }

.fhc-receipt__table-wrap h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.fhc-receipt__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.fhc-receipt__table th,
.fhc-receipt__table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}
.fhc-receipt__table th {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fhc-receipt__table td:last-child,
.fhc-receipt__table th:last-child { text-align: right; }

.fhc-receipt__totals {
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.fhc-receipt__total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}
.fhc-receipt__total-row span { color: #cbd5e1; font-size: 14px; }
.fhc-receipt__total-row strong { color: #fff; font-size: 1.05rem; }
.fhc-receipt__total-row--main strong { font-size: 1.45rem; font-weight: 900; }
.fhc-receipt__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.fhc-receipt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.fhc-receipt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}
.fhc-receipt__btn:hover { background: #f8fafc; }
.fhc-receipt__btn--primary {
  background: #c21f16;
  border-color: #c21f16;
  color: #fff !important;
}
.fhc-receipt__btn--primary:hover { background: #991b1b; color: #fff !important; }

.fhc-receipt__legal {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Ocultar bloques WC/Elementor residuales debajo del comprobante */
body.fhc-order-received .woocommerce-order-details,
body.fhc-order-received .woocommerce-customer-details,
body.fhc-order-received .woocommerce-thankyou-order-received,
body.fhc-order-received ul.woocommerce-order-overview {
  display: none !important;
}

@media (max-width: 720px) {
  .fhc-receipt__grid { grid-template-columns: 1fr; }
  .fhc-receipt__head { flex-direction: column; }
  .fhc-receipt__invoice { text-align: left; }
  .fhc-receipt__card { margin: -20px 12px 40px; padding: 18px 16px 16px; }
}

@media print {
  body.fhc-order-received .fhc-topbar,
  body.fhc-order-received .fhc-header,
  body.fhc-order-received .fhc-mobile,
  body.fhc-order-received .elementor-location-header,
  body.fhc-order-received .elementor-location-footer,
  body.fhc-order-received .fhc-receipt__actions,
  body.fhc-order-received .fhc-cookies,
  body.fhc-order-received .fhc-dona-modal {
    display: none !important;
  }
  .fhc-receipt__hero { padding: 16px 0; background: #fff !important; color: #0f172a !important; }
  .fhc-receipt__hero h1,
  .fhc-receipt__hero p { color: #0f172a !important; }
  .fhc-receipt__card {
    margin: 0;
    box-shadow: none;
    border: 1px solid #cbd5e1;
  }
}

@keyframes fhcDonIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .fhc-don__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .fhc-don__row { grid-template-columns: 1fr; }
  .fhc-don__btn--primary { float: none; width: 100%; }
  .fhc-don__brand > span { display: none; }
}
