/* =========================================================
   TCT · Timers Colombia's Team
   Base: tokens, reset, tipografía y componentes compartidos
   ========================================================= */

@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/mono.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Nogal */
  --nogal-950: #1a0e08;
  --nogal-900: #24140d;
  --nogal-850: #2a1911;
  --nogal-800: #332016;
  --nogal-700: #432a1b;
  --nogal-600: #5b3b26;
  --nogal-500: #745033;
  --nogal-400: #9a7352;
  /* Neutros */
  --bone: #f4f0e8;
  --bone-2: #ece6db;
  --bone-3: #e2dbce;
  --gray-100: #d8d0c3;
  --gray-200: #c4bbad;
  --gray-300: #a89e8f;
  --gray-400: #8b8275;
  --gray-500: #6b6358;
  --ink: #2a211b;
  --white: #fffdf8;
  /* Acentos */
  --yellow: #f4c542;
  --yellow-2: #ffda6b;
  --yellow-3: #f9e4a1;
  --lila: #c9b4e8;
  --lila-2: #e7ddf5;
  --lila-3: #f1eaf9;
  --lila-deep: #7d61a6;
  --lila-dark: #5e467f;
  --live: #e05b3e;
  /* Medidas */
  --container: 1280px;
  --gutter: 28px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --header-h: 82px;
  --shadow-sm: 0 1px 2px rgba(36, 20, 13, .05), 0 6px 18px -12px rgba(36, 20, 13, .25);
  --shadow-md: 0 24px 60px -34px rgba(36, 20, 13, .45);
  --shadow-lg: 0 48px 100px -40px rgba(36, 20, 13, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--yellow); color: var(--nogal-950); }

:focus-visible {
  outline: 3px solid var(--lila-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--yellow);
  color: var(--nogal-950);
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 999px;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: .005em;
}
h1, h2, h3 { font-weight: 800; }
h1 { line-height: .9; }
h2 { line-height: .98; letter-spacing: -.025em; }
h3 { line-height: 1.15; letter-spacing: -.015em; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nogal-600);
}
.kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.kicker--yellow { color: var(--yellow); }
.kicker--lila { color: var(--lila-deep); }
.kicker--bone { color: var(--gray-200); }

.lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7;
  color: var(--gray-500);
}

.text-lila { color: var(--lila-deep); }
.text-yellow { color: var(--yellow); }
.mono { font-family: var(--font-mono); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--nogal-950);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translate(2px, -2px); }

.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--nogal-950); box-shadow: 0 14px 34px -16px rgba(244, 197, 66, .85); }
.btn--yellow:hover { --btn-bg: var(--yellow-2); }
.btn--dark { --btn-bg: var(--nogal-900); --btn-fg: var(--bone); }
.btn--dark:hover { --btn-bg: var(--nogal-700); }
.btn--bone { --btn-bg: var(--bone); --btn-fg: var(--nogal-950); }
.btn--bone:hover { --btn-bg: var(--white); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-border: rgba(244, 240, 232, .3);
}
.btn--ghost:hover { --btn-border: var(--yellow); --btn-fg: var(--yellow); }
.btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--nogal-900);
  --btn-border: rgba(36, 20, 13, .22);
}
.btn--ghost-dark:hover { --btn-bg: var(--nogal-900); --btn-fg: var(--bone); --btn-border: var(--nogal-900); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .78rem; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: .96rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: -.005em;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--lila-deep); border-color: currentColor; }
.link-arrow:hover svg { transform: translate(2px, -2px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(36, 20, 13, .14);
  background: rgba(255, 253, 248, .7);
  color: var(--nogal-900);
  flex: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); }

/* ---------- Badges y chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.badge--bone { background: var(--bone); color: var(--nogal-900); }
.badge--yellow { background: var(--yellow); color: var(--nogal-950); }
.badge--lila { background: var(--lila); color: var(--nogal-950); }
.badge--dark { background: rgba(26, 14, 8, .72); color: var(--bone); border: 1px solid rgba(244, 240, 232, .22); backdrop-filter: blur(8px); }
.badge--live { background: var(--live); color: #fff; }
.badge--live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s infinite;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(244, 197, 66, .15);
  flex: none;
}
.badge-dot--live { background: var(--live); box-shadow: 0 0 0 4px rgba(224, 91, 62, .16); animation: pulse 1.6s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label,
.field-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid rgba(36, 20, 13, .16);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--lila-deep);
  box-shadow: 0 0 0 4px rgba(125, 97, 166, .12);
}
.textarea { min-height: 104px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%236b6358' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field-hint { font-size: .72rem; color: var(--gray-400); line-height: 1.5; }
.field-error { font-size: .74rem; color: #a43925; font-weight: 600; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: #b84a32; background: #fff7f4; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 30px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--nogal-900);
  color: var(--bone);
  font-size: .82rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 17px; height: 17px; color: var(--yellow); flex: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bone-2); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border: 3px solid var(--bone-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--nogal-400); }

/* ---------- Utilidades ---------- */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.section-pad { padding-block: clamp(72px, 9vw, 128px); }
.bg-bone { background: var(--bone); }
.bg-bone-2 { background: var(--bone-2); }
.bg-dark { background: var(--nogal-900); color: var(--bone); }
.bg-lila { background: var(--lila-2); }
.bg-yellow { background: var(--yellow); color: var(--nogal-950); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* ---------- Accesibilidad de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 70px; }
  body { font-size: 15px; }
  .btn { min-height: 48px; padding: 0 20px; font-size: .84rem; }
  .btn--lg { min-height: 52px; }
}
