:root {
  --font-display: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --color-bg: #f4f0ea;
  --color-text: #101010;
  --color-dark: #050505;
  --space-2xl: clamp(3rem, 7vw, 8rem);
  --paper: #f4f0ea;
  --ink: #111111;
  --night: #050505;
  --light: #f7f4ef;
  --line: rgba(17, 17, 17, 0.22);
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  background: var(--light);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header[data-dimmed="true"] { opacity: 0.45; }
.site-header[data-dimmed="true"]:focus-within { opacity: 1; }

.site-header__brand,
.site-header__cta,
.site-nav a,
.eyebrow {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-header__brand { font-size: 1rem; }

.site-nav {
  display: none;
  gap: clamp(1rem, 2vw, 2.5rem);
}

.site-header__toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-header__toggle:focus-visible,
.mobile-nav a:focus-visible,
.site-header a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.3rem;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav {
  position: absolute;
  z-index: 2;
  top: calc(100% - 0.35rem);
  right: var(--gutter);
  display: grid;
  width: max-content;
  max-width: calc(100vw - (var(--gutter) * 2));
  padding: 0.65rem 0.8rem 0.7rem;
  gap: 0.45rem;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.mobile-nav a,
.site-nav a {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.mobile-nav a {
  display: block;
  padding: 0.18rem 0;
}

.site-nav a[data-active],
.mobile-nav a[data-active] { border-bottom: 1px solid currentColor; }

.site-header__cta { border-bottom: 1px solid currentColor; padding-bottom: 0.2rem; }

.section {
  scroll-margin-top: 4.75rem;
  padding: var(--space-2xl) var(--gutter);
}

.section--dark {
  background: #050505;
  color: #f7f4ef;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(50rem, calc(100vh - 4.75rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.hero .hero__media--bg,
.hero .hero__media--fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
  outline: 0;
  pointer-events: none;
}

.hero .hero__media--bg { z-index: 0; }
.hero .hero__media--bg img { object-position: center 30%; }

.hero .hero__media--fg {
  z-index: 3;
  clip-path: inset(0 0 0 55%);
}

.hero .hero__media--fg img { object-position: center 30%; }

@media (max-width: 767px) {
  .hero .hero__media--fg { clip-path: inset(0 0 0 88%); }
}

h1, h2, h3, p { margin-top: 0; }

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus { outline: 2px solid currentColor; outline-offset: 0.2rem; }

h1, h2, h3 {
  margin-bottom: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

h1 { font-size: clamp(4.5rem, 12vw, 11rem); }
h2 { font-size: clamp(3rem, 7vw, 7rem); }
h2 span { font-size: 0.35em; letter-spacing: 0; vertical-align: top; }
/* "UNA AGENCIA" / "MIL POSIBILIDADES" en un renglon cada una junto a la foto */
#studio-title { font-size: clamp(2.75rem, 4vw, 3.75rem); }

.section-heading { max-width: 48rem; }
.section-heading > p, .studio p { max-width: 32rem; line-height: 1.5; }
.text-link { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-underline-offset: 0.35em; }
.text-link--light { color: var(--light); }

.concept-media {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  outline: 1px solid rgba(17, 17, 17, 0.14);
}

.concept-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-media--hero { aspect-ratio: 16 / 9; min-height: 16rem; }
.concept-media--landscape { aspect-ratio: 4 / 3; }
.concept-media--portrait { aspect-ratio: 3 / 4; }
.concept-media--studio { aspect-ratio: 16 / 9; }

.hero__media--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.08) 60%);
  pointer-events: none;
}

/* Motion layers are opt-in so the no-JavaScript experience stays fully readable. */
.js[data-motion-mode="standard"] [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js[data-motion-mode="standard"] [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js[data-motion-mode="standard"] [data-reveal].is-visible-immediately {
  transition: none;
}

.js[data-motion-mode="standard"] [data-hero-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.js[data-motion-mode="standard"] [data-hero-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.page-shell {
  width: 100%;
}

.worlds__layout { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-top: clamp(3rem, 6vw, 6rem); }
.worlds__list { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(16, 16, 16, 0.18); }
.worlds__item { border-bottom: 1px solid var(--line); }
.worlds__trigger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 0; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.worlds__trigger > span { padding: 1rem 0; font-size: clamp(2rem, 5vw, 5rem); font-weight: 800; letter-spacing: -0.06em; }
.worlds__trigger::after { content: "→"; font-size: 1.2rem; font-weight: 400; letter-spacing: 0; opacity: 0; transition: opacity 200ms ease; }
.worlds__trigger:focus-visible { outline: 2px solid currentColor; outline-offset: -0.25rem; }

/* Mundos aun no publicados: visibles y con preview, pero sin navegar */
.worlds__trigger--soon { cursor: default; }
.worlds__trigger--soon > span { opacity: 0.5; }
.worlds__trigger--soon::after { content: none; }
.worlds__soon { flex-shrink: 0; font-size: 0.7rem; font-style: normal; font-weight: 600; letter-spacing: 0.14em; opacity: 0.5; }

.worlds__stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.worlds__stage-panel { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 300ms ease; }
.worlds__stage-panel--lab img { object-position: center 35%; }
/* STUDIO preview: <picture> sirve foto vertical 4:5 en mobile y 16:9 en desktop.
   Scopeado solo a este panel; no afecta a los demas mundos. Rostro siempre visible. */
.worlds__stage-panel[data-world-panel="studio"] picture { display: block; width: 100%; height: 100%; }
.worlds__stage-panel[data-world-panel="studio"] img { object-fit: cover; object-position: 50% 8%; width: 100%; height: 100%; display: block; }
/* KIDS preview: mismo esquema. Mobile foto vertical, desktop 16:9. Rostros siempre visibles. */
.worlds__stage-panel[data-world-panel="kids"] picture { display: block; width: 100%; height: 100%; }
.worlds__stage-panel[data-world-panel="kids"] img { object-fit: cover; object-position: 50% 18%; width: 100%; height: 100%; display: block; }
/* SOCIALES preview: mismo esquema. Pareja a la derecha de la foto 16:9 -> encuadre a la derecha en desktop. */
.worlds__stage-panel[data-world-panel="sociales"] picture { display: block; width: 100%; height: 100%; }
.worlds__stage-panel[data-world-panel="sociales"] img { object-fit: cover; object-position: 50% 20%; width: 100%; height: 100%; display: block; }
/* TURISMO preview: mismo esquema. Camara en el tercio inferior de la foto vertical -> bajar el encuadre en mobile. */
.worlds__stage-panel[data-world-panel="turismo"] picture { display: block; width: 100%; height: 100%; }
.worlds__stage-panel[data-world-panel="turismo"] img { object-fit: cover; object-position: 50% 60%; width: 100%; height: 100%; display: block; }
.worlds__stage-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0) 55%); pointer-events: none; }
.worlds__stage-caption { position: absolute; z-index: 1; left: 1.25rem; bottom: 1.25rem; color: var(--light); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; }

html[data-active-world="lab"] .worlds__item[data-world="lab"] .worlds__trigger::after,
html[data-active-world="studio"] .worlds__item[data-world="studio"] .worlds__trigger::after,
html[data-active-world="kids"] .worlds__item[data-world="kids"] .worlds__trigger::after,
html[data-active-world="sociales"] .worlds__item[data-world="sociales"] .worlds__trigger::after,
html[data-active-world="turismo"] .worlds__item[data-world="turismo"] .worlds__trigger::after { opacity: 1; }
html[data-active-world="lab"] .worlds__item[data-world="lab"] .worlds__trigger > span,
html[data-active-world="studio"] .worlds__item[data-world="studio"] .worlds__trigger > span,
html[data-active-world="kids"] .worlds__item[data-world="kids"] .worlds__trigger > span,
html[data-active-world="sociales"] .worlds__item[data-world="sociales"] .worlds__trigger > span,
html[data-active-world="turismo"] .worlds__item[data-world="turismo"] .worlds__trigger > span { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
html[data-active-world="lab"] [data-world-panel="lab"],
html[data-active-world="studio"] [data-world-panel="studio"],
html[data-active-world="kids"] [data-world-panel="kids"],
html[data-active-world="sociales"] [data-world-panel="sociales"],
html[data-active-world="turismo"] [data-world-panel="turismo"] { opacity: 1; z-index: 1; }

@media (min-width: 700px) {
  .worlds__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; }
  .worlds__stage { aspect-ratio: auto; height: 100%; }
  /* STUDIO desktop: panel alto + foto 16:9 -> recorte horizontal; correr el encuadre a la derecha para dejar rostro y modelo visibles y algo de espacio negativo a la izquierda. */
  .worlds__stage-panel[data-world-panel="studio"] img { object-position: 60% 50%; }
  /* KIDS desktop: sujeto centrado, rostros arriba -> subir el encuadre. */
  .worlds__stage-panel[data-world-panel="kids"] img { object-position: 50% 42%; }
  /* SOCIALES desktop: pareja en el tercio derecho de la foto 16:9 -> correr el encuadre a la derecha. */
  .worlds__stage-panel[data-world-panel="sociales"] img { object-position: 72% 45%; }
  /* TURISMO desktop: foto ya 16:9, camara a la izquierda -> encuadre centrado/izquierda. */
  .worlds__stage-panel[data-world-panel="turismo"] img { object-position: 42% 50%; }
}

/* DESKTOP (>=1200px): escala mas compacta de "NUESTROS MUNDOS" -> sensacion de menos zoom,
   mas aire, mas contenido por pantalla. Solo afecta esta seccion y solo en desktop:
   mobile/tablet (<1200px) y el resto de la Home quedan intactos. Sin zoom ni transform. */
@media (min-width: 1200px) {
  .worlds { padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 5vw, 4.5rem); }
  #worlds-title { font-size: clamp(3rem, 4.4vw, 4.5rem); margin-bottom: 1rem; }
  .worlds__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 3vw, 3rem); margin-top: clamp(1.75rem, 3vw, 2.75rem); }
  .worlds__list { margin-top: 1rem; }
  .worlds__trigger > span { font-size: clamp(2.25rem, 3.4vw, 3.4rem); padding: 0.62rem 0; }
  .worlds__soon { font-size: 0.68rem; }
}

.studio { display: grid; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.studio__content { max-width: 60rem; }

.contact { min-height: 65vh; display: flex; flex-direction: column; justify-content: space-between; }
.final-cta__headline { max-width: 8ch; }
.contact__email { font-size: clamp(1rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.04em; overflow-wrap: anywhere; }

@media (min-width: 700px) {
  .studio { grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr); min-height: 70vh; }
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__toggle,
  .mobile-nav { display: none; }
}

@media (max-width: 767px) {
  .page-shell { width: 100%; }
  .hero__headline { font-size: clamp(3rem, 15vw, 4.75rem); }
  .worlds__trigger > span { padding: 0.8rem 0; }
  .worlds__stage { aspect-ratio: 4 / 3; margin-top: 2rem; }
  .contact { min-height: 72vh; gap: 4rem; }
}
