/* ═══════════════════════════════════════════════════════════
   VÉRTICE · Base — tokens, reset, tipografía, botones
   Paleta: negro profundo + oro (extraído del logo) + plata
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Superficies */
  --black: #000;
  --bg: #050505;
  --bg-raise: #0a0a0b;
  --surface: #0f0f10;
  --surface-2: #151517;
  --surface-3: #1d1d20;

  /* Oro */
  --gold-50: #fff6dc;
  --gold-100: #f9e0a3;
  --gold-200: #f4cd78;
  --gold-300: #efbd58;
  --gold-400: #e9ad3f;   /* acento principal — 9.6:1 sobre --bg */
  --gold-500: #d4952a;
  --gold-700: #9c6714;
  --gold-grad: linear-gradient(135deg, #ffe7ab 0%, #f3bc4f 26%, #c9871b 52%, #f7d07a 76%, #b47613 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(255, 231, 171, .16), rgba(201, 135, 27, .04));
  --silver: #c9ccd2;

  /* Texto */
  --text: #f3eee6;       /* 17.6:1 */
  --text-2: #bdb6aa;     /* 9.7:1  */
  --text-3: #8f887d;     /* 5.6:1  */
  --on-gold: #140e03;

  /* Líneas */
  --line: rgba(233, 173, 63, .16);
  --line-strong: rgba(233, 173, 63, .42);
  --line-soft: rgba(255, 255, 255, .07);

  /* Estados */
  --danger: #f08a7a;
  --danger-bg: rgba(240, 138, 122, .08);
  --success: #86d6a8;
  --success-bg: rgba(134, 214, 168, .08);
  --warning: #f2c063;
  --warning-bg: rgba(242, 192, 99, .08);

  /* Tipografía */
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala 8pt */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* Forma y movimiento */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --dur: 220ms;

  /* Layout */
  --wrap: 1560px;
  --gutter: clamp(16px, 4vw, 64px);
  --nav-h: 72px;

  /* Z-index */
  --z-nav: 40;
  --z-drawer: 60;
  --z-toast: 100;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: rgba(233, 173, 63, .35); color: var(--gold-50); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000;
  background: var(--gold-400); color: var(--on-gold); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 4px; }

/* ───── Tipografía ───── */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.4vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
  line-height: 1.1;
  text-wrap: balance;
}
.h2 em, .display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gold-200);
}
.gold-text {
  background: var(--gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.kicker {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font: 600 12px/1 var(--font-sans);
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-300);
}
.kicker span {
  font-family: var(--font-display); letter-spacing: .08em; color: var(--text-3);
  padding-right: var(--s-3); border-right: 1px solid var(--line-strong);
}

/* ───── Botones ───── */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h);
  padding: 0 var(--s-5);
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), filter var(--dur);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon[class*="icon"]:last-child { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn-lg { --btn-h: 56px; padding: 0 var(--s-6); font-size: 13.5px; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--gold-grad);
  background-size: 160% 100%;
  color: var(--on-gold);
  box-shadow: 0 0 0 1px rgba(255, 223, 150, .35) inset, 0 10px 30px -12px rgba(233, 173, 63, .55);
}
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 0 0 1px rgba(255, 223, 150, .5) inset, 0 14px 40px -12px rgba(233, 173, 63, .75); }

.btn-ghost { border-color: var(--line-strong); color: var(--gold-100); background: rgba(233, 173, 63, .03); }
.btn-ghost:hover { border-color: var(--gold-300); background: rgba(233, 173, 63, .08); }

.btn-quiet { color: var(--text-2); }
.btn-quiet:hover { color: var(--gold-100); }

.btn-danger { border-color: rgba(240, 138, 122, .4); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--on-gold) transparent var(--on-gold) transparent;
  animation: spin .8s linear infinite;
}
.btn-ghost.is-loading::after { border-color: var(--gold-200) transparent var(--gold-200) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── Reveal (solo con JS) ───── */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
