/* Base tipográfica y animaciones compartidas. */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #ffffff;
  color: #12161b;
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: #1f5fd0;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #12161b;
}
p {
  text-wrap: pretty;
}
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}
::selection {
  background: #1f5fd0;
  color: #fff;
}
@keyframes scMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes scTicket {
  0% {
    transform: translateY(-104%);
  }
  18% {
    transform: translateY(0);
  }
  82% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-104%);
  }
}
@keyframes scBlink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  95% {
    opacity: 0.15;
  }
  100% {
    opacity: 1;
  }
}
@keyframes scSpin {
  0% {
    transform: rotateX(9deg) rotateY(-26deg);
  }
  50% {
    transform: rotateX(9deg) rotateY(26deg);
  }
  100% {
    transform: rotateX(9deg) rotateY(-26deg);
  }
}
@keyframes scFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes scDash {
  to {
    stroke-dashoffset: -28;
  }
}

/* Accesibilidad y contenido visible sin JavaScript. */
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #1f5fd0;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
img {
  max-width: 100%;
}
main,
section,
header,
footer {
  min-width: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: #12161b;
  color: #fff;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}
[data-rv] {
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
  [data-tilt] {
    transform: none !important;
  }
}
