/* =========================================================
   1. TOKENS DE DISEÑO
   ========================================================= */

:root {
  --bg: #000000;
  --bg-raised: #000000;
  --text: #ECE8E3;
  --text-muted: #8A8680;
  --accent: #d80c9e;
  --line: #ffffff;
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'IBM Plex Sans', sans-serif;
}


/* =========================================================
   2. RESET BÁSICO
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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


/* =========================================================
   3. HEADER / NAVEGACIÓN
   ========================================================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
}


/* =========================================================
   MENÚ PRINCIPAL SIN JAVASCRIPT
   ========================================================= */

.menu-toggle {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* =========================================================
   FLECHA DEL MENÚ
   ========================================================= */

.menu-arrow {
  cursor: pointer;
  list-style: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  border: 1px solid transparent;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  outline: none !important;
  box-shadow: none !important;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.menu-arrow::-webkit-details-marker {
  display: none;
}

.menu-arrow::marker {
  display: none;
  content: "";
}

.menu-arrow span {
  display: block;
  transition: transform 0.25s ease;
}

.menu-toggle[open]>.menu-arrow span {
  transform: rotate(180deg);
}

.menu-arrow:hover {
  color: var(--accent);
}


/* =========================================================
   ELIMINAR ESTADOS NATIVOS DEL NAVEGADOR
   ========================================================= */

.menu-arrow:focus,
.menu-arrow:focus-visible,
.menu-arrow:active {
  color: var(--text);
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.menu-arrow:hover {
  color: var(--accent);
}


/* =========================================================
   MENÚ HOME / ABOUT / WORK
   ========================================================= */

.menu-toggle>.main-nav {
  position: absolute;
  top: 3.4rem;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 190px;
  padding: 0.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  z-index: 1000;
}


/* Home / About / Work */

.menu-toggle>.main-nav>a,
.menu-toggle>.main-nav>.nav-dropdown>summary {
  display: block;
  padding: 0.45rem 0.5rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  outline: none !important;
  box-shadow: none !important;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.menu-toggle>.main-nav>.nav-dropdown>summary::-webkit-details-marker {
  display: none;
}

.menu-toggle>.main-nav>.nav-dropdown>summary::marker {
  display: none;
  content: "";
}

.menu-toggle>.main-nav>a:hover,
.menu-toggle>.main-nav>.nav-dropdown>summary:hover {
  color: var(--accent);
  background: transparent !important;
}

.menu-toggle>.main-nav a.active,
.menu-toggle>.main-nav>.nav-dropdown>summary.active {
  color: var(--accent);
}


/* =========================================================
   FOCUS / ACTIVE
   ========================================================= */

.menu-toggle>.main-nav>a:focus,
.menu-toggle>.main-nav>a:focus-visible,
.menu-toggle>.main-nav>a:active,
.menu-toggle>.main-nav>.nav-dropdown>summary:focus,
.menu-toggle>.main-nav>.nav-dropdown>summary:focus-visible,
.menu-toggle>.main-nav>.nav-dropdown>summary:active {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.menu-toggle>.main-nav>a:hover,
.menu-toggle>.main-nav>.nav-dropdown>summary:hover {
  color: var(--accent);
}


/* =========================================================
   ABOUT / WORK
   ========================================================= */

.nav-dropdown {
  position: relative;
}

.nav-dropdown>summary::after {
  content: "→";
  float: right;
  margin-left: 1rem;
  color: var(--text-muted);
}

.nav-dropdown[open]>summary::after {
  content: "↓";
  color: var(--accent);
}


/* =========================================================
   SUBMENÚ
   ========================================================= */

.dropdown-panel {
  display: none;
  position: static;
  background: transparent;
  border: none;
  padding: 0.25rem 0 0.5rem 1rem;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.nav-dropdown[open]>.dropdown-panel {
  display: flex;
}

.dropdown-panel a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text-muted);
  background: transparent !important;
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.dropdown-panel a:hover {
  color: var(--accent);
}

.dropdown-panel a:focus,
.dropdown-panel a:focus-visible,
.dropdown-panel a:active {
  color: var(--text-muted);
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.dropdown-panel a.active {
  color: var(--accent);
}


/* =========================================================
   PREVENIR RESALTADO NATIVO
   ========================================================= */

.menu-toggle,
.menu-toggle *,
.main-nav,
.main-nav * {
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle,
.menu-toggle summary,
.menu-toggle a {
  user-select: none;
  -webkit-user-select: none;
}

.menu-toggle ::selection {
  background: transparent;
  color: inherit;
}

.menu-toggle details,
.menu-toggle summary {
  background-color: transparent;
}

.menu-toggle details summary {
  -webkit-appearance: none;
  appearance: none;
}


/* =========================================================
   4. HERO
   ========================================================= */

.hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-frame {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-mono);
  margin-top: 1.5rem;
  max-width: 40ch;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.cta-button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.cta-button:hover {
  background: var(--accent);
  color: var(--bg);
}


/* =========================================================
   4b. HERO CON FONDO DE FOTOS
   ========================================================= */

.hero-bg {
  position: relative;
  min-height: 85vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg-slideshow {
  position: absolute;
  inset: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlideshow 20s infinite;
}

@keyframes heroSlideshow {

  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  20% {
    opacity: 1;
  }

  25% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }

}

.hero-bg-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-bg-slide:nth-child(2) {
  animation-delay: 5s;
}

.hero-bg-slide:nth-child(3) {
  animation-delay: 10s;
}

.hero-bg-slide:nth-child(4) {
  animation-delay: 15s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.368);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 1100px;
  margin: 0;
  width: 100%;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) {

  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

}

.hero-content .hero-subtitle {
  color: var(--text-muted);
  max-width: 40ch;
  font-size: 0.75rem;
}

.hero-content .cta-button {
  margin-top: 0rem;
}


/* =========================================================
   4d. FRASE DESPLEGABLE AL LADO DEL BOTÓN
   ========================================================= */

.hero-cta-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-cta-image {
  display: none;
}

.hero-cta-row .cta-button {
  flex-shrink: 0;
}

.keyword-deploy-wrap {
  flex: 1;
  min-width: 0;
  padding-left: 2rem;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s ease;
}

.cta-button:hover+.keyword-deploy-wrap {
  clip-path: inset(0 0% 0 0);
}

.keyword-sentence {
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-content .intro-text {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hero-content .intro-text strong {
  color: var(--text);
}


/* =========================================================
   5. INTRO
   ========================================================= */

.intro {
  padding: 4rem 2rem;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.intro-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.intro-text strong {
  color: var(--text);
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* =========================================================
   5b. PÁGINAS INTERNAS
   ========================================================= */

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 3rem;
}

.bio-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.bio-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-raised);
  filter: grayscale(1) invert(1);
  transition: filter 0.3s ease;
}

.bio-photo:hover {
  filter: none;
}

.bio-text p {
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.bio-text strong {
  color: var(--text);
}

@media (max-width: 640px) {

  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-photo {
    max-width: 240px;
  }

}


/* =========================================================
   5c. ÍNDICE DE PROYECTOS
   ========================================================= */

.projects-header {
  padding: 4rem 2rem 2rem;
}

.project-index {
  padding: 0 2rem;
}

.project-index ol {
  list-style: none;
}

.project-item {
  border-top: 1px solid var(--line);
}

.project-item:last-child {
  border-bottom: 1px solid var(--line);
}

.project-item a {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  transition:
    padding-left 0.2s ease,
    color 0.2s ease;
}

.project-item a:hover {
  padding-left: 1rem;
  color: var(--accent);
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 2ch;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 3vw, 2rem);
  flex: 1;
}

.project-arrow {
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-item a:hover .project-arrow {
  opacity: 1;
}

.project-item-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: default;
  transition:
    padding-left 0.2s ease,
    color 0.2s ease;
}

.feature-row-item:hover .project-item-row {
  padding-left: 1rem;
  color: var(--accent);
}

.feature-row-item:hover .project-arrow {
  opacity: 1;
}

.feature-row-item:hover .feature-deploy-wrap {
  grid-template-rows: 1fr;
}

.projects-footer-link {
  padding: 3rem 2rem 4rem;
}


/* =========================================================
   5d. DETALLE DE PROYECTO
   ========================================================= */

.project-detail {
  padding: 4rem 2rem 6rem;
  max-width: 720px;
  margin: 0 auto;
}

.project-detail-header {
  margin-bottom: 2.5rem;
}

.project-detail-header .page-title {
  margin-bottom: 0;
}

.project-body p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-videos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem 0;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
  transition: filter 0.3s ease;
}

.video-embed:hover iframe {
  filter: none;
}

.video-embed iframe.is-fullscreen {
  filter: none;
}


/* =========================================================
   5e. GALERÍA
   ========================================================= */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill,
      minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 3rem 0;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--bg-raised);
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) invert(1);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.gallery-thumb:hover img {
  filter: none;
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.lightbox-nav:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

@media (max-width: 640px) {

  .lightbox-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

}


/* =========================================================
   5f. CAJITA DE PREMIO
   ========================================================= */

.project-award {
  border: 1px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
}

.project-award-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.project-award-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}


/* =========================================================
   5g. IMÁGENES DE REFERENCIA
   ========================================================= */

.project-reference {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0rem;
  margin: 2.5rem 0;
}

.reference-image {
  position: relative;
  background: var(--bg-raised);
}

.reference-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) invert(1);
  transition: filter 0.3s ease;
}

.reference-image:hover img {
  filter: none;
}

.reference-label-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.reference-image:hover .reference-label-wrap {
  grid-template-rows: 1fr;
}

.reference-label {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 0.6rem;
}

@media (max-width: 640px) {

  .project-reference {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   5h. REPRODUCTOR DE AUDIO
   ========================================================= */

.project-audio {
  border: 1px solid var(--line);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.project-audio-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-audio-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-audio-embed {
  max-width: 500px;
  margin: 0 auto;
}

.project-audio-embed iframe {
  width: 100%;
  border: 1px solid var(--line);
  filter: grayscale(1) invert(1);
  transition: filter 0.3s ease;
}

.project-audio-embed:hover iframe {
  filter: none;
}


/* =========================================================
   5i. FICHA DE PIEZA INDIVIDUAL
   ========================================================= */

.project-piece {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.project-piece-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-piece-specs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}


/* =========================================================
   5i. SUB-OBRAS
   ========================================================= */

.project-subwork {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.project-subwork-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-subwork-specs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}


/* =========================================================
   5j. CV
   ========================================================= */

.cv-section {
  padding: 4rem 2rem 6rem;
  max-width: 720px;
  margin: 0 auto;
}

.cv-block {
  margin-bottom: 2.5rem;
}

.cv-block-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.cv-list {
  list-style: none;
}

.cv-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.cv-list li strong {
  color: var(--text);
}


/* =========================================================
   5k. AXIS.VISUAL LAB
   ========================================================= */

.axis-intro-static {
  position: absolute;
  top: 3rem;
  left: 2rem;
  right: 2rem;
  max-width: 600px;
  z-index: 2;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
  transition: opacity 0.4s ease;
}

.axis-logo {
  width: 80%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.axis-intro-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.axis-intro-text {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.7;
  color: var(--text);
}

/* AXIS: mover el texto hacia la derecha solo en desktop */
@media (min-width: 701px) {
  .axis-intro-text {
    transform: translateX(-2rem);
  }
}

.axis-intro-text p {
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 1rem;
}

.axis-intro-text p:last-child {
  margin-bottom: 0;
}

/* AXIS: mostrar el texto al pasar el mouse sobre el logo */
@media (min-width: 701px) {
  .axis-intro-text {
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .axis-intro-static:has(.axis-logo:hover) .axis-intro-text {
    opacity: 1;
  }
}


/* =========================================================
   AXIS LAB LAYOUT
   ========================================================= */

.lab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  align-items: start;
}

.lab-layout .lab-intro,
.lab-layout .lab-features {
  padding: 0;
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {

  .lab-layout {
    grid-template-columns: 1fr;
  }

}

.lab-intro {
  padding: 4rem 2rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.lab-intro p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.lab-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.lab-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.lab-feature-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 640px) {

  .lab-feature {
    grid-template-columns: 1fr;
  }

}

.feature-deploy-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.lab-feature:hover .feature-deploy-wrap {
  grid-template-rows: 1fr;
}

.feature-deploy-inner {
  overflow: hidden;
}

.feature-deploy-inner img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-top: 1rem;
}

.feature-deploy-inner .reference-label {
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
}

.lab-feature-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-raised);
  margin-bottom: 1.25rem;
  filter: grayscale(1) invert(1);
  transition: filter 0.3s ease;
}

.lab-feature:hover .lab-feature-image {
  filter: none;
}

.lab-feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lab-feature-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}


/* =========================================================
   AXIS TEAM
   ========================================================= */

.lab-team {
  padding: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
}

.lab-team-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.lab-team-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-raised);
  margin-bottom: 0.75rem;
  filter: grayscale(1) invert(1);
  transition: filter 0.3s ease;
}

.team-member:hover img {
  filter: none;
}

.team-member-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}

.lab-contact {
  text-align: center;
  padding: 0.25rem 2rem 4rem;
}

.lab-contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}


/* =========================================================
   VARIANTE EDITORIAL DEL EQUIPO
   ========================================================= */

.lab-team-editorial {
  padding: 3rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

.team-member-editorial {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-top: 1px solid var(--line);
}

.team-member-editorial:last-child {
  border-bottom: 1px solid var(--line);
}

.team-photo-large {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-raised);
  filter: grayscale(1) invert(1);
  transition: filter 0.3s ease;
}

.team-member-editorial:hover .team-photo-large {
  filter: none;
}

.team-name-large {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {

  .team-member-editorial {
    grid-template-columns: 1fr;
  }

}

.project-credits {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-bottom: 3rem;
}

.project-credits p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.project-credits strong {
  color: var(--text);
}


/* =========================================================
   6. FOOTER
   ========================================================= */

.site-footer {
  padding: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* =========================================================
   7. RESPONSIVE GENERAL
   ========================================================= */

@media (max-width: 640px) {

  .site-header {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
  }

  .logo {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
  }

  .menu-toggle>.main-nav {
    top: 3rem;
    right: 0;
    min-width: 180px;
  }

}


/* =========================================================
   7b. RESPONSIVE — HOME + AXIS
   ========================================================= */

@media (max-width: 700px) {

  /* -------------------------------------------------------
     HOME — OVERLAY
     ------------------------------------------------------- */

  .hero-overlay {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.85) 100%);
  }


  /* -------------------------------------------------------
     HOME — HERO MOBILE
     ------------------------------------------------------- */

  .hero-bg {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 90dvh;
    padding-bottom: 2.5rem;
  }

  .hero-bg:not(:has(.axis-intro-static)) .hero-content {
    padding-bottom: 1rem;
  }

  .hero-content {
    position: relative;
    padding: 1.5rem;
  }


  /* -------------------------------------------------------
     HOME — BOTONES MOBILE
     ------------------------------------------------------- */

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-image {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    margin-bottom: 1rem;
  }

  .hero-cta-row .cta-button {
    width: 100%;
    text-align: center;
  }

  .hero-cta-list {
    gap: 2rem;
  }

  .keyword-deploy-wrap {
    flex: none;
    width: 100%;
    padding-left: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    clip-path: inset(0 0 0 0) !important;
  }


  /* =======================================================
     AXIS — COMPOSICIÓN ESPECÍFICA MOBILE
     ======================================================= */

  /*
     IMPORTANTE:

     Todo lo que sigue está limitado a AXIS.
     El Home conserva las reglas anteriores.
  */


  /* -------------------------------------------------------
     AXIS — FONDO
     ------------------------------------------------------- */

  .hero-bg:has(.axis-intro-static) {
    background: var(--bg);

    /*
       Solo AXIS empieza desde arriba.
       El Home sigue usando justify-content: flex-end.
    */
    justify-content: flex-start;

    /*
       Solo AXIS deja de tener la altura forzada del Home.
    */
    min-height: auto;
  }


  /* -------------------------------------------------------
     AXIS — SIN SLIDESHOW EN MOBILE
     ------------------------------------------------------- */

  .hero-bg:has(.axis-intro-static) .hero-bg-slideshow,
  .hero-bg:has(.axis-intro-static) .hero-overlay {
    display: none;
  }


  /* -------------------------------------------------------
     AXIS — INTRO
     ------------------------------------------------------- */

  .axis-intro-static {
    position: relative;

    top: auto;
    left: auto;
    right: auto;

    width: auto;
    max-width: none;

    margin: 3rem 1.5rem 3rem;

    display: grid;

    grid-template-columns: 1fr;

    gap: 1.5rem;

    align-items: start;
  }



  /* -------------------------------------------------------
     AXIS — LOGO
     ------------------------------------------------------- */

  .axis-logo {
    width: 140px;
    max-width: 70vw;
    height: auto;

    display: block;

    margin-left: auto;
    margin-right: auto;
  }


  /* -------------------------------------------------------
     AXIS — TEXTO
     ------------------------------------------------------- */

  .axis-intro-text {
    width: 100%;
    min-width: 0;

    font-size: 0.63rem;
    line-height: 1.7;

    text-align: left;
  }


  /* -------------------------------------------------------
     AXIS — TÍTULO
     ------------------------------------------------------- */

  .axis-intro-heading {
    font-size: 1.5rem;

    text-align: center;

    margin-bottom: 1.5rem;
  }


  /* -------------------------------------------------------
     AXIS — PÁRRAFOS
     ------------------------------------------------------- */

  /*
     Antes estaban en display:none y luego se intentaban
     mostrar en .axis-mobile-about.

     Ahora permanecen directamente debajo del título.
  */

  .axis-intro-paragraphs {
    display: block;
  }

  .axis-intro-paragraphs p {
    text-align: left;

    margin-bottom: 1.25rem;
  }


  /* -------------------------------------------------------
     AXIS — CONTENIDO DE PROYECTOS
     ------------------------------------------------------- */

  .hero-bg:has(.axis-intro-static) .hero-content {
    position: relative;

    width: 100%;

    padding: 1.5rem;
  }


  /* -------------------------------------------------------
     AXIS — IMÁGENES DE LOS TRES PROYECTOS
     -------------------------------------------------------

     Esta excepción SOLO afecta a AXIS.

     El Home conserva exactamente su 9 / 16 original.
     */

  .hero-bg:has(.axis-intro-static) .hero-cta-image {
    width: 100%;

    aspect-ratio: 9 / 12;

    object-fit: cover;
  }


  /* -------------------------------------------------------
     AXIS — LISTA DE PROYECTOS
     ------------------------------------------------------- */

  .hero-bg:has(.axis-intro-static) .hero-cta-list {
    gap: 2rem;
  }

}


/* =========================================================
   AXIS — FONDO INTERACTIVO DESKTOP
   SIN JAVASCRIPT
   Solo afecta a la página que contiene .axis-intro-static
   ========================================================= */

@media (min-width: 701px) {

  /* Contenedor principal de AXIS */
  .hero-bg:has(.axis-intro-static) {
    isolation: isolate;
  }

  /* Ocultar el slideshow anterior únicamente en AXIS */
  .hero-bg:has(.axis-intro-static) .hero-bg-slideshow {
    display: none;
  }

  /* Imagen predeterminada */
  .hero-bg:has(.axis-intro-static)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: url("images/axis/proyectos/BETA 1/WEB/4.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: background-image 0.2s ease;
  }

  /* Mantener la capa oscura sobre la fotografía */
  .hero-bg:has(.axis-intro-static) .hero-overlay {
    z-index: 1;
  }

  /* Mantener el logo, los textos y los botones por delante */
  .hero-bg:has(.axis-intro-static) .axis-intro-static,
  .hero-bg:has(.axis-intro-static) .hero-content {
    z-index: 2;
  }

  /* MAIN PROJECTS */
  .hero-bg:has(.hero-cta-row:nth-child(1) .cta-button:hover)::before {
    background-image: url("images/axis/proyectos/INMERSION2/inmersionii2.jpeg");
  }

  /* PRODUCTION & COLLABORATION */
  .hero-bg:has(.hero-cta-row:nth-child(2) .cta-button:hover)::before {
    background-image: url("images/axis/production1.jpg");
  }

  /* EDUCATION */
  .hero-bg:has(.hero-cta-row:nth-child(3) .cta-button:hover)::before {
    background-image: url("images/axis/STUDENTS.png");
  }

}

/* =========================================================
   AXIS — FONDO NEGRO CON OPACIDAD AJUSTABLE
   Solo desktop
   ========================================================= */

@media (min-width: 701px) {

  .hero-bg:has(.axis-intro-static) .keyword-deploy-wrap {
    background: rgba(0, 0, 0, 0.95);
    padding: 0.45rem 1rem;
    margin-left: 0rem;
  }

  .hero-bg:has(.axis-intro-static) .keyword-sentence {
    color: #ECE8E3;
  }

}

/* =========================================================
   AXIS — CAMBIAR FONDO AL PASAR EL MOUSE SOBRE EL LOGO
   Solo desktop, sin JavaScript
   ========================================================= */

@media (min-width: 701px) {

  .hero-bg:has(.axis-intro-static:hover)::before {
    background-image: url("images/axis/proyectos/BETA 1/WEB/1.jpg");
  }

  /* Evitar que el área invisible del texto active el hover */
  .hero-bg:has(.axis-intro-static) .axis-intro-static {
    pointer-events: none;
  }

  /* Reactivar el hover únicamente sobre el logo */
  .hero-bg:has(.axis-intro-static) .axis-intro-static img {
    pointer-events: auto;
  }

}


/* =========================================================
   LAT — INTRODUCCIÓN
   Replica la composición de AXIS sin modificar AXIS
   ========================================================= */

body.lat-page .lat-intro-static {
  position: absolute;
  top: 3rem;
  left: 2rem;
  right: 2rem;
  max-width: 700px;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
  transition: opacity 0.4s ease;
}

body.lat-page .lat-logo {
  flex: 0 0 auto;
  width: 70%;
  max-width: 400px;
  height: auto;
}

body.lat-page .lat-intro-text {
  flex: 1 1 auto;
  min-width: 0;
}

body.lat-page .lat-logo {
  width: 40%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0;
  border: 0px solid var(--line);
}

body.lat-page .lat-intro-text {
  min-width: 0;
  margin: 0;
  padding: 0;

  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.7;
  color: var(--text);
  align-self: start;
}

body.lat-page .lat-intro-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 1rem;
}

body.lat-page .lat-intro-paragraphs {
  display: block;
}

body.lat-page .lat-intro-text p {
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 1rem;
}

body.lat-page .lat-intro-text p:last-child {
  margin-bottom: 0;
}

/* LAT: texto visible al pasar el ratón por el logo */
@media (min-width: 701px) {
  body.lat-page .lat-intro-text {
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  body.lat-page .lat-intro-static:has(.lat-logo:hover) .lat-intro-text {
    opacity: 1;
  }
}

body.lat-page .lat-intro-text {
  align-self: center;
}

/* =========================================================
   LAT — FONDO INTERACTIVO EN ESCRITORIO
   ========================================================= */

@media (min-width: 701px) {
  body.lat-page .hero-bg:has(.lat-intro-static) {
    isolation: isolate;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .hero-bg-slideshow {
    display: none;
  }

  body.lat-page .hero-bg:has(.lat-intro-static)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: url("images/axis/STUDENTS.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .hero-overlay {
    z-index: 1;
  }

  body.lat-page .lat-intro-static,
  body.lat-page .hero-content {
    z-index: 2;
  }

  /* WORKSHOPS */
  body.lat-page .hero-bg:has(.hero-cta-row:nth-child(1) .cta-button:hover)::before {
    background-image: url("images/axis/LAT/workshops/resolume1.jpeg");
  }

  /* PRODUCTION & COLLABORATION */
  body.lat-page .hero-bg:has(.hero-cta-row:nth-child(2) .cta-button:hover)::before {
    background-image: url("images/axis/LAT/production&collaboration/outsider3.jpeg");
  }

  /* TOOLS */
  body.lat-page .hero-bg:has(.hero-cta-row:nth-child(3) .cta-button:hover)::before {
    background-image: url("images/axis/LAT/TOOLS.png");
  }

  /* Fondo predeterminado al pasar el ratón por el logo */
  body.lat-page .hero-bg:has(.lat-intro-static:hover)::before {
    background-image: url("images/axis/STUDENTS.png");
  }

  /* Descripciones desplegables */
  body.lat-page .hero-bg:has(.lat-intro-static) .keyword-deploy-wrap {
    background: rgba(0, 0, 0, 0.95);
    padding: 0 1rem;
    margin-left: 0;

    align-self: stretch;
    display: flex;
    align-items: center;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .keyword-sentence {
    color: #ECE8E3;
  }

  /* Evitar que el área del texto active el hover del contenedor */
  body.lat-page .lat-intro-static {
    pointer-events: none;
  }

  body.lat-page .lat-intro-static .lat-logo {
    pointer-events: auto;
  }
}

/* =========================================================
   LAT — COMPOSICIÓN MÓVIL
   ========================================================= */

@media (max-width: 700px) {
  body.lat-page .hero-bg:has(.lat-intro-static) {
    background: var(--bg);
    justify-content: flex-start;
    min-height: auto;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .hero-bg-slideshow,
  body.lat-page .hero-bg:has(.lat-intro-static) .hero-overlay {
    display: none;
  }

  body.lat-page .lat-intro-static {
    position: relative;
    top: auto;
    left: auto;
    right: auto;

    width: auto;
    max-width: none;
    margin: 3rem 1.5rem;

    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  body.lat-page .lat-logo {
    width: 440px;
    max-width: 90vw;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  body.lat-page .lat-intro-text {
    width: 100%;
    min-width: 0;
    font-size: 0.63rem;
    line-height: 1.7;
    opacity: 1;
    transform: none;
  }

  body.lat-page .lat-intro-heading {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  body.lat-page .lat-intro-paragraphs {
    display: block;
  }

  body.lat-page .lat-intro-paragraphs p {
    text-align: left;
    margin-bottom: 1.25rem;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .hero-content {
    position: relative;
    width: 100%;
    padding: 1.5rem;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .hero-cta-image {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 12;
    object-fit: cover;
    margin-bottom: 1rem;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .hero-cta-row .cta-button {
    width: 100%;
    text-align: center;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .hero-cta-list {
    gap: 2rem;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .keyword-deploy-wrap {
    flex: none;
    width: 100%;
    padding-left: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    clip-path: inset(0 0 0 0) !important;
    background: transparent;
  }

  body.lat-page .hero-bg:has(.lat-intro-static) .keyword-sentence {
    color: var(--text);
  }
}


/* =========================================================
   TEAM DIVIDER — LÍNEA ESTÁTICA
   ========================================================= */

.team-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 2rem 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.team-divider::before,
.team-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #fff;
}

.team-divider span {
  flex: 0 0 auto;
}

/* LAT — MOBILE: DISABLE BACKGROUND IMAGE TRANSITIONS */
@media (max-width: 700px) {

  body.lat-page .axis-background,
  body.lat-page .axis-background img {
    display: none !important;
  }
}



/* VIDEO MAPPINGS — MOBILE: FULL IMAGE HEIGHT */


@media (max-width: 700px) {

  body.video-mappings-page .hero.hero-bg {
    height: auto;
    min-height: 0;
    padding: 0;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
  }

  body.video-mappings-page .hero-bg-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body.video-mappings-page .hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

}


/* =========================================================
   VIDEO MAPPINGS — NAVEGACIÓN DE 9 PROYECTOS
   ========================================================= */

html:has(body.video-mappings-page) {
  scroll-behavior: smooth;
}

body.video-mappings-page .hero.hero-bg {
  scroll-margin-top: 80px;
  border-top: 1px solid #ECE8E3;
}

/* Posición del botón de navegación */

body.video-mappings-page .project-navigation {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
}

/* Estilo común de los botones */

body.video-mappings-page .project-navigation a {
  display: none;
  box-sizing: border-box;
  padding: 12px 16px;
  background: #000000;
  color: #d80c9e;
  border: 1px solid #d80c9e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

/* Mostrar el primer botón al abrir la página */

body.video-mappings-page:not(:has(#project-1:target,
    #project-2:target,
    #project-3:target,
    #project-4:target,
    #project-5:target,
    #project-6:target,
    #project-7:target,
    #project-8:target,
    #project-9:target)) .project-navigation .next-1 {
  display: block;
}

/* Mostrar el botón correspondiente al proyecto activo */

body.video-mappings-page:has(#project-1:target) .project-navigation .next-1,
body.video-mappings-page:has(#project-2:target) .project-navigation .next-2,
body.video-mappings-page:has(#project-3:target) .project-navigation .next-3,
body.video-mappings-page:has(#project-4:target) .project-navigation .next-4,
body.video-mappings-page:has(#project-5:target) .project-navigation .next-5,
body.video-mappings-page:has(#project-6:target) .project-navigation .next-6,
body.video-mappings-page:has(#project-7:target) .project-navigation .next-7,
body.video-mappings-page:has(#project-8:target) .project-navigation .next-8,
body.video-mappings-page:has(#project-9:target) .project-navigation .next-9 {
  display: block;
}

/* Efecto al pasar el cursor */

body.video-mappings-page .project-navigation a:hover {
  background: #d80c9e;
  color: #000000;
  border-color: #d80c9e;
}

/* Ocultar la navegación en móviles */

@media screen and (max-width: 700px) {
  body.video-mappings-page .project-navigation {
    display: none;
  }
}





/* =========================================================
   PRODUCTION & COLLABORATION — MOBILE: FULL IMAGE HEIGHT
   ========================================================= */

@media (max-width: 700px) {

  body.product-collab-page .hero.hero-bg {
    height: auto;
    min-height: 0;
    padding: 0;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
  }

  body.product-collab-page .hero-bg-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body.product-collab-page .hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

}


/* =========================================================
   PRODUCTION & COLLABORATION — NAVEGACIÓN DE 8 PROYECTOS
   ========================================================= */

html:has(body.product-collab-page) {
  scroll-behavior: smooth;
}

body.product-collab-page .hero.hero-bg {
  scroll-margin-top: 80px;
  border-top: 1px solid #ECE8E3;
}

/* Posición del botón */

body.product-collab-page .project-navigation {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
}

/* Estilo común */

body.product-collab-page .project-navigation a {
  display: none;
  box-sizing: border-box;
  padding: 12px 16px;
  background: #000000;
  color: #d80c9e;
  border: 1px solid #d80c9e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

/* Mostrar el primer botón al abrir la página */

body.product-collab-page:not(:has(#project-1:target,
    #project-2:target,
    #project-3:target,
    #project-4:target,
    #project-5:target,
    #project-6:target,
    #project-7:target,
    #project-8:target)) .project-navigation .next-1 {
  display: block;
}

/* Mostrar el botón correspondiente al proyecto activo */

body.product-collab-page:has(#project-1:target) .project-navigation .next-1,

body.product-collab-page:has(#project-2:target) .project-navigation .next-2,

body.product-collab-page:has(#project-3:target) .project-navigation .next-3,

body.product-collab-page:has(#project-4:target) .project-navigation .next-4,

body.product-collab-page:has(#project-5:target) .project-navigation .next-5,

body.product-collab-page:has(#project-6:target) .project-navigation .next-6,

body.product-collab-page:has(#project-7:target) .project-navigation .next-7,

body.product-collab-page:has(#project-8:target) .project-navigation .next-8 {
  display: block;
}

/* Efecto al pasar el cursor */

body.product-collab-page .project-navigation a:hover {
  background: #d80c9e;
  color: #000000;
  border-color: #d80c9e;
}

/* Ocultar navegación en móviles */

@media screen and (max-width: 700px) {
  body.product-collab-page .project-navigation {
    display: none;
  }
}



/* =========================================================
   WORKSHOPS
   Reutiliza la estructura general de project-detail
   ========================================================= */

/* Mantener los márgenes y el ancho del resto de proyectos.
   No redefinir .project-detail ni .project-body aquí. */

body.workshops-page .workshop-item {
  margin: 0 0 3.5rem;
  padding: 0 0 3rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

/* Mantener la separación original entre encabezado y texto. */

body.workshops-page .workshop-item .project-detail-header {
  margin-bottom: 2.5rem;
}

/* Usar el ancho de lectura y la tipografía definidos
   por las reglas generales de .project-body. */

body.workshops-page .workshop-item .project-body {
  margin-bottom: 1.5rem;
}

/* Conservar la configuración general de project-gallery,
   incluidos sus ajustes responsive. */

body.workshops-page .workshop-item .project-gallery {
  margin: 3rem 0;
}

/* Créditos con el mismo estilo que los demás proyectos. */

body.workshops-page .workshop-item .workshop-credits {
  margin-bottom: 0;
}

/* Último taller: no añadir espacio innecesario antes del CTA. */

body.workshops-page .workshop-item:last-of-type {
  margin-bottom: 3rem;
}

/* Ajustes de separación para pantallas pequeñas.
   Los márgenes laterales, las fuentes y las columnas de la
   galería siguen dependiendo del CSS general del sitio. */

@media (max-width: 640px) {
  body.workshops-page .workshop-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
  }

  body.workshops-page .workshop-item .project-detail-header {
    margin-bottom: 1.75rem;
  }

  body.workshops-page .workshop-item .project-gallery {
    margin: 2rem 0;
  }

  body.workshops-page .workshop-item:last-of-type {
    margin-bottom: 2.5rem;
  }
}





/* =========================================================
   PRODUCTION & COLLABORATION LAT
   Reutiliza la estructura de Workshops
   ========================================================= */

body.production-collaboration-page .workshop-item {
  margin: 0 0 3.5rem;
  padding: 0 0 3rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

body.production-collaboration-page .workshop-item .project-detail-header {
  margin-bottom: 2.5rem;
}

body.production-collaboration-page .workshop-item .project-gallery {
  margin: 3rem 0;
}

body.production-collaboration-page .workshop-item .workshop-credits {
  margin-bottom: 0;
}

body.production-collaboration-page .workshop-item:last-of-type {
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  body.production-collaboration-page .workshop-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
  }

  body.production-collaboration-page .workshop-item .project-detail-header {
    margin-bottom: 1.75rem;
  }

  body.production-collaboration-page .workshop-item .project-gallery {
    margin: 2rem 0;
  }

  body.production-collaboration-page .workshop-item:last-of-type {
    margin-bottom: 2.5rem;
  }
}







/* =========================================================
   LAT — TOOLS
   Una imagen por herramienta
   Espaciado ampliado entre imagen y textos
   ========================================================= */

body.tools-page .workshop-item {
  margin: 0 0 3.5rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

/* Espacio entre encabezado e imagen */
body.tools-page .workshop-item .project-detail-header {
  margin-bottom: 1.25rem !important;
  padding-bottom: 0 !important;
}

/* Galería de una sola imagen */
body.tools-page .tools-gallery {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

/* Imagen sin márgenes ni proporción cuadrada forzada */
body.tools-page .tools-gallery .gallery-thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: zoom-in;
}

body.tools-page .tools-gallery .gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: contain;
}

/* Espacio entre imagen y descripción */
body.tools-page .workshop-item .workshop-credits {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  padding-top: 0.5rem;
}

/* Separación entre herramientas */
body.tools-page .workshop-item:last-of-type {
  margin-bottom: 2rem;
}

/* =========================================================
   LAT — TOOLS — MOBILE
   ========================================================= */

@media (max-width: 640px) {
  body.tools-page .workshop-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
  }

  body.tools-page .workshop-item .project-detail-header {
    margin-bottom: 0.9rem !important;
  }

  body.tools-page .tools-gallery {
    margin: 0 !important;
  }

  body.tools-page .workshop-item .workshop-credits {
    margin-top: 0.9rem !important;
    margin-bottom: 0 !important;
    padding-top: 0.5rem;
  }

  body.tools-page .workshop-item:last-of-type {
    margin-bottom: 1.5rem;
  }
}



/* =========================================================
   OCULTAR CURATORIAL WORK EN TODOS LOS MENÚS
   ========================================================= */

a[href="curatorial-work.html"] {
  display: none !important;
}



