/* ===== Ayudar Es Sencillo · EPA por Venezuela ===== */
:root {
  /* Paleta oficial EPA (guía de estilos) */
  --navy: #003399;        /* EPA Blue 500 (institucional) */
  --navy-700: #002A80;    /* Blue 300 (hover/estados) */
  --yellow: #FFDC00;      /* EPA Yellow 500 (acento alta jerarquía) */
  --yellow-soft: #FCF4CC; /* Yellow 900 */
  --cyan: #009EE2;        /* EPA Cyan 500 (destacados/métricas) */
  --ink: #000000;         /* Neutral 900 - texto principal */
  --muted: #545454;       /* Neutral 700 - texto secundario */
  --line: #D1D5DB;        /* Neutral 300 - bordes/divisores */
  --bg: #F3F4F6;          /* Neutral 100 - fondos suaves */
  --white: #FFFFFF;       /* Neutral 0 */
  --radius: 8px;
  --shadow: 0 20px 50px rgba(0, 51, 153, 0.14);
  /* Inter para cuerpo/operativo, Poppins para títulos/comercial */
  --font: 'Inter', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', var(--font);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
.container { width: min(1180px, 92%); margin: 0 auto; }
a { color: inherit; text-decoration: none; }

/* Poppins (comercial) para títulos y elementos de display; Inter para el resto. */
.brand, .hero__title, .donation-card__title,
.section-title,
.hero__quote p, .contribution__name, .contribution__amount,
.confirm-box strong, .stats__num {
  font-family: var(--font-display);
}

/* ---------- Banner de ambiente DEV ---------- */
.env-banner {
  background: repeating-linear-gradient(45deg, #B45309, #B45309 12px, #92400E 12px, #92400E 24px);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  padding: 8px 12px;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--white); position: sticky; top: 0; z-index: 50; }
.topbar__inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.brand__logo { height: 34px; width: auto; display: block; }
.brand__por { display: none; }
.brand__heart { display: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; color: var(--ink); font-size: 16px; }
.nav a:hover { color: var(--muted); }
.btn { cursor: pointer; border: none; font-family: var(--font); font-weight: 600; border-radius: 8px; transition: .15s ease; font-size: 16px; }
.btn--donate { display: none; }

/* Selector de idioma */
.lang-switcher { display: flex; }
.lang-btn { background: none; border: none; padding: 4px 6px; font-size: 22px; cursor: pointer; opacity: 0.8; transition: .15s ease; line-height: 1; }
.lang-btn:hover { opacity: 1; transform: scale(1.1); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero__bg { display: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0 72px; align-items: start; }
.hero__content { max-width: 560px; }
.hero__banner { width: 100%; height: auto; border-radius: 16px; display: block; margin-bottom: 24px; }
.hero__title { font-size: clamp(48px, 7vw, 84px); line-height: .95; margin: 0 0 18px; color: var(--navy); font-weight: 800; }
.hero__title .accent { color: var(--cyan); }
.hero__subtitle { font-size: clamp(16px, 2vw, 18px); font-weight: 400; color: var(--muted); margin: 0 0 28px; }
.hero__subtitle::after { display: none; }
.hero__text { display: none; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.features li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.features li strong { color: var(--navy); }
.features__icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.hero__quote { display: none; }

/* ---------- Donation card ---------- */
.donation-card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 34px 32px; position: relative; z-index: 2; }
.donation-card__title { font-size: 32px; color: var(--navy); margin: 0 0 6px; font-weight: 700; }
.donation-card__hint { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.donation-card__amount-summary { color: var(--muted); margin: 4px 0 18px; }
.donation-card__amount-summary strong { color: var(--navy); }

.step--hidden { display: none; }

.site-disabled { background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 8px; padding: 16px; margin-bottom: 18px; }
.site-disabled p { margin: 0; color: var(--navy); font-weight: 600; font-size: 15px; }

.amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.amount-btn { padding: 20px; font-size: 20px; font-weight: 700; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: .15s; font-family: var(--font); }
.amount-btn:hover { border-color: var(--yellow); }
.amount-btn.is-active { background: var(--yellow-soft); border-color: var(--yellow); }
.amount-btn--other { grid-column: 1 / -1; font-size: 17px; color: var(--muted); }

.field { margin-bottom: 16px; }
.field--hidden { display: none; }
.field label, .field__label { display: block; font-weight: 600; color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .select-wrap select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 16px; font-family: inherit; color: var(--ink); background: var(--white);
  min-height: 48px;
}
.field input:focus, .field textarea:focus, .select-wrap select:focus { outline: none; border: 2px solid var(--navy); padding: 11px 15px; }
.field input::placeholder, .field textarea::placeholder { color: #9CA3AF; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.select-wrap { position: relative; margin-bottom: 22px; }
.select-wrap select { appearance: none; }
.select-wrap::after { content: "▾"; position: absolute; right: 16px; top: 14px; color: var(--muted); pointer-events: none; }

.card-fields { border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px 4px; margin: 6px 0 18px; }
.card-fields legend { font-weight: 700; color: var(--navy); padding: 0 8px; font-size: 14px; }

.optin { background: var(--yellow-soft); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 10px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--navy); cursor: pointer; }
.checkbox input { margin-top: 3px; }

.btn__lock-icon { vertical-align: middle; flex-shrink: 0; }
.btn--primary .btn__lock-icon { filter: brightness(0) invert(1); }
.btn--primary { background: var(--navy); color: var(--white); padding: 14px 24px; font-size: 16px; font-family: var(--font); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
.btn--primary:hover { background: rgba(0, 51, 153, 0.8); }
.btn--primary:disabled { background: #D1D5DB; color: #545454; cursor: not-allowed; opacity: 1; }
.btn--ghost { background: var(--white); color: var(--navy); border: 1px solid var(--navy); padding: 14px 24px; font-size: 16px; min-height: 48px; }
.btn--ghost:hover { background: #DBEAFE; }
.btn--block { width: 100%; }
.link-back { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 0 12px; font-family: inherit; }

/* Confirmación de monto personalizado */
.confirm-box { background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 8px; padding: 18px; margin: 14px 0; text-align: center; animation: confirmFadeIn .2s ease; }
.confirm-box p { margin: 0 0 14px; font-size: 16px; color: var(--ink); }
.confirm-box strong { font-size: 20px; color: var(--navy); }
.confirm-box__actions { display: flex; gap: 10px; justify-content: center; }
.confirm-box__actions .btn { padding: 12px 22px; font-size: 15px; }
@keyframes confirmFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.form-error { color: #991B1B; font-size: 14px; min-height: 18px; margin: 4px 0 10px; }

.secure-seal { text-align: center; margin-top: 22px; padding-top: 18px; background: var(--bg); border-radius: 12px; padding: 18px; }
.secure-seal p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.logo-fac { color: var(--navy); font-weight: 600; }
.logo-fac strong { background: var(--navy); color: var(--white); padding: 3px 7px; border-radius: 5px; margin-right: 6px; }
.secure-seal__cards { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }
.card-badge { font-weight: 800; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; }

/* ---------- Aportes ---------- */
.contributions { padding: 64px 0; }
.section-title { text-align: center; color: var(--navy); font-size: 24px; margin: 0 0 6px; font-weight: 700; }
.section-subtitle { text-align: center; color: var(--muted); margin: 0 0 8px; }
.section-note { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 34px; font-style: italic; }
.stats { display: flex; gap: 40px; justify-content: center; margin: 0 0 34px; flex-wrap: wrap; }
.stats__item { text-align: center; }
.stats__num { display: block; font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1; }
.stats__currency { font-size: 0.5em; font-weight: 700; vertical-align: baseline; margin-right: 2px; }
.stats__label { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.contributions__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 1fr; gap: 18px; }
.contribution { background: var(--bg); border-radius: 8px; padding: 20px; overflow: hidden; }
.contribution__name { font-weight: 600; font-size: 16px; color: var(--navy); }
.contribution__email { color: var(--muted); font-size: 13px; margin: 2px 0 4px; }
.contribution__amount { color: var(--cyan); font-weight: 800; }
.contribution__msg { color: var(--muted); font-size: 14px; margin-top: 8px; font-style: italic; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.contribution__msg.is-expanded { -webkit-line-clamp: unset; display: block; }
.contribution__more { background: none; border: none; color: var(--cyan); font-size: 13px; cursor: pointer; padding: 4px 0 0; font-family: inherit; font-weight: 600; }
.contribution__more:hover { text-decoration: underline; }
.contributions__empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.footer { background: var(--white); color: #9CA3AF; padding: 24px 0; text-align: center; font-size: 14px; }

/* ---------- 3DS overlay ---------- */
.threeds-overlay { position: fixed; inset: 0; background: rgba(11,42,91,.75); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.threeds-overlay__box { background: var(--white); border-radius: 16px; width: min(480px, 100%); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; }
.threeds-overlay__title { margin: 0; padding: 16px 20px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
.threeds-overlay iframe { border: none; width: 100%; height: 560px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__bg { left: 0; opacity: .18; }
  .nav { display: none; }
  .lang-switcher { margin-left: auto; }
}

/* ---------- Pagina de resultado (resultado.html) ---------- */
/* Clases que reemplazan estilos inline, para cumplir la CSP (style-src 'self'). */
.result-container { max-width: 640px; text-align: center; }
.result-icon { font-size: 56px; margin-bottom: 8px; }
.result-title { margin-bottom: 10px; }
.result-back { display: inline-block; padding: 14px 26px; }
