/* Donaciones — layout alineado con Contacto (cabecera, pasos, tarjetas) */

.donations-page {
  padding: 0 1rem 4rem;
}

.donations-layout.contact-container {
  max-width: 800px;
  margin: 10rem auto 4rem;
  padding: 0 1rem;
}

.donations-header.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.donations-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
  font-family: "Poppins", sans-serif;
}

.donations-header p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.donations-intro {
  max-width: 40rem;
  margin: 0 auto;
}

.donations-intro-lead {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  text-align: center;
}

.donations-intro-more {
  margin: 0;
  text-align: center;
}

.donations-intro-link {
  color: #00677b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.donations-intro-link:hover {
  color: #004a5c;
}

.donations-about-details .about-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}

.donations-about-details .about-body p {
  margin-bottom: 0.75rem;
}

.donations-about-details .about-body ol {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.donations-about-details .about-body li {
  margin-bottom: 0.65rem;
}

.donations-about-details .about-body a {
  color: #00677b;
  font-weight: 500;
}

/* Selector de idioma: fuera del flujo visual del formulario, alineado a la derecha */
.donations-lang-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.donations-lang-label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switcher {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.lang-switcher--compact .lang-btn {
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  min-width: 2rem;
}

.lang-btn {
  border: 1px solid #264a50;
  background: transparent;
  color: #264a50;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  background: rgba(38, 74, 80, 0.08);
}

.lang-btn.active {
  background: #264a50;
  color: #fff;
}

/* Indicadores de paso (2 pasos, estilo Contacto) */
.donations-steps .step-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.donations-steps .step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.donations-steps .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.donations-steps .step-text {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  max-width: 6.5rem;
  line-height: 1.2;
}

@media (min-width: 480px) {
  .donations-steps .step-text {
    font-size: 0.85rem;
    max-width: 8rem;
  }
}

.donations-steps .step-line {
  flex-grow: 1;
  min-width: 2rem;
  max-width: 4rem;
  height: 2px;
  background-color: #e0e0e0;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
}

.donations-steps .step-indicator.active .step-number {
  background-color: #264a50;
  color: #fff;
}

.donations-steps .step-indicator.completed .step-number {
  background-color: #3e8591;
  color: #fff;
}

.donations-step-content[hidden] {
  display: none !important;
}

.donations-form-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.35rem;
  display: block;
}

.donations-form-card .form-control {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  width: 100%;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
}

.donations-form-card .form-control:focus {
  border-color: #264a50;
  outline: none;
  box-shadow: 0 0 0 2px rgba(38, 74, 80, 0.15);
}

.donations-form-card .form-control.donations-field-error {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.donations-form-card .form-control.donations-field-error:focus {
  border-color: #b71c1c;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.28);
}

.reason-field-inner.donations-field-error {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.reason-field-inner.donations-field-error:focus-within {
  border-color: #b71c1c;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.28);
}

.donations-form-card input.form-control,
.donations-form-card select.form-control {
  min-height: calc(1.5em + 1.5rem);
}

.donations-form-card select.form-control {
  cursor: pointer;
  background-color: #fff;
  appearance: auto;
}

.reason-field-inner {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.reason-field-inner:focus-within {
  border-color: #264a50;
  box-shadow: 0 0 0 2px rgba(38, 74, 80, 0.15);
}

.reason-textarea {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.5;
}

.reason-textarea:focus {
  outline: none;
  box-shadow: none !important;
}

.reason-quick-foot {
  border-top: 1px solid #eee;
  background: #f8f9fa;
  padding: 0.5rem 0.65rem 0.65rem;
}

.reason-quick-hint {
  display: block;
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.reason-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
}

.reason-quick-btn {
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: left;
  padding: 0.35rem 0.55rem;
  border: 1px solid #cce0e4;
  border-radius: 999px;
  background: #fff;
  color: #264a50;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  max-width: 100%;
}

.reason-quick-btn:hover {
  background: #e8f4f7;
  border-color: #00677b;
  color: #004a5c;
}

.reason-quick-btn:focus {
  outline: 2px solid #00677b;
  outline-offset: 1px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-check input {
  margin-top: 0.25rem;
}

.donor-data-title {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.35rem;
  color: #333;
}

.donor-data-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #666;
}

.donor-grid.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.method-section-title {
  font-size: 1.05rem;
  margin: 1.5rem 0 1rem;
  color: #333;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tarjetas de método (tipo Contacto request-type-card) */
.method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.method-card {
  margin: 0;
  cursor: pointer;
  display: block;
}

.method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1rem;
  border: 2px solid #e0e0e0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.method-card:hover .method-card-inner {
  border-color: #264a50;
  transform: translateY(-2px);
}

.method-card.selected .method-card-inner {
  border-color: #264a50;
  background-color: #f8f9ff;
  box-shadow: 0 2px 8px rgba(38, 74, 80, 0.12);
}

.method-card-icon {
  font-size: 2rem;
  color: #264a50;
  margin-bottom: 0.75rem;
}

/* PayPal (paso 1): icono + título en texto */
.method-card--platform .method-card-icon--platform-mark {
  font-size: 2.75rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.method-card-title {
  font-weight: 600;
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  display: block;
}

.method-card-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.4;
  display: block;
}

.donations-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-donate {
  background: #264a50;
  border: none;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-donate:hover:not(:disabled) {
  background: #1d3a3f;
}

.btn-donate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: #264a50;
  border: 2px solid #264a50;
}

.btn-outline:hover {
  background: rgba(38, 74, 80, 0.06);
}

.btn-donate-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  min-height: 1.25rem;
}

.form-message.success {
  color: #0a7d32;
}

.form-message.error {
  color: #b32424;
}

/* Paso 2 — referencia compacta arriba (mientras lee instrucciones) */
.step2-reference-inline {
  text-align: center;
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.75rem;
  background: #f5f9fa;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #444;
}

.tx-code--inline {
  display: inline;
  margin-left: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #00677b;
}

.step2-method-picker {
  margin: 0 0 1.35rem;
}

.step2-method-intro {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #444;
  text-align: center;
}

.step2-method-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.step2-method-chip {
  margin: 0;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.65rem 0.6rem;
  background: #fff;
  font: inherit;
  color: #333;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  text-align: center;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.step2-method-chip:hover:not(:disabled) {
  border-color: #264a50;
}

.step2-method-chip.selected {
  border-color: #264a50;
  background: #f2f8fa;
  box-shadow: 0 2px 6px rgba(38, 74, 80, 0.1);
}

.step2-method-chip:disabled {
  opacity: 0.65;
  cursor: wait;
}

.step2-method-chip-lines {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: center;
}

.step2-method-chip-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.step2-method-chip-scope {
  font-size: 0.78rem;
  font-weight: 400;
  color: #555;
}

.step2-method-feedback {
  margin-top: 0.65rem;
  margin-bottom: 0;
  min-height: 1.25rem;
  text-align: center;
}

@media (max-width: 420px) {
  .step2-method-chips {
    grid-template-columns: 1fr;
  }
}

/* Paso 3 — agradecimiento + referencia destacada */
.step3-card {
  text-align: center;
}

.step3-thanks {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  text-align: left;
}

.step3-reference-box {
  margin-bottom: 0.5rem;
}

.step2-reference-box {
  background: linear-gradient(135deg, #f2f8fa 0%, #e8f4f7 100%);
  border: 2px solid #00677b;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  text-align: center;
}

.step2-ref-intro {
  display: block;
  font-size: 0.88rem;
  color: #3d3d3d;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.tx-code {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: ui-monospace, monospace;
  color: #264a50;
  font-size: 1.05rem;
}

.tx-code--highlight {
  display: block;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #004a5c;
  word-break: break-all;
}

.step2-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.step2-subtitle {
  font-size: 1.1rem;
  color: #333;
  margin: 1.25rem 0 0.5rem;
}

.step2-hint {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.donation-qr-block {
  text-align: center;
  margin-bottom: 1.5rem;
}

.donation-qr-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #ccc;
}

.donation-qr-img {
  display: block;
  border-radius: 4px;
  max-width: min(280px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}

.donation-qr-placeholder {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 4rem;
}

.bank-details {
  margin-bottom: 1rem;
}

.bank-dl {
  margin: 0;
}

.bank-dl > div {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.bank-dl dt {
  margin: 0;
  font-weight: 600;
  color: #555;
}

.bank-dl dd {
  margin: 0;
  color: #333;
}

.legal-details {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
}

.legal-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #264a50;
}

.legal-details p {
  margin: 0.75rem 0 0;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.5;
}

.step2-contact {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

/* Legal / contacto compartido (transferencia + PayPal) */
.step2-shared-legal {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid #e5e5e5;
}

/* PayPal — montos USD */
.step2-paypal {
  text-align: left;
}

/* Panel PayPal: cabecera solo con logo */
.paypal-panel-head-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.15rem;
}

.paypal-panel-head-icon__img {
  height: 40px;
  width: auto;
  max-width: 170px;
  display: block;
}

.paypal-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.paypal-amount-btn {
  margin: 0;
  padding: 0.75rem 0.4rem;
  border: none;
  border-right: 1px solid #1a1a1a;
  border-bottom: none;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  transition: background-color 0.15s ease;
}

.paypal-amount-btn:last-child {
  border-right: none;
}

.paypal-amount-btn:hover {
  background: #f8fafb;
}

.paypal-amount-btn.selected {
  background: #e8f4f7;
  box-shadow: inset 0 0 0 2px #264a50;
}

.paypal-amount-btn.paypal-amount-btn--custom {
  font-weight: 600;
}

.paypal-amount-unit {
  margin-left: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.paypal-custom-row {
  margin-bottom: 1rem;
}

.paypal-custom-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #333;
}

.paypal-custom-row .paypal-custom-input {
  max-width: 14rem;
}

.paypal-amount-error {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  min-height: 1.2rem;
}

.paypal-instructions {
  color: #222;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.paypal-buttons-hint {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.paypal-button-container {
  max-width: 22rem;
  margin: 0 auto 1rem;
  min-height: 2.5rem;
}

.paypal-payment-error {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  min-height: 1.2rem;
}

.paypal-panel-actions {
  margin-bottom: 0.25rem;
}

.paypal-panel-actions .btn-donate {
  width: 100%;
  max-width: 18rem;
}

.paypal-checkout-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #444;
  background: #f5f9fa;
  border-radius: 6px;
  border-left: 3px solid #264a50;
}

@media (max-width: 620px) {
  .paypal-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    border: none;
    overflow: visible;
  }

  .paypal-amount-btn {
    border: 1px solid #1a1a1a;
    border-radius: 6px;
  }

  .paypal-amount-btn:last-child {
    grid-column: 1 / -1;
  }
}

.step2-actions {
  justify-content: center;
  margin-top: 1.75rem;
}

.step3-actions {
  justify-content: center;
  margin-top: 1.75rem;
}

.btn-finish {
  min-width: 11rem;
}

a.btn-home {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

a.btn-home:hover {
  color: #fff !important;
}

@media (max-width: 768px) {
  .donations-layout.contact-container {
    margin-top: 6rem;
  }

  .donations-header h1 {
    font-size: 1.85rem;
  }

  .donor-grid.grid {
    grid-template-columns: 1fr;
  }

  .donations-steps .step-line {
    min-width: 1rem;
    max-width: 2rem;
  }

  .bank-dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .bank-dl dt {
    padding-top: 0.35rem;
  }
}
