/* ==========================================================================
   01 · BASE
   Reset, elementos globales y contenedor raíz. Carga antes de _legacy.css
   (las direcciones posteriores del legacy pueden redefinir y ganar, igual que
   en el original).
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-futura);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--cyan);
}

.site-shell {
  min-width: 320px;
  overflow: hidden;
  background: var(--ink);
}

/* --- Transversal migrado desde _legacy: dirección 02 (paleta aplicada),
       botones, section-*, motion (reveal). --- */

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.button-primary {
  color: var(--ink);
  background: var(--cyan);
  box-shadow: 0 12px 45px rgba(65, 229, 255, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.23);
  background: rgba(255, 255, 255, 0.035);
}

.button-ghost:hover:not(:disabled) {
  border-color: var(--cyan);
}

.section-pad {
  padding: clamp(92px, 10vw, 170px) clamp(16px, 2.2vw, 44px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: start; /* número de sección arriba, alineado con el texto intro (pedido cliente) */
  color: #4f5c78;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--blue);
}

.section-label-light {
  color: rgba(255, 255, 255, 0.42);
}

.section-label-light span {
  color: var(--cyan);
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.42fr 1.2fr 0.72fr;
  gap: clamp(48px, 7vw, 115px);
  align-items: start; /* número de sección y aside arriba, alineados con el texto (cliente) */
  margin-bottom: clamp(60px, 7vw, 112px);
}

.section-heading .section-kicker {
  color: var(--cyan);
}

.section-aside {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
}

.section-heading-dark .section-aside {
  color: #69748d;
}

.section-heading-dark .section-kicker {
  color: var(--blue);
}

@media (max-width: 640px) {
  .section-pad {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Direction 02: editorial, monochrome, flat */

*,
*::before,
*::after {
  border-radius: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

html {
  scroll-behavior: auto;
  background: #0a0a0a;
}

body {
  background: #0a0a0a;
}

::selection {
  color: #ffffff;
  background: #111111;
}

.button {
  min-height: 52px;
  gap: 24px;
  border: 1px solid currentColor;
}

.button:hover:not(:disabled) {
  transform: none;
}

.button-primary,
.button-primary:hover:not(:disabled) {
  color: #ffffff;
  border-color: #0a0a0a;
  background: #0a0a0a;
}

.button-ghost,
.button-ghost:hover:not(:disabled) {
  color: #0a0a0a;
  border-color: #0a0a0a;
  background: transparent;
}

.section-pad {
  /* Menos "aire" vertical y equitativo entre todas las secciones (cliente). */
  padding-top: clamp(48px, 5vw, 80px);
  padding-bottom: clamp(48px, 5vw, 80px);
}

.section-label,
.section-label span,
.section-kicker {
  color: #0a0a0a;
}

.section-label-light,
.section-label-light span,
.section-heading .section-kicker {
  color: #ffffff;
}

.section-heading {
  margin-bottom: clamp(52px, 6vw, 90px);
}

.section-aside {
  color: #a4a4a4;
}

.section-heading-dark .section-aside,
.section-heading-dark .section-kicker {
  color: #4d4d4d;
}

/* Official marks recovered from the supplied event PDF */

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

[hidden] {
  display: none !important;
}

.site-shell > section[id] {
  scroll-margin-top: 88px;
}
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.button:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .section-pad {
    padding-block: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tech Awards 2026 · dirección híbrida con recursos oficiales */

body {
  background: var(--ta-ink);
  letter-spacing: 0.018em;
}

.ta-accent {
  color: var(--ta-green) !important;
}

/* Bases legales con la misma identidad cromática del evento */

.ta-motion-ready .ta-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 700ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  transition-delay: var(--ta-reveal-delay, 0ms) !important;
}

.ta-motion-ready .ta-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 640px) {
  body {
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ta-motion-ready .ta-reveal,
  .ta-motion-ready .ta-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Optimización mobile (Blandskron) — la maqueta no bajaba los
   títulos display en pantallas chicas y desbordaban.
   ============================================================ */
@media (max-width: 820px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .site-shell * {
    min-width: 0;
  } /* permite que items de grid/flex encojan (fix de overflow) */
  h1,
  h2,
  h3,
  p,
  strong,
  span,
  a,
  label {
    overflow-wrap: break-word;
  }
  /* Títulos display fluidos que sí caben en mobile */
  .site-shell h2 {
    font-size: clamp(1.7rem, 7.6vw, 2.7rem) !important;
    letter-spacing: -0.02em !important;
  }
  /* Botones a ancho completo */
  .button,
  .button-primary,
  .button-ghost {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box;
  }
  /* Padding lateral parejo */
  .section-pad {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }
}

/* --- Tipografía (cliente): rótulos y kickers al nivel Nota del PDF --- */
.section-label,
.section-label-light {
  font-size: var(--fs-nota) !important;
}
.section-kicker {
  font-size: var(--fs-nota) !important;
}
.section-aside {
  font-size: var(--fs-cuerpo) !important;
} /* bajadas de sección · Cuerpo (Fechas, Criterios, etc.) */
.button {
  font-size: var(--fs-caption) !important;
}

/* --- Partículas de fondo global (overlay sutil, no bloquea el contenido) --- */
#ta-particles {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
#ta-particles canvas {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  #ta-particles {
    display: none;
  }
}

/* --- Encabezado de sección: de 3 columnas (rótulo · título · aside) a 1 en
       tablet/móvil. Sin esto el título y el aside quedan aplastados en columnas
       angostas y las fuentes se ven enormes respecto al ancho. --- */
@media (max-width: 820px) {
  .section-heading {
    display: block;
    margin-bottom: clamp(40px, 6vw, 64px);
  }
  .section-heading > * {
    margin-bottom: 26px;
  }
  .section-heading > *:last-child {
    margin-bottom: 0;
  }
}
