:root {
  color-scheme: dark;
  --obsidian: #050506;
  --bone: #eeebe5;
  --ash: #a3a1a8;
  --line: rgba(255, 255, 255, 0.1);
  --glass-top: rgba(62, 62, 68, 0.52);
  --glass-bottom: rgba(26, 26, 30, 0.66);
  --gold: #ffd400;
  --gold-ink: #0a0a0a;
  --ember: #ff5a36;
  --jade: #46d27a;
  --r-panel: 28px;
  --r-inner: 16px;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--obsidian);
  color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Fondo 3D */
.shards {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
}
.shards.is-fallback {
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(255, 215, 106, 0.12), transparent 70%),
    linear-gradient(160deg, #18181b, #050506 60%);
}

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

/* Cristal */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.55);
}
.glass--handle::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 56px;
  height: 4px;
  margin-left: -28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 40px rgba(255, 212, 0, 0.18); }
.btn--gold:hover { box-shadow: 0 14px 50px rgba(255, 212, 0, 0.32); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--bone); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn[disabled], .btn[aria-busy='true'] { opacity: 0.6; cursor: progress; }
.btn--block { width: 100%; }

.muted { color: var(--ash); }
.link { color: var(--bone); text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--gold); }

/* Cabecera */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.brand img { height: 30px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.topbar nav a:not(.btn) { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ash); font-size: 15px; transition: color 0.2s, background 0.2s; }
.topbar nav a:not(.btn):hover { color: var(--bone); background: rgba(255, 255, 255, 0.06); }
.topbar .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Formularios */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--ash); }
.input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--r-inner);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 12, 0.7);
  font-size: 17px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.18); }
.notice { padding: 14px 16px; border-radius: var(--r-inner); font-size: 15px; }
.notice--error { background: rgba(255, 90, 54, 0.12); border: 1px solid rgba(255, 90, 54, 0.35); }
.notice--ok { background: rgba(70, 210, 122, 0.12); border: 1px solid rgba(70, 210, 122, 0.35); }
[hidden] { display: none !important; }

/* Pie */
.footer { padding: 56px 0 40px; color: var(--ash); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ash); text-decoration: none; }
.footer a:hover { color: var(--bone); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .topbar nav a:not(.btn) { display: none; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
