* {
  box-sizing: border-box;
}

:root {
  --brand-blue: #244acb;
  --brand-cyan: #159dbb;
  --brand-green: #40c58a;
  --ink: #111111;
  --muted: #62686d;
  --line: #dcdedc;
  --soft: #f2f4f3;
  --white: #ffffff;
  --brand-gradient: linear-gradient(115deg, var(--brand-blue) 0%, var(--brand-cyan) 52%, var(--brand-green) 100%);
  --shell: min(1380px, calc(100% - 64px));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

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

img {
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand-logo {
  display: block;
  width: 178px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.desktop-nav a {
  position: relative;
  color: #41474b;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .2s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-contact {
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
}

.hero {
  padding: 58px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 76px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  max-width: 1180px;
  margin: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(66px, 9.6vw, 150px);
  line-height: .87;
  letter-spacing: -.065em;
  font-weight: 600;
}

.hero-bottom {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 620px) auto;
  gap: 40px;
  align-items: end;
}

.hero-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}

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

.cta-dark {
  background: var(--ink);
  color: var(--white);
}

.cta-light {
  background: var(--white);
}

.intro {
  padding: 108px 0 120px;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 60px;
}

.intro-label {
  padding-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.intro h2,
.about h2 {
  max-width: 1050px;
  margin: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 600;
}

.intro-text {
  max-width: 760px;
  margin: 42px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.service {
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 60px;
  padding: 72px 0 78px;
}

.service-white {
  background: var(--white);
}

.service-soft {
  background: var(--soft);
}

.service-brand {
  background: linear-gradient(120deg, rgba(36,74,203,.97) 0%, rgba(21,157,187,.96) 52%, rgba(64,197,138,.94) 100%);
  color: var(--white);
}

.service-index {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
}

.service-index > span {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 23px;
  font-weight: 600;
}

.service-index small {
  max-width: 140px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.service-brand .service-index small {
  color: rgba(255,255,255,.72);
}

.service-main h3 {
  max-width: 930px;
  margin: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(50px, 7vw, 105px);
  line-height: .91;
  letter-spacing: -.058em;
  font-weight: 600;
}

.service-main > p {
  max-width: 760px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.service-brand .service-main > p {
  color: rgba(255,255,255,.82);
}

.service-meta,
.service-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.service-brand .service-meta,
.service-brand .service-flow {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.82);
}

.service-flow i {
  font-style: normal;
  opacity: .55;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 38px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.service-link span {
  transition: transform .2s ease;
}

.service-link:hover span {
  transform: translate(3px,-3px);
}

.service-link-secondary {
  border-bottom-color: #9da2a4;
  color: var(--muted);
}

.service-actions .service-link {
  margin-top: 0;
}

.service-link-on-brand {
  border-color: rgba(255,255,255,.85);
  color: var(--white);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 46px;
  border-top: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.training-grid > div {
  min-height: 190px;
  padding: 22px 22px 24px 0;
  border-right: 1px solid rgba(255,255,255,.35);
}

.training-grid > div:not(:first-child) {
  padding-left: 22px;
}

.training-grid > div:last-child {
  border-right: 0;
}

.training-grid span {
  display: block;
  margin-bottom: 48px;
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .75;
}

.training-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.training-grid p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  line-height: 1.5;
}

.about {
  padding: 112px 0 122px;
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 60px;
}

.about-number {
  padding-top: 6px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 23px;
  font-weight: 600;
}

.about-eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

.about-main > p:last-child {
  max-width: 680px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.closing {
  background: var(--ink);
  color: var(--white);
}

.closing-line {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -.035em;
}

.closing-line a {
  border-bottom: 1px solid rgba(255,255,255,.55);
}

.footer {
  padding: 36px 0;
  background: var(--white);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.footer-logo {
  width: 152px;
  height: auto;
  display: block;
}

.footer-copy {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .training-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .training-grid > div:nth-child(2) {
    border-right: 0;
  }

  .training-grid > div:nth-child(3),
  .training-grid > div:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,.35);
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 30px, 1380px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: 145px;
  }

  .header-contact {
    font-size: 12px;
  }

  .hero {
    padding: 42px 0 58px;
  }

  .hero-kicker {
    margin-bottom: 56px;
    flex-direction: column;
    gap: 7px;
  }

  .hero h1 {
    font-size: clamp(56px, 18vw, 86px);
    line-height: .9;
  }

  .hero-bottom {
    margin-top: 52px;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .intro {
    padding: 76px 0 82px;
  }

  .intro-grid,
  .service-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro h2,
  .about h2 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .service-grid {
    padding: 58px 0 62px;
  }

  .service-index {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  .service-main h3 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .training-grid {
    grid-template-columns: 1fr;
  }

  .training-grid > div,
  .training-grid > div:not(:first-child) {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,.35);
  }

  .training-grid > div:first-child {
    border-top: 0;
  }

  .training-grid span {
    margin-bottom: 22px;
  }

  .about {
    padding: 78px 0 84px;
  }

  .closing-line {
    min-height: 155px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }

  .footer-grid,
  .footer-copy {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .hero-actions,
  .service-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    width: 100%;
  }

  .service-link {
    width: fit-content;
  }

  .footer-copy {
    gap: 6px;
  }
}


/* =========================================================
   EFECTOS MINIMALISTAS CEFORE
   ========================================================= */

/* Revelado progresivo */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .75s cubic-bezier(.2,.65,.3,1),
    transform .75s cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-delay-1 {
  transition-delay: .08s;
}

.js .reveal-delay-2 {
  transition-delay: .16s;
}

.js .reveal-delay-3 {
  transition-delay: .24s;
}


/* Header más vivo pero sobrio */
.site-header {
  transition:
    box-shadow .25s ease,
    background .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 26px rgba(0,0,0,.055);
  background: rgba(255,255,255,.97);
}

.brand-logo {
  transition: transform .3s cubic-bezier(.2,.65,.3,1);
}

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


/* Hero con movimiento casi imperceptible */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(21,157,187,.10) 0%,
      rgba(64,197,138,.06) 35%,
      rgba(36,74,203,.035) 58%,
      transparent 72%
    );
  filter: blur(10px);
  pointer-events: none;
  animation: ceforeFloat 10s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  animation: ceforeLine 1.4s .18s cubic-bezier(.2,.65,.3,1) forwards;
}

@keyframes ceforeFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-34px, 30px, 0) scale(1.05);
  }
}

@keyframes ceforeLine {
  to {
    width: 100%;
  }
}


/* Titulares con leve respuesta al hover */
.service-main h3,
.intro h2,
.about h2 {
  transition:
    letter-spacing .35s ease,
    transform .35s cubic-bezier(.2,.65,.3,1);
}

.service:hover .service-main h3 {
  transform: translateX(5px);
  letter-spacing: -.06em;
}


/* Número lateral */
.service-index > span,
.about-number {
  transition:
    color .25s ease,
    transform .25s ease;
}

.service:hover .service-index > span {
  color: var(--brand-cyan);
  transform: translateX(3px);
}

.service-brand:hover .service-index > span {
  color: #ffffff;
}


/* Barras/accesos */
.service-link,
.header-contact {
  position: relative;
}

.service-link::after,
.header-contact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .25s ease;
}

.service-link:hover::after,
.header-contact:hover::after {
  width: 100%;
}


/* Tarjetas de entrenamiento */
.training-grid > div {
  transition:
    background .25s ease,
    transform .25s cubic-bezier(.2,.65,.3,1);
}

.training-grid > div:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-4px);
}


/* CTA: microinteracción */
.cta {
  overflow: hidden;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-102%);
  background: rgba(255,255,255,.12);
  transition: transform .35s cubic-bezier(.2,.65,.3,1);
}

.cta:hover::before {
  transform: translateX(0);
}

.cta-light::before {
  background: rgba(36,74,203,.05);
}


/* Línea de cierre */
.closing-line a {
  transition:
    opacity .2s ease,
    transform .2s ease;
}

.closing-line a:hover {
  opacity: .72;
  transform: translateX(4px);
}


/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
