@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url(/fonts/oswald-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url(/fonts/oswald-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Bitter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/bitter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/bitter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Bitter';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/bitter-latin-wght-italic.woff2) format('woff2-variations');
}

:root {
  --coal: #110e0c;
  --coal-2: #1a1512;
  --coal-3: #241d18;
  --coal-4: #30271f;
  --cream: #e6d6a7;
  --cream-hi: #f3e8c6;
  --text: #ece4d0;
  --muted: #b5a98f;
  --rust: #b0532f;
  --rust-hi: #cf6a43;
  --ok: #8fbf7a;
  --warn: #e0a94a;
  --err: #e57d6a;
  --line: rgba(230, 214, 167, 0.22);
  --line-strong: rgba(230, 214, 167, 0.55);
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Bitter', Georgia, 'Times New Roman', serif;
  --radius: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--coal);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); text-underline-offset: 3px; }
a:hover { color: var(--cream-hi); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
[hidden] { display: none !important; }

.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; }

/* Texturas */
.brick {
  background-color: #2a1610;
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(17, 14, 12, 0.55), rgba(17, 14, 12, 0.92) 75%),
    url(/img/ladrillo-tex.webp);
  background-size: auto, 360px 240px;
  image-rendering: auto;
}
.wood {
  background-color: #241a13;
  background-image: linear-gradient(rgba(10, 8, 6, 0.25), rgba(10, 8, 6, 0.5)), url(/img/madera-tex.webp);
  background-size: auto, 512px 256px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  font: 600 1rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--cream); border-radius: var(--radius); cursor: pointer;
  background: var(--cream); color: var(--coal);
  box-shadow: 0 2px 0 #8a7a50, 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--cream-hi); color: var(--coal); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: none; }
.btn--ghost:hover { background: rgba(230, 214, 167, 0.1); color: var(--cream-hi); }
.btn--rust { background: var(--rust); border-color: var(--rust); color: #fff8ec; box-shadow: 0 2px 0 #6f3119, 0 6px 18px rgba(0, 0, 0, 0.45); }
.btn--rust:hover { background: #9c4627; color: #fff; }
.btn--small { min-height: 38px; padding: 0.5em 0.9em; font-size: 0.85rem; letter-spacing: 0.08em; }

/* Formularios */
label { font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: var(--cream); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 0.6em 0.8em;
  font: 400 1rem/1.4 var(--body); color: var(--text);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--cream); outline: 2px solid rgba(230, 214, 167, 0.35); outline-offset: 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4em; }
select option { background: var(--coal-2); color: var(--text); }
.field { display: grid; gap: 0.35em; margin-bottom: 1em; }
.field__error { color: var(--err); font-size: 0.9rem; }
.field--invalid input { border-color: var(--err); }

/* Adorno: filete doble como el sello */
.rule { display: flex; align-items: center; gap: 0.8em; color: var(--cream); margin: 0 auto 1.2em; max-width: 260px; }
.rule::before, .rule::after { content: ''; flex: 1; height: 5px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.rule span { width: 9px; height: 9px; transform: rotate(45deg); background: var(--cream); }

.notice { padding: 0.9em 1.1em; border-left: 4px solid var(--warn); background: rgba(224, 169, 74, 0.1); border-radius: var(--radius); }
.notice--err { border-color: var(--err); background: rgba(229, 125, 106, 0.1); }
.notice--ok { border-color: var(--ok); background: rgba(143, 191, 122, 0.1); }
