/* =====================================================================
   Buckner Guatemala — Formulario de donación
   Hoja de estilos reconstruida (limpia, simple y responsive)
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
  /* Marca */
  --navy: #1d3f8f;
  --navy-deep: #16306b;
  --blue: #2f6fd6;          /* botón login */
  --blue-hover: #2659ad;
  --blue-active: #2563eb;   /* opción de donación seleccionada */
  --gold: #f3ae34;          /* CTA principal */
  --gold-hover: #dd9b25;

  /* Texto y superficies */
  --ink: #1f2a44;
  --muted: #6b7280;
  --line: #e6eaf2;
  --field-border: #d6dded;
  --field-focus: #2f6fd6;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --danger: #dc3545;

  /* Forma */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 28px rgba(16, 40, 90, .08);
  --shadow-soft: 0 2px 10px rgba(16, 40, 90, .06);

  /* Layout */
  --container: 1180px;
  --gap: 16px;

  /* Tipografía */
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", var(--font);
}

/* ------------------------------ Base ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .5em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Foco visible y accesible en todo lo interactivo */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.donation-option:focus-visible {
  outline: 3px solid rgba(47, 111, 214, .45);
  outline-offset: 2px;
}

/* ----------------------------- Header ------------------------------ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  flex-wrap: wrap;
}

.site-logo img { height: 48px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a.nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
}
.main-nav a.nav-link:hover { color: #cde0ff; text-decoration: none; }

.btn-login {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 30px;
  border-radius: var(--radius-pill);
  border: 0;
  transition: background .2s ease;
}
.btn-login:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }

/* ----------------------------- Slider ------------------------------ */
.slider {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px 0;
}

.slides { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); }

.slide { display: none; }
.slide img { width: 100%; height: auto; display: block; }
.slide.is-active { display: block; animation: fade .8s ease; }

@keyframes fade { from { opacity: .35; } to { opacity: 1; } }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c8d2e6;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.dot:hover { background: #9fb1d6; }
.dot.is-active { background: var(--navy); transform: scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  .slide.is-active { animation: none; }
  .dot { transition: none; }
}

/* ------------------------------ Main ------------------------------- */
.donation-section { padding: 36px 0 56px; }

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.title-rule {
  height: 2px;
  background: var(--line);
  border: 0;
  margin: 0 0 26px;
}

.donation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .donation-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
}

/* Subtítulos de bloque (Datos del donador / tarjeta) */
.block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 28px 0 0;
}

/* ------------------------- Selector de monto ----------------------- */
.donation-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 560px) {
  .donation-selector { grid-template-columns: repeat(2, 1fr); }
}

.donation-option {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: 18px 8px;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.donation-option:hover { border-color: var(--blue); }
.donation-option.active {
  background: var(--blue-active);
  border-color: var(--blue-active);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}

#amount-field {
  width: 100%;
  max-width: 420px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  padding: 16px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 26px;
}

/* ------------------------------ Grid ------------------------------- */
.row { display: flex; flex-wrap: wrap; gap: var(--gap); margin-bottom: var(--gap); }
.row > * { flex: 1 1 100%; min-width: 0; }

@media (min-width: 640px) {
  .col-6 { flex: 1 1 calc(50% - (var(--gap) / 2)); }
  .col-4 { flex: 1 1 calc(33.333% - (var(--gap) * 2 / 3)); }
  .col-8 { flex: 1 1 calc(66.666% - (var(--gap) / 3)); }
}

/* ----------------------------- Formulario -------------------------- */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field-label .req { color: var(--danger); }

.form-control {
  width: 100%;
  height: 48px;                 /* área táctil cómoda */
  padding: 10px 14px;
  font-size: 16px;              /* evita zoom automático en iOS */
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: #aab3c5; }
.form-control:focus {
  border-color: var(--field-focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 214, .15);
  outline: none;
}
select.form-control { cursor: pointer; appearance: auto; }

.card-brands { display: flex; gap: 8px; margin: 6px 0 8px; }
.card-brands img { height: 20px; width: auto; }

/* Mensajes de error */
.alert-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}
.hidden { display: none; }

/* CTA principal */
.btn-donar {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  border: 0;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin-top: 22px;
  transition: background .2s ease, transform .05s ease;
}
.btn-donar:hover { background: var(--gold-hover); }
.btn-donar:active { transform: translateY(1px); }

/* ------------------------------ Sidebar ---------------------------- */
.donation-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.donation-aside h3 { font-size: 1.5rem; margin-bottom: 14px; }
.donation-aside p { margin: 0 0 14px; }
.donation-aside .muted { color: var(--muted); font-size: 14px; }

.aside-brands {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.aside-brands img { height: 46px; width: auto; }

/* ----------------- Columna derecha: contenedor en pila ------------ */
.aside-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --------------------- Llamado a voluntariado --------------------- */
.volunteer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.volunteer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 40, 90, .14);
  text-decoration: none;
}
.volunteer-cta__text {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.volunteer-cta img {
  max-width: 230px;
  width: 100%;
  height: auto;
}

/* ------------------------------ Footer ----------------------------- */
.site-footer {
  background: var(--navy);
  color: #d9e2f5;
  margin-top: 10px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 50px 0 40px;
}
@media (min-width: 768px) {
  .footer-main { grid-template-columns: 1.1fr 1fr 1fr; }
}

.footer-brand { text-align: center; }
.footer-brand img { height: 78px; width: auto; margin: 0 auto 18px; }
.footer-brand address {
  font-style: normal;
  line-height: 1.8;
  font-size: 14px;
}
.footer-brand address a { color: #d9e2f5; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  transition: transform .15s ease, background .15s ease;
}
.footer-social a:hover { transform: translateY(-2px); background: #eef3ff; text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col h4 {
  color: #fff;
  font-size: 17px;
  letter-spacing: .4px;
  margin: 0 0 14px;
}
.footer-col h4 + ul { margin-top: 0; }
.footer-col ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: #c4d2ee;
  font-size: 14px;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bar {
  background: var(--navy-deep);
  text-align: center;
  padding: 16px 0;
}
.footer-bar p { margin: 0; font-size: 13px; color: #aebbd8; }
.footer-bar a { color: #cdd9f2; }

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

/* --------------------- Ajustes responsive header ------------------- */
@media (max-width: 720px) {
  .site-header .container {
    justify-content: center;
    padding-block: 14px;
  }
  .main-nav {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  .btn-login { padding: 9px 24px; }
}

/* —————— Utilidad: boton a lo ancho completo (login/registro, modales) —————— */
.btn-full { width: 100%; }
