/* Nyxen Studio */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #0d0d0d;
  --muted: #6d6d6d;
  --line: #e4e4e4;
  --soft: #f5f5f4;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 3.4vw, 52px);
  --nav-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p, dl, dd, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.97); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ---------- Navegación ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.nav--solid {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand__logo {
  display: block;
  height: 16px;
  aspect-ratio: 1758 / 182;
  fill: currentColor;
}
.brand__sub {
  padding-left: 12px;
  border-left: 1px solid rgba(13, 13, 13, .28);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.nav__brand { transition: opacity .25s ease; }
.nav__brand:hover { opacity: .65; }
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero: versión estática (sin JS / sin WebGL / menos movimiento) ---------- */

.hero__stage {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 10vw, 172px);
  line-height: .88;
  letter-spacing: -0.055em;
  --shift: .7em;
}
.hero__line {
  display: block;
  white-space: nowrap;
  will-change: transform;
}
.hero__line--a { transform: translate3d(calc(var(--x, 0px) - var(--shift)), 0, 0); }
.hero__line--b { transform: translate3d(calc(var(--x, 0px) + var(--shift)), 0, 0); }
.hero__kicker {
  margin: .95em 0 .8em;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

.hero__canvas { display: none; }

.hero__grid {
  --gap: clamp(6px, .8vw, 12px);
  width: min(62vw, calc((100svh - 250px) * 1.6));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.hero__cell { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.hero__cell img { width: 100%; height: 100%; object-fit: cover; }

.hero__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}
.hero__caption-name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.hero__caption-kind { color: var(--muted); }

.hero__hint { display: none; }

/* ---------- Hero: versión animada ---------- */

.hero.is-live { height: 460vh; }
.hero.is-live .hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}
.hero.is-live .hero__title {
  position: absolute;
  inset: 0;
  justify-content: center;
  z-index: 1;
}
.hero.is-live .hero__kicker { opacity: 0; }
.hero.is-live .hero__canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.hero.is-live .hero__grid {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}
.hero.is-live.is-grid .hero__grid { pointer-events: auto; }
.hero.is-live .hero__cell { background: none; cursor: default; }

.hero.is-live .hero__caption {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(26px, 5.2vh, 54px);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}
.hero.is-live .hero__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3.6vh, 36px);
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px rgba(13, 13, 13, .08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}
.hero__hint-line {
  position: relative;
  width: 34px;
  height: 1px;
  background: rgba(13, 13, 13, .2);
  overflow: hidden;
}
.hero__hint-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: hint 2.2s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes hint {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- Secciones ---------- */

.statement, .work, .services, .book {
  padding: clamp(84px, 11vw, 176px) var(--gutter);
  max-width: 1480px;
  margin: 0 auto;
}

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

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -0.045em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 3fr;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.statement {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 3fr;
  column-gap: 24px;
  row-gap: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.statement__lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4.1vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 21ch;
}
.statement__body {
  grid-column: 2;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
}

.work { padding-top: 0; }
.work__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3.4vw, 56px) clamp(14px, 1.6vw, 24px);
}
.work__item--wide { grid-column: 1 / -1; }
.work__item figure { display: grid; gap: 14px; }
.work__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
  outline: 1px solid rgba(13, 13, 13, .07);
  outline-offset: -1px;
}
.work__item--wide img { aspect-ratio: 2 / 1; }
.work__item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
}
.work__item figcaption strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.work__item figcaption span { color: var(--muted); text-align: right; }

.services { border-top: 1px solid var(--line); }
.services__row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 1.4fr 1.6fr;
  gap: 24px;
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 34px) 0;
  border-top: 1px solid var(--line);
}
.services__row:last-child { border-bottom: 1px solid var(--line); }
.services__row dt {
  grid-column: 2;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.services__row dd { color: var(--muted); max-width: 46ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: clamp(44px, 6vw, 88px) 0 0 25%;
}
.facts li { display: grid; gap: 4px; }
.facts strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.03em;
}
.facts span { color: var(--muted); font-size: 15px; }

/* ---------- Agenda: reservar llamada ---------- */

.book {
  /* Para darle color a la agenda basta con cambiar estas tres líneas. */
  --book-accent: var(--ink);
  --book-on-accent: var(--paper);
  --book-tint: #ececea;
  --book-tint-hover: #dededb;
  border-top: 1px solid var(--line);
}

.book__head {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: clamp(40px, 5.4vw, 80px);
}
.book__eyebrow { display: flex; align-items: center; gap: 14px; letter-spacing: .28em; }
.book__eyebrow::before, .book__eyebrow::after { content: ''; width: 42px; height: 1px; background: var(--line); }
.book__sub { max-width: 44ch; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); }

.book__card {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fafaf9;
  overflow: hidden;
  box-shadow: 0 50px 90px -60px rgba(13, 13, 13, .28);
}

.book__info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
}
.book__host { display: flex; align-items: center; gap: 14px; }
.book__host img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  outline: 1px solid rgba(13, 13, 13, .12);
}
.book__host b { display: block; font-size: 15px; font-weight: 600; }
.book__host span { font-size: 13px; color: var(--muted); }
.book__info h3 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.book__desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.book__points { display: grid; gap: 10px; }
.book__points li { position: relative; padding-left: 26px; font-size: 14.5px; }
.book__points li::before {
  content: '';
  position: absolute;
  left: 2px; top: 6px;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--book-accent);
  border-bottom: 1.5px solid var(--book-accent);
  transform: rotate(-45deg);
}
.book__meta {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.book__meta li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.book svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.book__meta svg, .book__picked svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.book__picked {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--book-tint);
  font-size: 14px;
  font-weight: 500;
}
.book__picked[hidden] { display: none; }
.book__picked svg { color: var(--book-accent); }

.book__main { position: relative; padding: clamp(24px, 3vw, 40px); min-height: 520px; }
.book__step { display: none; }
.book__step.is-on { display: grid; animation: book-in .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes book-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.book__s1 { grid-template-columns: minmax(0, 1fr) 210px; gap: clamp(18px, 3vw, 36px); }
.book__month { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.book__month b {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.book__month b::first-letter { text-transform: uppercase; }
.book__nav {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid rgba(13, 13, 13, .16);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .25s ease;
}
.book__nav svg { width: 20px; height: 20px; }
.book__nav:hover:not(:disabled) { background: var(--book-tint); }
.book__nav:disabled { opacity: .3; cursor: default; }
.book__dow, .book__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.book__dow span { padding-bottom: 10px; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #b4b4b1; }
.book__day {
  position: relative;
  aspect-ratio: 1;
  max-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #c9c9c6;
  font: inherit;
  font-size: 15px;
  cursor: default;
}
.book__day.is-free {
  background: var(--book-tint);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.book__day.is-free:hover { background: var(--book-tint-hover); transform: translateY(-1px); }
.book__day.is-today::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 7px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.book__day.is-sel, .book__day.is-sel:hover { background: var(--book-accent); color: var(--book-on-accent); }

.book__slots { display: flex; flex-direction: column; min-width: 0; }
.book__slots-h { min-height: 40px; margin-bottom: 16px; display: flex; align-items: center; font-size: 15px; font-weight: 600; }
.book__slot-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; padding-right: 4px; }
.book__empty { font-size: 14px; line-height: 1.55; color: #a9a9a6; }
.book__sep { margin: 8px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #a9a9a6; }
.book__slot { display: flex; gap: 6px; opacity: 0; animation: book-in .4s forwards; }
.book__slot button {
  flex: 1;
  min-height: 48px;
  padding: 0 8px;
  border: 1px solid rgba(13, 13, 13, .22);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.book__slot button:hover { background: var(--book-tint); border-color: var(--book-accent); }
.book__slot.is-sel button:first-child { flex: .9; background: var(--book-tint); border-color: transparent; }
.book__slot .book__go { display: none; background: var(--book-accent); border-color: var(--book-accent); color: var(--book-on-accent); }
.book__slot .book__go:hover { background: var(--book-accent); opacity: .85; }
.book__slot.is-sel .book__go { display: block; }

.book__s2, .book__s3 { grid-template-columns: 1fr; align-content: start; gap: 18px; }
.book__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.book__back svg { width: 18px; height: 18px; }
.book__back:hover { color: var(--ink); }
.book__main h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.book__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.book__grid label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.book__grid em { font-style: normal; color: #a9a9a6; }
.book__full { grid-column: 1 / -1; }
.book__grid input, .book__grid select, .book__grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .25s ease;
}
.book__grid textarea { resize: vertical; min-height: 96px; }
.book__grid input::placeholder, .book__grid textarea::placeholder { color: #b4b4b1; }
.book__grid input:focus, .book__grid select:focus, .book__grid textarea:focus { outline: none; border-color: var(--book-accent); }
.book__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.book__err { min-height: 1.4em; font-size: 14px; color: #c81e1e; }
.book__err a { text-decoration: underline; }
.book__submit { cursor: pointer; font-family: inherit; }
.book__submit:disabled { opacity: .55; cursor: default; }

.book__s3 { justify-items: center; text-align: center; padding-top: clamp(20px, 5vw, 60px); }
.book__check { width: 84px; height: 84px; }
.book__check circle { stroke: var(--book-accent); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: book-draw .8s .1s forwards; }
.book__check path { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; animation: book-draw .5s .75s forwards; }
@keyframes book-draw { to { stroke-dashoffset: 0; } }
.book__done-when { font-size: 18px; font-weight: 600; }
.book__done-when::first-letter { text-transform: uppercase; }
.book__done-txt { max-width: 420px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.book__done-txt b { color: var(--ink); font-weight: 600; }
.book__gcal { margin-top: 6px; height: 48px; padding: 0 22px; }

.book__alt { margin-top: 28px; text-align: center; font-size: 14.5px; color: var(--muted); }
.book__alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(13, 13, 13, .3); }
.book__alt a:hover { text-decoration-color: currentColor; }

.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer__brand { margin-right: auto; }
.footer__brand .brand__logo { height: 11px; }
.footer__brand .brand__sub { font-size: 9px; line-height: 11px; }
.footer a:hover { color: var(--ink); }

/* ---------- Adaptación ---------- */

@media (max-width: 860px) {
  .brand__logo { height: 13px; }
  .brand__sub { line-height: 13px; }
  .brand { gap: 10px; }
  .brand__sub { padding-left: 10px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .section-head, .statement { grid-template-columns: 1fr; }
  .statement__body { grid-column: 1; }
  .services__row { grid-template-columns: 1fr; gap: 8px; }
  .services__row dt { grid-column: 1; }
  .facts { grid-template-columns: 1fr; margin-left: 0; }
  .work__list { grid-template-columns: 1fr; }
  .work__item--wide img { aspect-ratio: 16 / 10; }
}

@media (max-width: 980px) {
  .book__card { grid-template-columns: 1fr; }
  .book__info { border-right: 0; border-bottom: 1px solid var(--line); }
  .book__points, .book__desc { display: none; }
  .book__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 14px; }
}
@media (max-width: 720px) {
  .book__s1 { grid-template-columns: 1fr; }
  .book__slot-list { max-height: none; }
  .book__grid { grid-template-columns: 1fr; }
  .book__main { min-height: 0; }
  .book__day { border-radius: 12px; }
  .book__card { border-radius: 20px; }
  .book__submit { width: 100%; }
}

@media (max-aspect-ratio: 4/5) {
  .hero__title { font-size: clamp(40px, 12.4vw, 96px); --shift: .32em; }
  .hero__grid {
    --gap: 7px;
    width: min(88vw, calc((100svh - 250px) / 1.6));
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__cell:last-child {
    grid-column: 1 / -1;
    width: calc(50% - var(--gap) / 2);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__hint-line::after { animation: none; }
  .book__step.is-on, .book__slot { animation: none; opacity: 1; }
  .book__check circle, .book__check path { animation: none; stroke-dashoffset: 0; }
}
