/* ==========================================================================
   Portfolio — hoja de estilos

   Idea de fondo: la sala de edición a oscuras. Fondo cálido casi negro,
   texto crema, y un único color vivo, el rojo del tally de las cámaras,
   reservado para lo que está "en el aire": sonido activo, sección
   actual, disponibilidad.

   Tipografías alojadas aquí mismo: no se carga nada de terceros.
   ========================================================================== */

/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fuentes/dm-mono-300-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fuentes/dm-mono-300-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fuentes/dm-mono-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fuentes/dm-mono-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fuentes/dm-mono-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fuentes/dm-mono-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fuentes/instrument-serif-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fuentes/instrument-serif-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fuentes/instrument-serif-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fuentes/instrument-serif-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  --fondo:        #191715;
  --fondo-2:      #211E1B;
  --fondo-3:      #2C2825;
  --linea:        rgba(239, 233, 221, 0.14);
  --linea-suave:  rgba(239, 233, 221, 0.08);

  --tinta:        #EFE9DD;
  --tinta-2:      #BBB3A5;
  --tinta-3:      #88806F;

  --tally:        #E2482F;

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --mono:  'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --marco:   clamp(1.25rem, 5vw, 4.5rem);
  --ancho:   82rem;
  --hueco:   clamp(1.5rem, 3vw, 2.75rem);
  --respiro: clamp(4.5rem, 11vh, 9rem);

  --suave: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 1px solid var(--tally); outline-offset: 4px; }

.saltar {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--tinta); color: var(--fondo); text-decoration: none;
}
.saltar:focus { left: 0; }

/* Prosa: todo lo que se lee de corrido va en serif */
.prosa {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: 0.005em;
}

/* Enlace con subrayado que se dibuja de izquierda a derecha */
.raya {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--suave), color 0.25s;
}
.raya:hover, .raya.activo { background-size: 100% 1px; }


/* ==========================================================================
   Barra superior
   ========================================================================== */

.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0.95rem var(--marco);
  background: rgba(25, 23, 21, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--linea-suave);
  transform: translateY(-100%);
  transition: transform 0.4s var(--suave);
}
.barra.visible { transform: translateY(0); }

/* Cabezal: una línea que avanza con el scroll, como en una línea de tiempo */
.barra__cabezal {
  position: absolute; left: 0; bottom: -1px; height: 1px;
  width: var(--progreso, 0%);
  background: var(--tally);
  transition: width 0.15s linear;
}

.barra__nombre {
  font-family: var(--serif);
  font-size: 1.3rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.005em;
}

.barra__nav {
  display: flex; gap: clamp(1rem, 2.5vw, 2.2rem);
  font-size: 0.8rem; letter-spacing: 0.01em;
  color: var(--tinta-2);
}
.barra__nav a { text-decoration: none; }
.barra__nav a:hover, .barra__nav a.activo { color: var(--tinta); }

/* El punto tally marca la sección en pantalla */
.barra__nav a { position: relative; padding-left: 0.9rem; }
.barra__nav a::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--tally);
  transform: translateY(-50%) scale(0);
  transition: transform 0.35s var(--suave);
}
.barra__nav a.activo::before { transform: translateY(-50%) scale(1); }

@media (max-width: 40rem) {
  .barra__nombre { font-size: 1.1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .barra__nav a:nth-child(2), .barra__nav a:nth-child(3) { display: none; }
}


/* ==========================================================================
   Reel
   ========================================================================== */

.reel {
  position: relative;
  height: calc(100svh - 8rem);
  min-height: 26rem;
  overflow: hidden;
  background: #000;
}

/* Abre en negro y funde a imagen, como el arranque de una pieza */
.reel__lienzo { animation: fundir 1.6s 0.2s var(--suave) both; }
@keyframes fundir { from { opacity: 0; } to { opacity: 1; } }

.reel__lienzo, .reel__lienzo video, .reel__lienzo iframe, .reel__lienzo img {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;
}
.reel__lienzo iframe {
  width: 100vw; height: 56.25vw; min-height: 100svh; min-width: 177.77svh;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.reel__velo {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(25, 23, 21, 0.85) 0%, rgba(25, 23, 21, 0.25) 34%, rgba(25, 23, 21, 0) 62%),
    linear-gradient(to bottom, rgba(25, 23, 21, 0.35) 0%, rgba(25, 23, 21, 0) 20%);
}

.reel__pie {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  padding: var(--marco);
  padding-bottom: clamp(3.75rem, 9vh, 5.75rem);
}

.reel__nombre {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 10.5vw, 8.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.reel__rol {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  color: var(--tinta-2);
}

.reel__base:empty::before { display: none; }
.reel__base::before {
  content: ''; display: inline-block; width: 1.75rem; height: 1px;
  margin: 0 0.75rem 0.4rem; background: var(--tinta-3); vertical-align: middle;
}

/* Entrada de la firma: sube y las letras se asientan, como un título de crédito */
.reel__id > * {
  opacity: 0; transform: translateY(0.9rem);
  animation: entrar 1.1s 0.45s var(--suave) forwards;
}
.reel__nombre { letter-spacing: 0.03em; animation-name: entrarNombre; }
.reel__id > *:nth-child(2) { animation-delay: 0.7s; }

@keyframes entrar { to { opacity: 1; transform: none; } }
@keyframes entrarNombre { to { opacity: 1; transform: none; letter-spacing: -0.015em; } }

/* Botón de sonido: al activarse, el tally se enciende */
.sonido {
  display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0;
  padding: 0.6rem 1.05rem 0.6rem 0.9rem;
  border: 1px solid var(--linea); border-radius: 999px;
  background: rgba(25, 23, 21, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem; letter-spacing: 0.01em; color: var(--tinta-2);
  transition: color 0.25s, border-color 0.25s;
  opacity: 0; animation: entrar 1s 1.1s var(--suave) forwards;
}
.sonido:hover { color: var(--tinta); border-color: var(--tinta-3); }

.sonido__ondas { display: flex; align-items: center; gap: 2px; height: 0.85rem; }
.sonido__ondas i { width: 2px; height: 25%; background: currentColor; border-radius: 1px; transition: height 0.2s, background-color 0.3s; }

.sonido[aria-pressed='true'] { color: var(--tinta); border-color: rgba(226, 72, 47, 0.5); }
.sonido[aria-pressed='true'] .sonido__ondas i { background: var(--tally); animation: onda 1.05s ease-in-out infinite; }
.sonido[aria-pressed='true'] .sonido__ondas i:nth-child(2) { animation-delay: 0.18s; }
.sonido[aria-pressed='true'] .sonido__ondas i:nth-child(3) { animation-delay: 0.36s; }
.sonido[aria-pressed='true'] .sonido__ondas i:nth-child(4) { animation-delay: 0.1s; }
@keyframes onda { 0%, 100% { height: 25%; } 50% { height: 100%; } }

@media (max-width: 40rem) {
  .reel__pie { flex-direction: column; align-items: flex-start; }
  .sonido__texto { display: none; }
  .sonido { padding: 0.6rem 0.85rem; }
}
@media (max-width: 27rem) {
  .reel__base { display: block; margin-top: 0.15rem; }
  .reel__base::before { display: none; }
}

/* Indicador de bajada: un cabezal que recorre una línea de tiempo vertical */
.bajar {
  position: absolute; left: 50%; bottom: clamp(1rem, 2.6vh, 1.75rem);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  padding: 0.35rem 0.75rem; text-decoration: none; color: var(--tinta-2);
  opacity: 0; animation: entrar 1s 1.4s var(--suave) forwards;
}
.bajar__texto { display: none; }
.bajar__pista {
  position: relative; display: block; width: 1px; height: 3rem;
  background: rgba(239, 233, 221, 0.28); overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.bajar__pista i {
  position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--tinta);
  animation: descender 2.3s cubic-bezier(0.55, 0, 0.35, 1) infinite;
}
@keyframes descender {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; } 72% { opacity: 1; }
  100% { transform: translateY(350%); opacity: 0; }
}
@media (max-width: 40rem) {
  .bajar { left: auto; right: calc(var(--marco) - 0.75rem); transform: none; }
}


/* ==========================================================================
   Bloques
   ========================================================================== */

.bloque {
  max-width: var(--ancho); margin-inline: auto;
  padding: var(--respiro) var(--marco) clamp(3rem, 7vh, 5rem);
  scroll-margin-top: 4.5rem;
}
.bloque + .bloque { padding-top: 0; }
.bloque:first-of-type { padding-top: clamp(2.25rem, 5vh, 3.5rem); }

.bloque + .bloque::before, .cierre::before {
  content: ''; display: block; height: 1px;
  margin-bottom: clamp(3rem, 7vh, 5rem);
  background: var(--linea-suave);
}
.perfil::before, .perfil__titulo { grid-column: 1 / -1; }

.bloque__titulo {
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 400; line-height: 1; letter-spacing: -0.01em;
}

.bloque__intro {
  margin: calc(-1 * clamp(1.75rem, 4vw, 3rem) + 0.75rem) 0 clamp(1.75rem, 4vw, 3rem);
  max-width: 56ch;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4;
  color: var(--tinta-2);
}


/* ==========================================================================
   Marco de las miniaturas: un borde fino que las define sobre el fondo
   oscuro, y un ligero aclarado al pasar el ratón.
   ========================================================================== */

.visor-marco { position: relative; }

.visor-marco::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(239, 233, 221, 0.07);
  transition: box-shadow 0.4s var(--suave);
}

.visor-marco:hover::after,
.visor-marco:focus-visible::after {
  box-shadow: inset 0 0 0 1px rgba(239, 233, 221, 0.2);
}


/* ==========================================================================
   Rejilla de trabajos
   ========================================================================== */

.rejilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--hueco); }
.obra { grid-column: span 1; }
.obra--ancha { grid-column: 1 / -1; }
@media (max-width: 46rem) {
  .rejilla { grid-template-columns: 1fr; }
  .obra, .obra--ancha { grid-column: 1 / -1; }
}

.obra__marco {
  display: block; width: 100%; padding: 0;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--fondo-2); border-radius: 2px; cursor: pointer;
}
.obra--ancha .obra__marco { aspect-ratio: 2 / 1; }
@media (max-width: 46rem) { .obra--ancha .obra__marco { aspect-ratio: 16 / 9; } }

.obra__poster, .obra__previo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obra__previo { opacity: 0; transition: opacity 0.45s ease; }
.obra__previo.activo { opacity: 1; }
.obra__poster { transition: transform 0.8s var(--suave), filter 0.5s; }
.obra__marco:hover .obra__poster { transform: scale(1.025); }

.obra__play {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 4;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgba(25, 23, 21, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s, transform 0.3s var(--suave);
}
.obra__marco:hover .obra__play { background: var(--tinta); transform: scale(1.05); }
.obra__play svg { width: 0.85rem; height: 0.95rem; fill: var(--tinta); margin-left: 2px; transition: fill 0.3s; }
.obra__marco:hover .obra__play svg { fill: var(--fondo); }

.obra__tiempo {
  position: absolute; right: 1.1rem; bottom: 1.2rem; z-index: 4;
  padding: 0.2rem 0.5rem; border-radius: 2px;
  background: rgba(25, 23, 21, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; color: var(--tinta);
  transition: opacity 0.3s;
}
.obra__tiempo:empty { display: none; }
.obra__marco:hover .obra__tiempo { opacity: 0.6; }

.obra__ficha { padding: 1.05rem 0.1rem 0; }
.obra__titulo {
  margin: 0;
  font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.15;
}
.obra--ancha .obra__titulo { font-size: 2.1rem; }
.obra__meta {
  margin: 0.4rem 0 0;
  font-size: 0.78rem; letter-spacing: 0.02em; color: var(--tinta-3);
}
.obra__desc {
  margin: 0.7rem 0 0; max-width: 56ch;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--tinta-2);
}


/* ==========================================================================
   Galería de fotos
   ========================================================================== */

.serie {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.1rem;
  margin-bottom: 1.25rem; padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--linea-suave);
}
.galeria + .serie { margin-top: clamp(2.25rem, 5vw, 3.75rem); }
.serie__titulo { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 400; line-height: 1.2; }
.serie__nota { margin: 0; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--tinta-3); }

.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--hueco); }
@media (max-width: 52rem) { .galeria { grid-template-columns: repeat(2, 1fr); } }

.foto {
  aspect-ratio: 1; min-width: 0; padding: 0; margin: 0;
  background: var(--fondo-2); border-radius: 2px; overflow: hidden; cursor: zoom-in;
}
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--suave); }
.foto:hover img { transform: scale(1.04); }


/* ==========================================================================
   Perfil

   Texto a la izquierda, foto y equipo apilados a la derecha. Así las dos
   columnas acaban a una altura parecida aunque la biografía sea larga.
   ========================================================================== */

.perfil {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: var(--hueco) clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* Filas explícitas: si se dejan al azar, la foto empuja el texto hacia abajo */
.perfil::before  { grid-column: 1 / -1; grid-row: 1; }
.perfil__titulo  { grid-column: 1 / -1; grid-row: 2; }
.perfil__foto    { grid-column: 2; grid-row: 3; }
.perfil__texto   { grid-column: 1; grid-row: 3 / 5; }
.perfil__equipo  { grid-column: 2; grid-row: 4; }

@media (max-width: 60rem) {
  .perfil { grid-template-columns: 1fr; }
  .perfil__texto, .perfil__foto, .perfil__equipo { grid-column: 1; grid-row: auto; }
  /* En una sola columna: título, foto, texto, equipo */
  .perfil::before  { order: 0; }
  .perfil__titulo  { order: 1; }
  .perfil__foto    { order: 2; }
  .perfil__texto   { order: 3; }
  .perfil__equipo  { order: 4; }
}

.retrato {
  display: block; width: 100%; padding: 0; margin: 0;
  aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: var(--fondo-2);
}
button.retrato { cursor: pointer; }
.retrato img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--suave); }
button.retrato:hover img { transform: scale(1.02); }
button.retrato:hover .obra__play { background: var(--tinta); }
button.retrato:hover .obra__play svg { fill: var(--fondo); }

.perfil__bio {
  margin: 0 0 1.1rem;
  max-width: 62ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.55vw, 1.3rem);
  line-height: 1.52;
  color: var(--tinta-2);
}
.perfil__bio:last-child { margin-bottom: 0; }

/* La primera línea entra en crema, como una entradilla */
.perfil__bio:first-child { color: var(--tinta); }

.equipo__fila {
  display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem 1.25rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--linea-suave);
}
.equipo__fila:first-child { border-top: 1px solid var(--linea); }
.equipo__fila:last-child { border-bottom-color: var(--linea); }
@media (max-width: 30rem) { .equipo__fila { grid-template-columns: 1fr; gap: 0.35rem; } }
.equipo__grupo { margin: 0; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; color: var(--tinta); }
.equipo__lista { margin: 0; font-size: 0.78rem; letter-spacing: 0.01em; line-height: 1.8; color: var(--tinta-3); }


/* ==========================================================================
   Cierre / contacto
   ========================================================================== */

.cierre {
  max-width: var(--ancho); margin: 0 auto;
  padding: 0 var(--marco) clamp(3rem, 7vh, 5rem);
  scroll-margin-top: 5.5rem;
}
.cierre__titulo {
  margin: 0 0 1.25rem;
  font-family: var(--serif); font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 400; line-height: 1; letter-spacing: -0.01em;
}
.cierre__linea { margin: 0 0 0.45rem; }
.cierre__correo {
  font-family: var(--serif); font-size: clamp(1.7rem, 4.8vw, 3rem); line-height: 1.15;
  text-decoration: none; word-break: break-word;
  background-image: linear-gradient(var(--tinta-3), var(--tinta-3));
  background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-image 0.3s;
}
.cierre__correo:hover { background-image: linear-gradient(var(--tinta), var(--tinta)); }

.cierre__linea--menor { font-size: 0.9rem; letter-spacing: 0.02em; color: var(--tinta-2); }
.cierre__linea--menor a { text-decoration: none; }
.cierre__linea--menor a:hover { color: var(--tinta); }

/* Disponibilidad: el tally encendido, con un latido lento */
.cierre__disponible {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin: 1.6rem 0 0;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--tinta-2);
}
.cierre__disponible::before {
  content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--tally); position: relative; top: -2px;
  box-shadow: 0 0 0 0 rgba(226, 72, 47, 0.55);
  animation: latir 3.2s ease-in-out infinite;
}
@keyframes latir {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 72, 47, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(226, 72, 47, 0); }
}

.cierre__enlaces {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--linea);
  font-size: 0.8rem; letter-spacing: 0.02em;
}
.cierre__enlaces a { color: var(--tinta-2); }
.cierre__enlaces a:hover { color: var(--tinta); }

.cierre__lugar:not(:empty)::before { content: ', '; }
.cierre__pie { margin: 2.5rem 0 0; font-size: 0.74rem; letter-spacing: 0.03em; color: var(--tinta-3); }


/* ==========================================================================
   Visor (vídeos y fotos a pantalla completa)
   ========================================================================== */

.visor {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3.5rem);
  background: rgba(17, 16, 14, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.3s ease;
}
.visor.abierto { opacity: 1; }
.visor[hidden] { display: none; }

.visor__contenido { display: grid; place-items: center; width: 100%; max-width: 100%; max-height: 82vh; }
.visor__contenido video, .visor__contenido img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 2px; background: #000;
}
.visor__pie {
  position: absolute; left: 50%; bottom: clamp(1rem, 3vw, 2rem); transform: translateX(-50%);
  margin: 0; max-width: 46ch; text-align: center; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--tinta-3);
}

.visor__cerrar, .visor__mover {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1px solid var(--linea); background: rgba(33, 30, 27, 0.7);
  transition: background-color 0.2s, border-color 0.2s;
}
.visor__cerrar:hover, .visor__mover:hover { background: rgba(44, 40, 37, 0.95); border-color: var(--tinta-3); }
.visor__cerrar { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.visor__mover--atras { left: clamp(0.6rem, 2.5vw, 2rem); top: 50%; margin-top: -1.45rem; }
.visor__mover--adelante { right: clamp(0.6rem, 2.5vw, 2rem); top: 50%; margin-top: -1.45rem; }
.visor__cerrar svg, .visor__mover svg {
  width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.visor__mover[hidden] { display: none; }
body.bloqueado { overflow: hidden; }


/* ==========================================================================
   Marcador para archivos que todavía no existen
   ========================================================================== */

.vacio {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(239, 233, 221, 0.035) 0 10px, transparent 10px 20px),
    var(--fondo-2);
  border: 1px dashed var(--linea);
}
.vacio::after {
  content: 'Falta ' attr(data-vacio);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem;
  text-align: center; font-size: 0.78rem; color: var(--tinta-3);
  box-shadow: none !important;
}
.obra__marco.vacio .obra__play, .obra__marco.vacio .obra__tiempo { display: none; }


/* ==========================================================================
   Página de aviso legal
   ========================================================================== */

.legal { max-width: 46rem; }
.legal h3 {
  margin: clamp(2.25rem, 5vw, 3.25rem) 0 0.75rem;
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 400; line-height: 1.2;
}
.legal h3:first-of-type { margin-top: 0; }
.legal p, .legal li {
  margin: 0 0 0.9rem;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; color: var(--tinta-2);
}
.legal ul { margin: 0 0 0.9rem; padding-left: 1.15rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--tinta); }

.legal__dato {
  display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem 1.25rem;
  margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--linea-suave); font-size: 0.85rem;
}
.legal__dato:first-of-type { border-top: 1px solid var(--linea-suave); }
.legal__dato + p { margin-top: 1.4rem; }
.legal__dato dt { margin: 0; color: var(--tinta); font-weight: 500; letter-spacing: 0.02em; }
.legal__dato dd { margin: 0; color: var(--tinta-3); }
@media (max-width: 30rem) { .legal__dato { grid-template-columns: 1fr; gap: 0.2rem; } }

.volver {
  display: inline-block; margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.85rem; letter-spacing: 0.02em; color: var(--tinta-2);
}
.volver:hover { color: var(--tinta); }


/* ==========================================================================
   Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reel__id > *, .sonido, .bajar { opacity: 1; transform: none; }
  .reel__nombre { letter-spacing: -0.015em; }
  .reel__lienzo { opacity: 1; }
  .bajar__pista i { animation: none; opacity: 1; transform: translateY(150%); }
}
