@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --linen: #EDEEE9; --ink: #1B2422; --slate: #5E6A65; --line: #D6D9D1;
  --pino: #2E4A41; --pino-soft: #E3E9E4; --clay: #87513F; --clay-soft: #EFE5E0;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; /* dvh: descuenta la barra del navegador móvil */
  display: flex; flex-direction: column; position: relative; overflow-x: hidden;
  background: var(--linen); color: var(--ink); font-family: var(--sans);
}

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 420px; margin: 0 auto; padding: 56px 26px 0; }
.brand { font-family: var(--serif); font-size: 21px; letter-spacing: .02em; }
.brand::after { content: ''; display: block; width: 34px; height: 1px; background: var(--ink); opacity: .75; margin-top: 9px; }

.badge { width: 46px; height: 46px; border-radius: 23px; background: var(--pino-soft); display: flex; align-items: center; justify-content: center; margin: 52px 0 24px; }
.icon { width: 20px; height: 20px; fill: none; stroke: var(--pino); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: none; }
body[data-state="ok"] .icon-ok,
body[data-state="error"] .icon-error,
body[data-state="neutral"] .icon-neutral { display: block; }
body[data-state="error"] .badge { background: var(--clay-soft); }
body[data-state="error"] .icon-error { stroke: var(--clay); }

h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.18; letter-spacing: -.01em; margin: 0; }
.sub { font-size: 14.5px; line-height: 1.5; color: var(--slate); margin: 10px 0 0; max-width: 300px; }

.pact { position: relative; z-index: 1; width: 100%; max-width: 420px; margin: 0 auto; padding: 13px 26px 22px; display: flex; align-items: center; gap: 8px; }
.pact::before { content: ''; position: absolute; top: 0; left: 26px; right: 26px; height: 1px; background: var(--line); }
.pact p { margin: 0; font-size: 12.5px; color: var(--slate); }
.pact-icon { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: var(--pino); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.motif {
  position: fixed; bottom: 40px; left: -40px; width: 480px; opacity: .08; pointer-events: none; z-index: 0;
  fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round;
  animation: breathe 19s ease-in-out 2s infinite alternate;
}
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2800ms cubic-bezier(.22,.61,.36,1) forwards; }
.d1 { animation-delay: 220ms; } .d2 { animation-delay: 440ms; } .d3 { animation-delay: 660ms; }
.d4 { animation-delay: 880ms; } .d5 { animation-delay: 1200ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes breathe { from { transform: scale(1) translateY(0); } to { transform: scale(1.03) translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .motif { animation: none; }
  .draw { animation: none; stroke-dashoffset: 0; }
}
