/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px var(--gutter);
  background: rgba(241, 237, 228, .9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
  will-change: transform;
}

.nav__brand {
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: .88rem;
  font-weight: 500;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  flex: none;
}

.nav__clock {
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.hero__left,
.hero__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(96px, 11vh, 130px) clamp(16px, 3.5vw, 52px) clamp(24px, 4vh, 40px);
}

.hero__left {
  background: var(--cream);
  border-right: 2px solid var(--ink);
}

.hero__right {
  background: var(--blue);
  color: var(--cream);
  padding-bottom: clamp(28px, 4vh, 44px);
}

.hero__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero__name {
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 7.8rem);
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.hero__mask {
  display: block;
  overflow: hidden;
  padding: .16em 0 .1em;
}

.hero__line {
  display: block;
}

.hero__tagline {
  margin-top: clamp(16px, 2.5vh, 26px);
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -.01em;
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.hero__kicker {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-blue);
}

.hero__phrase {
  margin: clamp(24px, 4vh, 44px) 0;
  max-width: 16ch;
  min-height: 4.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(241, 237, 228, .35);
}

.hero__meta-label {
  display: block;
  margin-bottom: 4px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-blue-faint);
}

.hero__meta-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__left {
    border-right: none;
    border-bottom: 2px solid var(--ink);
    padding-top: 100px;
  }
  .hero__left .hero__name {
    margin: 28px 0;
  }
}

@media (max-width: 992px) {
  [data-nav-links],
  [data-clock],
  [data-nav-cta] {
    display: none !important;
  }
}

/* ============ 01 MANIFIESTO ============ */
.manifesto {
  position: relative;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
}
.manifesto__lead {
  margin-top: 34px;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.6vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.manifesto__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(30px, 5vw, 70px);
  margin-top: clamp(40px, 6vw, 70px);
}
.manifesto__text {
  flex: 1 1 340px;
  line-height: 1.8;
  font-size: 1.02rem;
  color: var(--text-soft);
}

/* ============ 02 TRAYECTORIA ============ */
.career {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 12vw, 160px) 0;
}
.career__eyebrow {
  color: var(--on-dark-accent);
  margin-bottom: 48px;
}
.career__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
  padding: clamp(26px, 4vw, 44px) 0;
  border-top: 1px solid rgba(241, 237, 228, .25);
}
.career__row--last {
  border-bottom: 1px solid rgba(241, 237, 228, .25);
}
.career__date {
  margin-bottom: 10px;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-accent);
}
.career__date--muted { color: var(--text-faint); }
.career__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.career__title--sm {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}
.career__role {
  margin-top: 8px;
  font-size: .95rem;
  color: var(--text-faint);
}
.career__desc {
  margin: 0;
  line-height: 1.75;
  font-size: .98rem;
  color: var(--on-dark);
}

/* ============ 03 PROYECTOS ============ */
.projects {
  position: relative;
}
.projects__head {
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: 20px;
}
.projects__title {
  margin-top: 20px;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.projects__hint {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--text-muted);
}

/* Las tarjetas se apilan y se superponen al hacer scroll (sticky stack) */
.projects__track {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px var(--gutter) clamp(90px, 12vw, 160px);
}
.projects .card {
  width: 100%;
  max-width: none;
  position: sticky;
  margin-bottom: clamp(22px, 4vw, 40px);
}
.projects .card:nth-child(1) { top: clamp(90px, 12vh, 120px); }
.projects .card:nth-child(2) { top: calc(clamp(90px, 12vh, 120px) + 16px); }
.projects .card:nth-child(3) { top: calc(clamp(90px, 12vh, 120px) + 32px); }
.projects .card:nth-child(4) { top: calc(clamp(90px, 12vh, 120px) + 48px); }
.projects .card:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .projects .card { position: static; }
}

/* Escritorio: las tarjetas se deslizan en horizontal con el scroll (GSAP las anima) */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .projects {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .projects__head {
    flex: none;
    padding-top: clamp(70px, 10vh, 110px);
    padding-bottom: 0;
  }
  .projects__scroller {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .projects__track {
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    margin: 0;
    gap: clamp(20px, 2.5vw, 36px);
    padding: 0 var(--gutter);
  }
  .projects .card {
    position: static;
    flex: 0 0 auto;
    width: clamp(340px, 34vw, 460px);
    min-height: min(370px, 62vh);
    max-width: none;
    margin-bottom: 0;
  }
}

/* ============ 04 STACK ============ */
.stack {
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: clamp(80px, 12vw, 150px);
}
.stack__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}
.stack__eyebrow { margin-bottom: 14px; }
.stack__title {
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.stack__intro {
  max-width: 34ch;
  font-size: .9rem;
  color: var(--text-muted);
}
.stack__cats {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.stack__cat {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 2px solid var(--ink);
}
.stack__cat-head {
  flex: 0 0 clamp(160px, 22vw, 260px);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stack__cat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue);
}
.stack__cat-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.stack__grid {
  flex: 1 1 320px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 13vw, 124px), 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}

/* ============ 05 CONTACTO ============ */
.contact {
  overflow: hidden;
  background: var(--blue);
  color: var(--cream);
  padding: clamp(90px, 13vw, 170px) 0 clamp(90px, 13vw, 150px);
}
.contact__inner { text-align: center; }
.contact__eyebrow {
  color: var(--cream);
  margin-bottom: 26px;
}
.contact__title {
  margin: 0 0 40px;
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.contact__email {
  display: inline-block;
  padding: 20px 42px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border-radius: 999px;
  transition: background .3s, color .3s;
}
.contact__email:hover {
  background: var(--ink);
  color: var(--cream);
}
.contact__socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: 44px;
  font-size: .95rem;
}

/* ============ FOOTER ============ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px var(--gutter);
  background: var(--ink);
  color: var(--text-faint);
  font-size: .82rem;
}
.footer__right {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.footer__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
