@font-face {
  font-family: 'Noto Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Optima Bold, la fuente de los botones del sitio del Santuario (copiada de santuariodelujan.org.ar) */
@font-face {
  font-family: 'Optima';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/optima-700.ttf') format('truetype');
}

:root {
  /* Colores del sitio del Santuario (santuariodelujan.org.ar) */
  --blue: #00a7e1;
  --blue-dark: #0081b3;
  --blue-light: #a7d8f1;
  /* Bordó del sitio del Santuario: todo lo que es donación */
  --bordo: #97272d;
  --bordo-dark: #7a1f24;
  --bg: #f5f4f1;
  --text: #524f4c;
  --muted: #6b6b6b;
  --error: #c0392b;
  --radius: 12px;
}

* { box-sizing: border-box; }

/* Espaciados en grilla de 8 px (8, 16, 24, 32, 48); 4 y 2 solo para ajustes finos */

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo { width: 180px; height: auto; }

h1 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
}

.lead { margin: 0; color: var(--muted); }
/* Párrafos seguidos más juntos que el resto de los bloques (el gap de .page es 24px) */
.lead + .lead { margin-top: -16px; }

form { display: flex; flex-direction: column; gap: 16px; }
.modal form { margin-top: 8px; }

label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 14px; }
/* Parte del label que aclara, sin negrita */
.label-note { font-weight: 400; font-size: 13px; }

input {
  font: inherit;
  font-weight: 400;
  padding: 12px 16px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

/* Honeypot anti-bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Como los botones del sitio del Santuario (Optima en mayúsculas), pero con bordes redondeados */
.btn {
  font: inherit;
  font-family: 'Optima', 'Noto Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { background: #a9a9a9; cursor: default; }
.btn-secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: #eaf7fd; }
.btn-donate { background: var(--bordo); }
.btn-donate:hover { background: var(--bordo-dark); }
.btn-donate.btn-secondary { background: #fff; color: var(--bordo); border-color: var(--bordo); }
.btn-donate.btn-secondary:hover { background: #f8ecec; }

.error { color: var(--error); font-size: 11px; margin: 0; }
/* Sin error no ocupa lugar, así el botón queda pegado al último campo */
.error:empty { display: none; }
/* Botón del formulario un poco más separado de los campos */
form .btn { margin-top: 8px; }
.legal { font-size: 12px; color: var(--muted); margin: 0; }

.preview {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #ddd;
  display: block;
}

.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.status { font-size: 14px; color: var(--muted); text-align: center; margin: 0; }
/* Sin mensaje no ocupa lugar, así no queda un hueco entre los botones y la imagen */
.status:empty { display: none; }
.donate { text-align: center; font-size: 14px; }
.donate a { color: var(--bordo); font-weight: 700; }
[hidden] { display: none !important; }

h2 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
}

.footer {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 24px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.footer p { margin: 0 0 4px; }
.footer a { color: var(--muted); }

/* Popups */
.modal {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
/* Opciones de donación un poco más separadas que otros botones */
.modal .actions { gap: 16px; }
.modal::backdrop { background: rgba(0, 0, 0, 0.55); }
.modal-body {
  position: relative;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-body h2 { padding-right: 32px; }
@media (min-width: 768px) {
  .modal-body h2 { font-size: 24px; }
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.06); }
body:has(.modal[open]) { overflow: hidden; }
