/* Ecuanegos Tema — tokens + reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --eg-primary: #EB0606;
  --eg-accent: #EB0606;
  --eg-text: #f4f4f4;
  --eg-bg: #090A0B;
  --eg-bg-soft: #101114;
  --eg-muted: #a3a3a3;
  --eg-border: rgba(255, 255, 255, 0.09);
  --eg-glass: rgba(255, 255, 255, 0.045);
  --eg-heading: #ffffff;
  --eg-header-fill: rgba(9, 10, 11, 0.58);
  --eg-nav: rgba(255, 255, 255, 0.78);
  --eg-nav-hover: #ffffff;
  --eg-cta-text: #ffffff;
  --eg-font: "Sora", sans-serif;
  --eg-container: 1140px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

html,
body {
  background: var(--eg-bg);
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--eg-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--eg-text);
}

::selection {
  background: color-mix(in srgb, var(--eg-primary) 28%, transparent);
  color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--eg-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--eg-text);
}

p {
  margin: 0 0 1rem;
}

.eg-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--eg-primary);
  color: var(--eg-bg);
}

.eg-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.eg-container {
  width: min(100% - 2rem, var(--eg-container));
  margin-inline: auto;
}

.eg-main,
.eg-main--flush {
  padding: 0;
  margin: 0;
  background: var(--eg-bg);
}

.eg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid color-mix(in srgb, var(--eg-primary) 72%, transparent);
  border-radius: 12px;
  color: var(--eg-cta-text);
  font-weight: 600;
  text-decoration: none;
}

.eg-btn:hover {
  text-decoration: none;
  border-color: var(--eg-primary);
}

.eg-back-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--eg-primary) 55%, transparent);
  background: color-mix(in srgb, var(--eg-header-fill) 88%, transparent);
  color: var(--eg-heading);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--eg-heading) 10%, transparent),
    0 12px 28px color-mix(in srgb, #000 22%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.86);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none !important;
}

.eg-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.eg-back-top:hover {
  background: color-mix(in srgb, var(--eg-primary) 16%, transparent);
  border-color: var(--eg-primary);
  color: var(--eg-primary);
  text-decoration: none !important;
}

.eg-back-top:focus-visible {
  outline: 2px solid var(--eg-primary);
  outline-offset: 3px;
}

body.eg-nav-open .eg-back-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 767px) {
  .eg-back-top {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-back-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: none;
  }

  .eg-back-top.is-visible {
    transform: none;
  }
}
