/* ============================================================
   DISTRICT STUDIO - Exvia design adaptation
   Cargado DESPUÉS de style.css. Reemplaza tokens y reskinea
   componentes clave para alinear con el Framer Exvia template.
   ============================================================ */

/* Geist + Geist Mono via Google Fonts ----------------------- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;700;900&family=Geist+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

/* -- Tokens override (Exvia) -------------------------------- */
:root {
  /* Paleta Exvia */
  --black: rgb(0, 0, 0);
  --white: rgb(255, 255, 255);
  --darker-gray: rgb(19, 19, 19);
  --dark-gray: rgb(108, 108, 108);
  --gray: rgb(181, 181, 181);
  --light-gray: rgb(234, 234, 234);
  --white-20: rgba(255, 255, 255, 0.2);

  --muted: var(--dark-gray);

  /* Tipografía Exvia */
  --font-display: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Geist', 'Inter', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Escala tipográfica - alineada con Exvia text styles */
  --text-h1: clamp(64px, 14vw, 200px);  /* Heading 1 original = 271px, clamped razonable */
  --text-h2: clamp(48px, 9vw, 140px);   /* Heading 2 = 160px */
  --text-h3: clamp(28px, 3.6vw, 48px);  /* Heading 3 = 48px */
  --text-h4: clamp(18px, 1.8vw, 24px);  /* Heading subtitle */
  --text-lede: clamp(18px, 1.6vw, 22px);
  --text-body: 16px;
  --text-small: 14px;
  --text-micro: 12px;

  /* Espaciado tighter Exvia */
  --pad-x: 24px;
  --pad-y: 100px;

  /* Curva universal Exvia */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: var(--darker-gray);
    --fg: var(--white);
  }
}

.force-dark {
  --bg: var(--darker-gray);
  --fg: var(--white);
  background: var(--bg);
  color: var(--fg);
}

/* -- Base reset overrides ----------------------------------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* -- Typography preset overrides ---------------------------- */

/* Eyebrow / labels - Exvia text-xs */
.label,
.label--invert {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--invert { color: rgba(255, 255, 255, 0.55); }

/* Section titles - Exvia H2 weight + tracking */
.section__title,
.footer__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: none;
}

/* H3 within sections */
.section__h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
  margin: 0 0 24px;
}

/* Lede / body */
.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lede);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
  opacity: 0.92;
  max-width: 56ch;
}
.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 56ch;
}

/* Section intro (light copy under a title) */
.section__intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lede);
  line-height: 1.45;
  letter-spacing: -0.01em;
  opacity: 0.65;
  max-width: 56ch;
}

/* -- Nav reskin --------------------------------------------- */
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__links {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links a {
  opacity: 0.85;
  transition: opacity 200ms var(--ease);
}
.nav__links a:hover { opacity: 1; }

/* -- Mobile menu overlay reskin ----------------------------- */
.menu-overlay {
  background: var(--darker-gray);
  color: var(--white);
}
.menu-overlay__close {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid currentColor;
  padding: 8px 14px;
}
.menu-overlay__links {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 13vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: none;
}
.menu-overlay__links a {
  transition: opacity 200ms var(--ease);
}
.menu-overlay__links a:hover {
  opacity: 0.55;
}
.menu-overlay__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -- Hero reskin -------------------------------------------- */
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: none;
}
.hero__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 56ch;
  opacity: 0.92;
}
.hero__footer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* -- Marquee reskin ----------------------------------------- */
.marquee {
  border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}
.marquee__track {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* -- Buttons reskin ----------------------------------------- */
.btn {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 0;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn--ghost {
  background: transparent;
  border: 1px solid currentColor;
}
.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
}
.btn--solid {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
}
.btn--solid:hover {
  background: transparent;
  color: var(--fg);
}
.btn--text {
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.85;
}
.btn--text:hover {
  opacity: 1;
  background: transparent;
  color: inherit;
}

/* -- Stats reskin ------------------------------------------- */
.stats__n {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stats__l {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* -- Spaces / cards reskin ---------------------------------- */
.space {
  transition: opacity 300ms var(--ease);
}
.space__n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.55;
}
.space__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.space__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  opacity: 0.78;
}
.space__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Feature cards (estudio, club) */
.feature__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.feature__list,
.benefit__list {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* Profiles (cowork) */
.profile__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.profile__desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.78;
}
.profile__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Benefits */
.benefit__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Rates */
.rate__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
}
.rate ul li {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: -0.005em;
}
.rate ul li > span:last-child {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.rate__foot,
.rates__foot,
.plans__foot {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Plans (membresías) */
.plan__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.plan__hours {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.plan__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}
.plan__feat {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
}

/* Steps (club) */
.steps__n {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.55;
}
.steps p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* Page hero (inner pages) */
.page-hero__inner .section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 130px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: none;
}
.page-hero__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 20px;
}

/* -- FAQ reskin --------------------------------------------- */
.faq details summary {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.02em;
}
.faq details p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  opacity: 0.82;
}

/* -- Calendar reskin ---------------------------------------- */
.calendar__empty {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}
.calendar__cta {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
.calendar__cta a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

/* -- Shop (tienda) reskin ----------------------------------- */
.shop__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.shop__artist {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.shop__meta {
  font-family: var(--font-body);
  font-size: 13px;
  opacity: 0.65;
}
.shop__price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* -- Footer reskin ------------------------------------------ */
.footer__bottom {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* -- SpotlightReveal (hero animation) -----------------------
   IMPORTANTE: respeta el position layer original de cada
   elemento hero (algunos son absolute, otros relative).
   Solo subimos z-index para que queden sobre el spotlight. */
.hero .spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;          /* Detrás del grad/iso/inner/footer */
  overflow: hidden;
  pointer-events: auto;
}
.hero .spotlight__blur,
.hero .spotlight__sharp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: center;
  opacity: 1;          /* No más opacity reduction — usa el gradient para legibilidad */
}
.hero .spotlight__blur {
  will-change: filter, transform;
  /* Escalar +12% para que el halo del blur quede fuera del viewport y
     no aparezcan barras transparentes/negras en los bordes */
  transform: scale(1.12);
  transform-origin: center center;
}
.hero .spotlight__sharp {
  will-change: clip-path;
  z-index: 1;
}
.hero .spotlight__plus {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  mix-blend-mode: difference;
  user-select: none;
}

/* Reforzar gradient para legibilidad del texto sin tocar la imagen */
.hero .hero__grad {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 35%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.92) 100%
  );
  z-index: 2;          /* arriba de spotlight (1) */
}

/* Stacking: keep original position layers, just bump z-index */
.hero .hero__iso     { z-index: 3; }
.hero .hero__inner   { z-index: 4; }
.hero .hero__footer  { z-index: 5; }

/* Ensure footer no se traslape con inner: padding-bottom para que
   el contenido nunca llegue donde está el footer absolute */
.hero {
  padding-bottom: calc(72px + 28px) !important;
}

/* -- Polish overrides --------------------------------------- */
/* Eliminate harsh borders, use color-mix transparency */
hr, .divider {
  border-color: color-mix(in srgb, currentColor 12%, transparent);
}

/* Smoother image grayscale transitions */
.space__media img,
.feature__media img,
.profile__media img,
.shop__media img,
.residency__media img {
  filter: grayscale(0.25);
  transition: filter 600ms var(--ease), transform 900ms var(--ease);
}
.space:hover .space__media img,
.feature:hover .feature__media img,
.profile:hover .profile__media img,
.shop__item:hover .shop__media img,
.residency:hover .residency__media img {
  filter: grayscale(0);
  transform: scale(1.03);
}

/* Selection */
::selection {
  background: var(--fg);
  color: var(--bg);
}

/* Container width Exvia (1280px) - solo en wrappers explícitos,
   NUNCA en elementos full-bleed (.spotlight, .hero__bg, etc.) ni en
   grids/listas que ya tienen su propio sistema de layout en style.css */
.section,
main.page > section {
  max-width: none;
}
.section__head,
.section__body,
.section__intro {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
