/* ==========================================================================
   Zeltron Academy — Base
   Tokens de diseño, reset, tipografía y utilidades compartidas.
   ========================================================================== */

:root {
  /* Marca */
  --zt-blue: #045cb4;
  --zt-blue-strong: #034a94;
  --zt-blue-deep: #023168;
  --zt-blue-light: #3d8edb;
  --zt-blue-100: #d6e7f8;
  --zt-blue-050: #eef5fd;
  --zt-red: #ff0000;
  --zt-red-strong: #d60000;
  --zt-red-050: #fff1f1;

  /* Neutros */
  --zt-navy: #072a4a;
  --zt-navy-deep: #041b31;
  --zt-ink: #0b1f33;
  --zt-text: #465b6f;
  --zt-muted: #72869a;
  --zt-line: #dde7f2;
  --zt-surface: #f4f8fd;
  --zt-white: #ffffff;

  /* Formas */
  --zt-radius-xl: 28px;
  --zt-radius-lg: 20px;
  --zt-radius: 14px;
  --zt-radius-sm: 10px;

  /* Sombras */
  --zt-shadow-sm: 0 2px 10px rgba(9, 37, 66, 0.05);
  --zt-shadow: 0 16px 40px -24px rgba(9, 37, 66, 0.38);
  --zt-shadow-lg: 0 36px 80px -44px rgba(4, 36, 70, 0.6);

  /* Tipografía */
  --zt-font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --zt-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --zt-header-h: 78px;
  --zt-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body.zt-body {
  margin: 0;
  font-family: var(--zt-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--zt-text);
  background-color: var(--zt-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--zt-font-display);
  color: var(--zt-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  margin: 0;
}

a {
  color: var(--zt-blue);
  text-decoration: none;
  transition: color 0.2s var(--zt-ease);
}

a:hover {
  color: var(--zt-blue-strong);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(4, 92, 180, 0.16);
  color: var(--zt-ink);
}

:focus-visible {
  outline: 3px solid rgba(4, 92, 180, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout de secciones
   -------------------------------------------------------------------------- */

.zt-section {
  position: relative;
  padding: clamp(3.75rem, 7vw, 7rem) 0;
}

.zt-section--surface {
  background: var(--zt-surface);
}

.container {
  --bs-gutter-x: 2.5rem;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1180px;
  }
}

.zt-section__head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 3.5vw, 3.25rem);
}

.zt-section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Tipografía de apoyo
   -------------------------------------------------------------------------- */

.zt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--zt-font-body);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zt-blue);
}

.zt-eyebrow--light {
  color: #bfe0ff;
}

.zt-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zt-red);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.16);
  flex: 0 0 auto;
}

.zt-h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.1vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.zt-h2--light {
  color: var(--zt-white);
}

.zt-lede {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.13rem);
  line-height: 1.7;
  color: var(--zt-text);
}

.zt-lede--light {
  color: rgba(214, 231, 248, 0.82);
}

.zt-note {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--zt-muted);
}

.zt-note--light {
  color: rgba(191, 224, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Piezas reutilizables
   -------------------------------------------------------------------------- */

.zt-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.zt-icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.2em;
}

[hidden] {
  display: none !important;
}

.zt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 92, 180, 0.16);
  background: var(--zt-blue-050);
  color: var(--zt-blue-strong);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.zt-pill--red {
  border-color: rgba(255, 0, 0, 0.18);
  background: var(--zt-red-050);
  color: var(--zt-red-strong);
}

.zt-pill--soft {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #d5ecff;
}

.zt-checklist {
  display: grid;
  gap: 0.85rem;
}

.zt-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--zt-text);
}

.zt-checklist__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--zt-blue-050);
  color: var(--zt-blue);
}

.zt-checklist__mark .zt-icon {
  width: 13px;
  height: 13px;
}

@media (min-width: 768px) {
  .zt-checklist--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.75rem;
  }
}

.zt-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  background: var(--zt-navy);
  color: var(--zt-white);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--zt-ease);
}

.zt-skip-link:focus {
  transform: translateY(0);
  color: var(--zt-white);
}

/* --------------------------------------------------------------------------
   Animaciones de entrada
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--zt-ease), transform 0.7s var(--zt-ease);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
