/* Newsreader, Production Type, SIL OFL 1.1. Licencia en /fonts/OFL.txt. */

@font-face {
  font-family: "Newsreader RG";
  src: url("/fonts/newsreader-name.woff2") format("woff2");
  font-weight: 480;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+0047, U+0052, U+0061, U+0065, U+0069, U+006D, U+006E, U+0072, U+0075, U+0076, U+007A, U+00E1;
}

:root {
  --paper: #f6f3ee;
  --ink: #1c1917;
  --muted: #5c564f;
  --rule: #e3dcd2;
  --accent: #8c3a2f;
  --field: #fbf9f6;
  --measure: 38rem;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-padding-top: 1.25rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.bar {
  height: 3px;
  background: var(--accent);
}

.wrap {
  width: min(var(--measure), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0 0.5rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
}

.wordmark {
  font-family: "Newsreader RG", Georgia, "Times New Roman", serif;
  font-weight: 480;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  font-family: "Newsreader RG", Georgia, "Times New Roman", serif;
  font-weight: 480;
  font-size: clamp(2.7rem, 8vw, 4.5rem);
  line-height: 0.98;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  padding: 2.5rem 0 1rem;
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  max-width: 28rem;
}

.hero-note {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 32rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.75rem;
  padding: 0.65rem 1.15rem;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.button:hover {
  background: #7a3228;
}

.button:disabled {
  opacity: 0.65;
  cursor: progress;
}

section {
  padding: 2.4rem 0;
  border-top: 1px solid var(--rule);
}

.keys {
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keys li {
  display: grid;
  gap: 0.2rem;
}

.keys strong {
  font-weight: 600;
}

.keys span,
.service p,
.address p,
.legal p,
.legal li {
  color: var(--muted);
}

.services {
  display: grid;
  gap: 1.5rem;
}

.address {
  display: grid;
  gap: 0.35rem;
  font-style: normal;
}

.address a {
  margin-top: 0.6rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-size: 0.95rem;
}

.req {
  color: var(--accent);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--accent);
}

.field-error {
  color: var(--accent);
  font-size: 0.92rem;
  min-height: 0;
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.check label {
  font-size: 0.95rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
}

.form-status:empty {
  display: none;
}

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

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.legal h2 {
  margin-top: 1.6rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.legal .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1.5rem;
}

.result {
  padding: 3rem 0 4rem;
}

.result p {
  margin-top: 1rem;
  max-width: 32rem;
}
