@font-face {
  font-family: "Abel";
  src: url("../fonts/abel-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1d1d20;
  --line: #2c2c31;
  --text: #ecebe6;
  --muted: #a7a59c;
  --gold: #d9b45a;
  --gold-hi: #f3d98b;
  --gold-lo: #a9822d;
  --danger: #ff8a7a;
  --ok: #8fd6a3;
  --radius: 0.75rem;
  --font-display: "Abel", "Avenir Next Condensed", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space: clamp(1rem, 0.6rem + 1.6vw, 2rem);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgb(217 180 90 / 0.12), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
}

main { flex: 1; width: min(100% - 2rem, 46rem); margin-inline: auto; }

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

a { color: var(--gold-hi); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: #111;
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: 1rem; }

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

/* ---------- Hero ---------- */
.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(2.5rem, 8vw, 5rem) var(--space);
  gap: 0.5rem;
}
.hero--404 { min-height: 100dvh; align-content: center; }

.hero__logo {
  width: clamp(9rem, 30vw, 15rem);
  filter: drop-shadow(0 1rem 2.5rem rgb(217 180 90 / 0.22));
  margin-bottom: 0.75rem;
}

.hero__title {
  margin: 0;
  font: 400 clamp(2.4rem, 1.4rem + 5vw, 4.25rem)/1.05 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0;
  font: 400 clamp(1.15rem, 1rem + 0.8vw, 1.5rem)/1.3 var(--font-display);
  color: var(--muted);
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.hero__lead {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--text);
  text-wrap: pretty;
}

.notice {
  margin: 1.5rem 0 0;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
}

/* ---------- Contacto ---------- */
.contact {
  margin-block: var(--space) clamp(2.5rem, 6vw, 4rem);
  padding: var(--space);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
}

.contact h2 {
  margin: 0 0 1.25rem;
  font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem)/1.1 var(--font-display);
  color: var(--gold);
  letter-spacing: 0.03em;
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
}
@media (min-width: 40rem) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--wide, .form__actions { grid-column: 1 / -1; }
}

.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.95rem; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(217 180 90 / 0.2);
}

.field--captcha input { max-width: 8rem; }
.field--captcha span { color: var(--text); font-weight: 600; white-space: nowrap; }

.field__error { margin: 0; min-height: 1.2em; font-size: 0.85rem; color: var(--danger); }
.field__error:empty { min-height: 0; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--danger); }

/* Honeypot: fuera de pantalla, no display:none (algunos bots lo detectan). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font: 400 1.15rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #141210;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.form__hint { margin: 0; flex-basis: 100%; font-size: 0.85rem; color: var(--muted); }
.form__status { margin: 0; font-size: 0.95rem; }
.form__status a { font-weight: 600; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.45);
  transition: transform 0.15s, filter 0.15s;
}
.wa-float:hover { transform: translateY(-2px); filter: brightness(1.05); }
.wa-float__label { display: none; padding-right: 0.35rem; }
@media (min-width: 48rem) {
  .wa-float { right: 24px; bottom: 24px; padding: 0.7rem 1.1rem 0.7rem 0.8rem; }
  .wa-float__label { display: inline; }
}
/* Que el botón no tape el pie de página */
.footer { padding-bottom: 5rem; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
