/* ===================== TOKENS ===================== */
:root {
  --black: #000000;
  --near-black: #0a0a0a;
  --white: #ffffff;
  --yellow: #f5c611;
  --rose: #eed8cf;

  --ink: #111111;
  --ink-soft: #555555;
  --line: #e6e6e6;
  --on-black-soft: rgba(255, 255, 255, 0.68);
  --on-black-faint: rgba(255, 255, 255, 0.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1140px;
  --radius: 14px;
  --header-h: 76px;
}

/* ===================== RESET ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--yellow);
  color: var(--black);
}
.btn--primary:hover { background: #ffd633; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--on-black-faint);
}
.btn--ghost:hover { border-color: var(--white); }

.btn--small { padding: 10px 20px; font-size: 0.88rem; }

.btn--linkedin svg { width: 18px; height: 18px; }

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--on-black-faint);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img { height: 36px; width: auto; }

.nav__list {
  display: flex;
  gap: 36px;
}

.nav__list a {
  color: var(--on-black-soft);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__list a:hover { color: var(--white); }

.header__cta { margin-left: auto; }

/* Separación extra entre el logo y el menú, solo en escritorio */
@media (min-width: 761px) {
  .nav { margin-left: 32px; }
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: calc(var(--header-h) + 120px) 0 140px;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}
.hero__blob--yellow {
  width: 420px;
  height: 420px;
  background: var(--yellow);
  opacity: 0.16;
  top: -140px;
  right: -120px;
}
.hero__blob--rose {
  width: 300px;
  height: 300px;
  background: var(--rose);
  opacity: 0.08;
  bottom: -120px;
  left: -100px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.eyebrow--dark { color: #b8860b; }

.hero__title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--on-black-soft);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 110px 0;
}

.section--alt { background: #fafafa; }

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section__title--light { color: var(--white); }

.section__note {
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.section__lead {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ===================== CLIENTS ===================== */
.clients {
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.clients__title {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.clients__viewport { overflow: hidden; }

/* Sin JS o con movimiento reducido: grilla estática centrada */
.clients__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0 24px;
}

/* Carrusel (activado por js/main.js) */
.clients__viewport.is-animated {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.clients__viewport.is-animated .clients__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 0;
  animation: clients-scroll 70s linear infinite;
}
.clients__viewport.is-animated:hover .clients__track { animation-play-state: paused; }

@keyframes clients-scroll {
  to { transform: translateX(calc(-50% - 10px)); }
}

.client {
  flex: 0 0 180px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.client img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===================== LMS ===================== */
.lms__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  list-style: none;
  margin-top: 40px;
}
.lms__features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.lms__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.lms__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 40px;
}

.lms__partner {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ===================== ABOUT ===================== */
.about {
  display: grid;
  gap: 20px;
  max-width: 760px;
}
.about__text {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ===================== SERVICES GROUPS ===================== */
.services__group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}
.services__group::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}
.services__group--next { margin-top: 56px; }

/* ===================== CARDS ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card__text {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ===================== PILLARS ===================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.pillar__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.pillar__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.pillar__text {
  font-size: 0.92rem;
  color: var(--on-black-soft);
}

/* ===================== CONTACT ===================== */
.contact__lead {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  transition: background 0.2s ease;
}
.contact__card:hover { background: var(--near-black); }

.contact__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}
.contact__value {
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s ease;
}
.contact__social svg { width: 20px; height: 20px; }
.contact__social:hover { color: #0a66c2; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--on-black-faint);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo { height: 20px; width: auto; }

.footer__copy {
  font-size: 0.82rem;
  color: var(--on-black-soft);
}

.footer__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--on-black-faint);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-black-soft);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer__social svg { width: 16px; height: 16px; }
.footer__social:hover { color: var(--white); border-color: var(--white); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .nav__toggle { display: flex; }

  .header__logo img { height: 30px; }

  .nav.is-open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--on-black-faint);
    padding: 12px 24px 28px;
  }
  .nav.is-open .nav__list {
    flex-direction: column;
    gap: 4px;
  }
  .nav.is-open .nav__list a {
    display: block;
    padding: 12px 0;
    font-size: 1.02rem;
  }

  .hero { padding: calc(var(--header-h) + 70px) 0 90px; }
  .section { padding: 80px 0; }
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }

  .services__group--next { margin-top: 40px; }

  .clients { padding: 44px 0; }
  .client { flex-basis: 150px; height: 80px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .clients__viewport.is-animated .clients__track { animation: none; }
}
