:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-2: #16161f;
  --line: rgba(240, 240, 245, 0.09);
  --text: #f0f0f5;
  --muted: #a3a3b2;
  --faint: #8b8b9c;
  --accent: #2979ff;
  --accent-strong: #2962ff;
  --accent-soft: rgba(41, 121, 255, 0.16);
  --font-display: 'Unbounded', 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --gutter: max(clamp(20px, 4vw, 56px), calc((100vw - 1480px) / 2));
  --gap-carril: clamp(10px, 1.2vw, 18px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #2a2a36 var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
::selection { background: #1f5be0; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a36; border-radius: 10px; border: 2px solid var(--bg); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.saltar { position: absolute; left: -9999px; top: 0; z-index: 100; background: #1f5be0; color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.saltar:focus { left: 0; }

/* ---------- Barra superior ---------- */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.55) 60%, rgba(10, 10, 15, 0));
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.barra.solida { background: rgba(10, 10, 15, 0.94); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.35); }
.marca { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; }
.menu { display: flex; gap: clamp(14px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: rgba(240, 240, 245, 0.86); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) {
  .menu li.opcional { display: none; }
  .marca { font-size: 1.1rem; }
}

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 6px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.boton svg { width: 20px; height: 20px; flex: none; }
.boton.primario { background: #1f5be0; color: #fff; box-shadow: 0 6px 20px rgba(31, 91, 224, 0.35); }
.boton.primario:hover { background: #2f6df3; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(31, 91, 224, 0.5); }
.boton.secundario { background: rgba(41, 121, 255, 0.34); color: #fff; border: 1.5px solid #5b9bff; }
.boton.secundario:hover { background: rgba(41, 121, 255, 0.55); border-color: #9cc3ff; transform: translateY(-1px); }
.boton.acento { background: #1f5be0; color: #fff; box-shadow: 0 6px 20px rgba(31, 91, 224, 0.35); }
.boton.acento:hover { background: #2f6df3; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(31, 91, 224, 0.5); }

/* ---------- Destacado de la home ---------- */
.destacado {
  position: relative; isolation: isolate;
  min-height: max(560px, 78svh);
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(56px, 9vh, 96px);
  overflow: hidden;
}
.destacado-foto {
  position: absolute; z-index: -2; top: 0; right: 0; height: 100%; width: min(62vw, 980px);
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%), linear-gradient(to top, transparent 0, #000 30%);
  mask-image: linear-gradient(to left, #000 45%, transparent 100%);
}
.destacado-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.destacado::after {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, var(--bg) 8%, rgba(10, 10, 15, 0));
}
.destacado-texto { max-width: 720px; }
.destacado h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55); }
.destacado .bajada { margin-top: 18px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--text); font-weight: 500; }
.destacado .resumen { margin-top: 12px; color: #c9c9d6; max-width: 52ch; }
.destacado .botones { margin-top: 30px; }
@media (max-width: 760px) {
  .destacado { min-height: 92svh; padding-top: 96px; }
  .destacado-foto { width: 100%; height: 72%; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 55%); mask-image: linear-gradient(to top, transparent 0, #000 55%); }
}

/* ---------- Filas tipo catálogo ---------- */
main { display: block; }
.fila { padding: clamp(28px, 4.5vw, 52px) 0 0; }
.fila-cabeza { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin-bottom: 16px; }
.fila-cabeza h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.fila-cabeza h2 a { text-decoration: none; }
.fila-cabeza h2 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.fila-cabeza p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; max-width: 60ch; }
.flechas { display: flex; flex: none; }
.flecha {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(240, 240, 245, 0.55);
  background: rgba(240, 240, 245, 0.12); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease), opacity 0.2s;
}
.flecha:hover:not(:disabled) { background: #f0f0f5; color: #0a0a0f; border-color: #f0f0f5; transform: scale(1.08); }
.flecha:disabled { opacity: 0.32; cursor: default; box-shadow: none; }
.flecha svg { width: 24px; height: 24px; stroke-width: 2.5; }
.flechas { gap: 10px; }
@media (hover: none), (max-width: 760px) { .flechas { display: none; } }

.carril {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 27vw, 440px);
  gap: var(--gap-carril);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); padding: 6px var(--gutter) 22px;
  list-style: none; margin: 0; scrollbar-width: none;
}
.carril::-webkit-scrollbar { display: none; }
.carril > li { scroll-snap-align: start; }

/* Tarjeta de obra */
.obra {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.obra img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.45s; }
.obra::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 10, 0.92) 0%, rgba(6, 6, 10, 0.45) 38%, rgba(6, 6, 10, 0) 62%);
}
.obra-texto { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 14px 16px; }
.obra h3 { font-size: clamp(1.1rem, 1.3vw, 1.3rem); font-weight: 600; line-height: 1.2; }
.obra-meta { margin-top: 3px; font-size: 0.82rem; color: #c4c4d0; font-variant-numeric: tabular-nums; }
.obra-extra {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.3s;
}
.obra-extra > span { overflow: hidden; font-size: 0.85rem; color: var(--text); }
.obra-extra b { color: var(--accent); font-weight: 600; }
.obra:hover, .obra:focus-visible { transform: scale(1.045); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); z-index: 2; }
.obra:hover img, .obra:focus-visible img { transform: scale(1.04); }
.obra:hover .obra-extra, .obra:focus-visible .obra-extra { grid-template-rows: 1fr; opacity: 1; }
.obra:focus-visible { outline-offset: 2px; }

/* Portada tipográfica para obras sin imagen */
.obra.tipografica { background: linear-gradient(150deg, #18213a 0%, var(--surface) 70%); }
.obra.tipografica::after { background: linear-gradient(to top, rgba(6, 6, 10, 0.7), rgba(6, 6, 10, 0) 70%); }
.obra.tipografica .rotulo {
  position: absolute; inset: 14px 16px auto; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; letter-spacing: -0.03em; color: rgba(240, 240, 245, 0.92);
}
.obra.tipografica .rotulo small { display: block; margin-top: 6px; font-size: 0.5em; font-weight: 500; color: var(--accent); letter-spacing: 0; }

/* ---------- Bloques de texto ---------- */
.bloque { padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.bloque-angosto { max-width: 1180px; }
.bloque h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.sobre { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sobre .texto p { margin-top: 18px; color: #d6d6e0; max-width: 64ch; }
.sobre .texto p:first-of-type { color: var(--text); font-size: 1.12rem; }
.datos { margin: 0; border-top: 1px solid var(--line); }
.datos div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.datos dt { color: var(--faint); font-size: 0.9rem; }
.datos dd { margin: 0; }
@media (max-width: 860px) { .sobre { grid-template-columns: 1fr; } }

/* Prensa */
.carril-prensa { grid-auto-columns: clamp(260px, 26vw, 380px); }
.nota {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nota:hover { border-color: rgba(41, 121, 255, 0.5); background: var(--surface-2); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.nota-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.nota-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.nota-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 17, 24, 0.9), rgba(17, 17, 24, 0) 55%); }
.nota:hover .nota-img img { transform: scale(1.04); }
.nota-cuerpo { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 16px 20px 20px; margin-top: -28px; position: relative; }
.nota-titular { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; line-height: 1.3; flex: 1; }
.nota-medio { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: 0.06em; }
.nota-medio b { color: var(--accent); font-weight: 600; }
.nota-leer { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #c9c9d6; font-weight: 500; }
.nota-leer svg { width: 16px; height: 16px; }
.nota:hover .nota-leer { color: var(--text); }
.nota-grande { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.nota-grande .nota-img { aspect-ratio: auto; min-height: 340px; }
.nota-grande .nota-img::after { background: linear-gradient(to left, rgba(17, 17, 24, 0.95), rgba(17, 17, 24, 0) 45%); }
.nota-grande .nota-cuerpo { margin: 0; padding: clamp(24px, 4vw, 48px); justify-content: center; }
.nota-grande .nota-titular { flex: 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.3; }
@media (max-width: 760px) {
  .nota-grande { grid-template-columns: 1fr; }
  .nota-grande .nota-img { min-height: 0; aspect-ratio: 16 / 9; }
  .nota-grande .nota-img::after { background: linear-gradient(to top, rgba(17, 17, 24, 0.9), rgba(17, 17, 24, 0) 55%); }
}

/* Contacto */
.contacto {
  margin: clamp(72px, 10vw, 128px) var(--gutter) 0; padding: clamp(36px, 6vw, 72px);
  border-radius: 18px; background: linear-gradient(135deg, #121a2e 0%, var(--surface) 60%);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
.contacto h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.contacto p { margin-top: 12px; color: #c9c9d6; max-width: 56ch; }
@media (max-width: 760px) { .contacto { grid-template-columns: 1fr; } }

/* Pie */
.pie { margin-top: clamp(72px, 10vw, 120px); padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.pie-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0 0 18px; }
.pie-nav a { text-decoration: none; color: var(--muted); }
.pie-nav a:hover { color: var(--text); }
.pie-redes { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0 0 22px; }
.pie-redes a { text-decoration: none; color: var(--text); }
.pie-redes a:hover { color: var(--accent); }
.pie p + p { margin-top: 6px; }

/* ---------- Ficha de obra ---------- */
.ficha-cabeza { position: relative; isolation: isolate; padding: 112px var(--gutter) 0; overflow: hidden; }
.ficha-fondo { position: absolute; inset: 0 0 auto 0; height: 620px; z-index: -1; overflow: hidden; }
.ficha-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: brightness(0.62); }
.ficha-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 10, 15, 0.35), rgba(10, 10, 15, 0) 30%, var(--bg) 95%), linear-gradient(to right, rgba(10, 10, 15, 0.82) 0%, rgba(10, 10, 15, 0.35) 55%, rgba(10, 10, 15, 0.15) 100%); }
.migas { font-size: 0.88rem; color: var(--muted); }
.migas ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.migas li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.migas a { text-decoration: none; }
.migas a:hover { color: var(--text); }
.ficha-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); margin-top: 24px; align-items: start; }
.ficha h1 { font-size: clamp(1.45rem, 3.1vw, 2.4rem); letter-spacing: -0.03em; }
.ficha-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: #c9c9d6; font-variant-numeric: tabular-nums; }
.ficha-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); margin-right: 18px; vertical-align: middle; }
.ficha-resumen { margin-top: 22px; font-size: 1.12rem; max-width: 60ch; }
.ficha .botones { margin-top: 28px; }
.ficha .datos { margin-top: 8px; }
@media (max-width: 900px) { .ficha-grid { grid-template-columns: 1fr; } }

.reproductor {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.reproductor > a, .reproductor > button { position: absolute; inset: 0; display: block; padding: 0; border: 0; cursor: pointer; background: none; color: inherit; }
.reproductor img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.reproductor iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reproducir {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 10, 15, 0.55); border: 1.5px solid rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), background 0.25s;
}
.reproducir svg { width: 30px; height: 30px; margin-left: 4px; }
.reproductor:hover .reproducir { transform: scale(1.08); background: var(--accent-strong); border-color: var(--accent-strong); }
.reproductor:hover img { transform: scale(1.03); }
.reproductor-nota { margin-top: 10px; font-size: 0.85rem; color: var(--faint); }

.fuentes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.fuentes a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s; }
.fuentes a:hover { border-color: rgba(41, 121, 255, 0.5); }
.fuentes small { color: var(--muted); white-space: nowrap; }

/* ---------- Texto editorial de la ficha ---------- */
.reproductor-desc { margin-top: 6px; font-size: 0.92rem; color: var(--muted); max-width: 52ch; }
.ficha-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 6vw, 88px); padding: clamp(64px, 9vw, 112px) var(--gutter) 0; align-items: start; max-width: 1280px; }
.ficha-texto { max-width: 70ch; }
.ficha-texto h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ficha-texto p { margin-top: 16px; color: #d6d6e0; font-size: 1.05rem; line-height: 1.75; }
.ficha-texto section > h2 + p { color: var(--text); font-size: 1.14rem; }
.ficha-texto a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.ficha-texto section + section, .ficha-texto figure + section { margin-top: 64px; }
.ficha-figura { margin: 48px 0 0; }
.ficha-figura img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.ficha-figura figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--faint); }
.papel { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 16px; background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%); border: 1px solid var(--line); }
.papel::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--accent); }
.papel-sello { margin: 0 0 10px !important; font-size: 0.78rem !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #8fb4ff !important; }
.ficha-aside { position: sticky; top: 92px; display: grid; gap: 18px; }
.ficha-fuentes .fuentes { margin-top: 4px; }
.ficha-fuentes .fuentes a { flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--surface-2); font-size: 0.92rem; }
.ficha-fuentes .fuentes small { white-space: normal; }
.clip-desc { margin-top: 10px; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .ficha-cuerpo { grid-template-columns: 1fr; } .ficha-aside { position: static; } }

/* Trayectoria */
.trayectoria { columns: 2 340px; column-gap: clamp(32px, 6vw, 80px); margin-top: 36px; }
.trayectoria section { break-inside: avoid; margin-bottom: 40px; }
.trayectoria h2 { font-size: 1.35rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.trayectoria ul { list-style: none; padding: 0; margin: 0; }
.trayectoria li { padding: 10px 0; border-bottom: 1px solid var(--line); color: #d6d6e0; }
.trayectoria li a { color: var(--text); text-decoration-color: var(--accent); }
.pagina-cabeza { padding: 120px var(--gutter) 0; }
.pagina-cabeza h1 { font-size: clamp(1.45rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.pagina-cabeza p { margin-top: 16px; color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.lista-prensa { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.legal { max-width: 70ch; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal li { color: #d6d6e0; margin-top: 12px; }

/* ---------- Shorts verticales ---------- */
.carril-cortos { grid-auto-columns: clamp(150px, 14vw, 210px); }
.corto {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--surface); text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.corto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.corto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 6, 10, 0.94) 0%, rgba(6, 6, 10, 0.3) 40%, rgba(6, 6, 10, 0) 60%); }
.corto-texto { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 12px 14px 14px; }
.corto-sello { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 99px; background: rgba(240, 240, 245, 0.16); backdrop-filter: blur(6px); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.corto-sello svg { width: 11px; height: 11px; }
.corto h3 { margin-top: 8px; font-size: 0.98rem; line-height: 1.22; font-weight: 600; }
.corto:hover, .corto:focus-visible { transform: scale(1.05); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); z-index: 2; }
.corto:hover img { transform: scale(1.05); }

/* ---------- Galería de videos y fichas ---------- */
.seccion-cabeza { margin-bottom: 26px; }
.seccion-cabeza p { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.galeria { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.reproducir.mini { width: 52px; height: 52px; z-index: 1; opacity: 0.92; }
.reproducir.mini svg { width: 20px; height: 20px; margin-left: 3px; }
.clip .obra-texto { padding-top: 0; }
.clip h3 { font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip:hover .reproducir.mini { background: var(--accent-strong); border-color: var(--accent-strong); }
.fila-cortos + .fila-cortos, .bloque + .fila-cortos { padding-top: clamp(48px, 6vw, 80px); }

/* ---------- Cifras ---------- */
.cifras { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cifras li { padding: 22px 20px; }
.cifras li + li { border-left: 1px solid var(--line); }
.cifras b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cifras span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 560px) { .cifras li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Trayectoria ---------- */
.tray-cabeza { position: relative; isolation: isolate; }
.tray-cabeza { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tray-indice ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tray-indice a { display: inline-block; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 0.92rem; transition: border-color 0.2s, background 0.2s; }
.tray-indice a:hover { border-color: rgba(41, 121, 255, 0.6); background: var(--surface-2); }
.hitos { list-style: none; padding: 0; margin: 12px auto 0; max-width: 1080px; position: relative; }
.hitos::before { content: ""; position: absolute; top: 0; bottom: 40px; left: 50%; width: 2px; translate: -1px 0; background: linear-gradient(to bottom, var(--accent), rgba(41, 121, 255, 0.15)); }
.hito { position: relative; width: 50%; padding: 0 56px 64px 0; text-align: right; }
.hito:nth-child(even) { margin-left: 50%; padding: 0 0 64px 56px; text-align: left; }
.hito + .hito { margin-top: -150px; }
.hito::after { content: ""; position: absolute; top: 10px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.hito:nth-child(even)::after { right: auto; left: -8px; }
.hito > a, .hito > div { display: block; text-decoration: none; }
.hito-anio { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.hito img { width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); transition: transform 0.45s var(--ease); }
.hito:nth-child(even) img { margin-left: 0; }
.hito-vacio { display: none; }
.hito-texto { display: block; margin: 14px 0 0 auto; max-width: 40ch; color: #d6d6e0; font-size: 1rem; line-height: 1.55; }
.hito:nth-child(even) .hito-texto { margin-left: 0; }
.hito a:hover img { transform: scale(1.03); }
.hito a:hover .hito-texto { color: var(--text); }
@media (max-width: 760px) {
  .hitos::before { left: 7px; translate: 0; bottom: 24px; }
  .hito, .hito:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 44px 40px; text-align: left; }
  .hito + .hito { margin-top: 0; }
  .hito::after, .hito:nth-child(even)::after { left: 0; right: auto; top: 8px; }
  .hito img, .hito-texto { margin-left: 0; }
}
.disciplina { padding: clamp(72px, 10vw, 128px) var(--gutter) 0; scroll-margin-top: 80px; }
.disciplina-banda { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.disciplina-banda img { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.disciplina-banda::after { content: ""; grid-column: 2; grid-row: 1; align-self: stretch; background: linear-gradient(to right, var(--surface) 0%, rgba(17, 17, 24, 0) 38%); pointer-events: none; }
.disciplina-titulo { grid-column: 1; grid-row: 1; padding: clamp(28px, 4vw, 56px); }
@media (max-width: 760px) {
  .disciplina-banda { grid-template-columns: 1fr; }
  .disciplina-banda img, .disciplina-banda::after { grid-column: 1; grid-row: 1; }
  .disciplina-banda::after { background: linear-gradient(to top, var(--surface) 0%, rgba(17, 17, 24, 0) 45%); }
  .disciplina-titulo { grid-row: 2; padding-top: 4px; }
}
.disciplina-titulo h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
.disciplina-titulo p { margin-top: 14px; color: #d6d6e0; }
.disciplina-banda + .seccion-cabeza { margin-top: clamp(40px, 5vw, 64px); }
.creditos-titulo { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.creditos { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.lista-trabajos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.credito { position: relative; isolation: isolate; display: flex; align-items: flex-end; height: 100%; min-height: 150px; padding: 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.credito img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9) saturate(1.05); }
.credito::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.45) 45%, rgba(10, 10, 15, 0) 75%); }
.credito::after { content: ""; position: absolute; top: 20px; left: 20px; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }
.credito-texto { display: flex; flex-direction: column; gap: 6px; }
.credito-nombre { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.credito-detalle { font-size: 0.86rem; color: #c9c9d6; }

/* ---------- Prensa ---------- */
.prensa-portada { padding-top: clamp(40px, 5vw, 64px); }
.prensa-anio { padding: clamp(56px, 7vw, 88px) var(--gutter) 0; }
.prensa-anio-cabeza { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: baseline; }
.prensa-anio-cabeza h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.prensa-anio-cabeza p { color: var(--muted); max-width: 62ch; }
.prensa-anio .lista-prensa { margin-top: 24px; }
@media (max-width: 560px) { .prensa-anio-cabeza { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Biografía ---------- */
.bio-cabeza { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 110px var(--gutter) 0; }
.bio-cabeza-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.bio-cabeza h1 { margin-top: 18px; font-size: clamp(1.45rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.bio-cabeza p { margin-top: 18px; color: #d6d6e0; max-width: 62ch; }
.bio-cabeza .bio-entrada { color: var(--text); font-size: 1.15rem; }
.bio-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding: clamp(64px, 9vw, 112px) var(--gutter) 0; align-items: start; }
.bio-aside { position: sticky; top: 92px; }
.bio-ficha { padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.bio-ficha h2 { font-size: 1.2rem; margin-bottom: 14px; }
.bio-ficha .datos div { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
.bio-ficha .datos dd a { color: var(--text); text-decoration-color: var(--accent); }
.bio-texto { max-width: 72ch; }
.bio-texto section + section, .bio-texto figure + section { margin-top: 56px; }
.bio-texto h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.bio-texto p { margin-top: 16px; color: #d6d6e0; font-size: 1.05rem; line-height: 1.75; }
.bio-texto a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.bio-texto a:hover { color: #fff; }
.bio-figura { margin: 56px 0 0; }
.bio-figura img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.bio-figura figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--faint); }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { margin-top: 18px; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.15rem; font-weight: 600; }
.faq-item p { margin-top: 8px; }
@media (max-width: 900px) {
  .bio-cabeza, .bio-grid { grid-template-columns: 1fr; }
  .bio-cabeza-foto { max-width: 420px; }
  .bio-aside { position: static; }
}

/* Ventana de video */
.ventana { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 12px; background: #000; color: var(--text); overflow: visible; }
.ventana::backdrop { background: rgba(4, 4, 8, 0.86); backdrop-filter: blur(4px); }
.ventana .marco { aspect-ratio: 16 / 9; }
.ventana iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; display: block; }
.cerrar { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.cerrar svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Fondos negros sólidos (videos verticales sin franjas blancas) ---------- */
.obra, .obra.clip, .corto, .reproductor, .nota-img, .ventana, .ventana .marco, .reproductor iframe, .ventana iframe { background: #000; }
.reproductor img { object-fit: contain; }
.reproductor:has(.archivo), .reproductor.archivo { background: #000; }

/* ---------- Menú hamburguesa ---------- */
.menu-boton { display: none; }
@media (max-width: 760px) {
  .menu-boton {
    display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; border: 0; border-radius: 10px;
    background: transparent; color: var(--text); cursor: pointer;
  }
  .menu-boton span, .menu-boton span::before, .menu-boton span::after {
    display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.3s var(--ease), background 0.2s;
  }
  .menu-boton span { position: relative; }
  .menu-boton span::before, .menu-boton span::after { content: ""; position: absolute; left: 0; }
  .menu-boton span::before { top: -7px; }
  .menu-boton span::after { top: 7px; }
  .menu-boton[aria-expanded="true"] span { background: transparent; }
  .menu-boton[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-boton[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .con-js .barra nav { position: fixed; inset: 68px 0 auto 0; }
  .con-js .menu {
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: rgba(10, 10, 15, 0.98); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; padding-block: 0;
    transition: max-height 0.4s var(--ease), opacity 0.25s, visibility 0s 0.4s, padding 0.4s var(--ease);
  }
  .con-js .menu.abierto { max-height: 80svh; visibility: visible; opacity: 1; padding-block: 8px 24px; transition-delay: 0s; }
  .con-js .menu li.opcional { display: list-item; }
  .con-js .menu a { display: block; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); text-shadow: none; }
  .con-js .barra:has(.menu.abierto) { background: rgba(10, 10, 15, 0.98); }
}

/* ---------- Móvil: carrusel de 2,5 tarjetas verticales, más aire y títulos mayores ---------- */
@media (max-width: 760px) {
  :root { --gap-carril: 12px; --gutter: 20px; }
  .carril:not(.carril-prensa) {
    grid-auto-columns: calc((100vw - var(--gutter) - 2 * var(--gap-carril)) / 2.5);
    -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
    padding-bottom: 28px; scroll-padding-inline: var(--gutter);
  }
  .carril-prensa { grid-auto-columns: 78vw; -webkit-overflow-scrolling: touch; }
  .carril .obra { aspect-ratio: 2 / 3; border-radius: 12px; }
  .carril .obra h3 { font-size: 0.98rem; }
  .carril .obra-meta { font-size: 0.76rem; }
  .carril .obra-texto { padding: 12px; }
  .carril .obra.tipografica .rotulo { font-size: 1.25rem; }
  .carril .obra:hover, .carril .obra:focus-visible { transform: none; }
  .fila { padding-top: 44px; }
  .fila-cabeza { margin-bottom: 20px; }
  .fila-cabeza h2 { font-size: 1.75rem; line-height: 1.12; }
  .fila-cabeza p { font-size: 1rem; margin-top: 8px; }
  .bloque { padding-top: 80px; }
  .bloque h2, .contacto h2, .disciplina-titulo h2 { font-size: 2.1rem; }
  .sobre .texto p { font-size: 1.05rem; line-height: 1.7; }
  .contacto { margin-top: 80px; padding: 32px 24px; }
  .pie { margin-top: 80px; }
  .destacado h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .destacado .botones { flex-direction: column; align-items: stretch; }
  .destacado .boton, .ficha .boton { justify-content: center; }
  .ficha h1 { font-size: 1.5rem; }
  .ficha-cuerpo, .bio-grid { padding-top: 72px; }
}

/* Los reproductores de Vimeo y YouTube se pintaban con fondo blanco por el esquema oscuro de la página. */
iframe { color-scheme: normal; background: #000; }

/* Párrafos de bloques de texto fuera de la sección Quién es */
.bloque-angosto .texto p { color: #d6d6e0; max-width: 68ch; }
.bloque-angosto .texto p + p { margin-top: 1.1em; }

/* Migas de pan con aire antes del título en cabeceras de página */
.pagina-cabeza .migas { margin-bottom: clamp(18px, 3vw, 28px); }
.pagina-cabeza .migas ol { row-gap: 4px; line-height: 1.5; }


/* Tarjetas de Playboy: el rostro queda centrado cuando la tarjeta es vertical en móvil */
.obra img[src*="playboy"] { object-position: 55% center; }

/* Cabeceras de página con imagen a la derecha, como el destacado de la Home */
.pagina-cabeza.con-imagen { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(400px, 48vh, 500px); padding-bottom: clamp(36px, 5vw, 64px); }
.pagina-cabeza.con-imagen h1 { max-width: 56%; font-size: clamp(1.45rem, 2.9vw, 2.4rem); }
.pagina-cabeza.con-imagen > p { max-width: min(56%, 62ch); }
.cabeza-foto {
  position: absolute; z-index: -1; top: 76px; right: 0; height: min(calc(100% - 76px), 400px); width: min(48vw, 760px);
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 100%), linear-gradient(to top, transparent 0, #000 38%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 40%, transparent 100%), linear-gradient(to top, transparent 0, #000 38%);
  mask-composite: intersect;
}
.cabeza-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 25%; }
.cabeza-nota { font-size: 0.86rem !important; color: var(--faint) !important; }
@media (max-width: 760px) {
  .pagina-cabeza.con-imagen { display: flex; flex-direction: column; min-height: 0; }
  .pagina-cabeza.con-imagen h1, .pagina-cabeza.con-imagen > p { max-width: 100%; }
  .cabeza-foto { position: relative; order: -1; z-index: 0; width: calc(100% + 2 * var(--gutter)); height: 280px; margin: -120px calc(-1 * var(--gutter)) 18px; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
}

/* ============ Sistema único de tarjetas ============
   Todas las tarjetas (carriles, cuadrículas, "Más trabajos", Shorts) comparten ancho y proporción.
   Escritorio y tablet: 16:9 de ancho --tw. Móvil: 2 columnas verticales 2:3. */
:root { --tw: clamp(270px, 27vw, 440px); --tr: 16 / 9; }
@media (max-width: 760px) { :root { --tw: calc((100vw - 2 * var(--gutter) - var(--gap-carril)) / 2); --tr: 2 / 3; } }
.carril:not(.carril-prensa) { grid-auto-columns: var(--tw); }
.galeria, .lista-trabajos { grid-template-columns: repeat(auto-fill, var(--tw)); gap: var(--gap-carril, 14px); justify-content: start; }
@media (max-width: 760px) { .galeria, .lista-trabajos { grid-template-columns: repeat(2, var(--tw)); } }
.obra, .credito, .corto { aspect-ratio: var(--tr); height: auto; min-height: 0; border-radius: var(--radius); }
.carril .obra, .galeria .obra, .carril-cortos .corto { width: 100%; }
.credito { padding: 14px 16px; }
.credito::after { top: 14px; left: 16px; }
.obra h3, .corto h3, .credito-nombre { font-size: clamp(0.98rem, 1.2vw, 1.2rem); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.credito-nombre { font-weight: 600; }
.obra-meta, .credito-detalle { font-size: 0.78rem; }
.obra-texto { padding: 12px 14px; }
.obra-extra > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.8rem; }
.obra.sin-foto img { object-position: 50% 20%; filter: brightness(0.7) saturate(0.9); }
.obra.sin-foto .obra-texto { background: none; }
@media (hover: none), (max-width: 760px) {
  .obra:hover, .obra:focus-visible, .corto:hover, .corto:focus-visible { transform: none; }
  .obra-extra { display: none; }
}
@media (max-width: 760px) {
  .carril-cortos { grid-auto-columns: var(--tw); }
  .corto { border-radius: 12px; }
}
/* Los Shorts son verticales: en escritorio y tablet conservan 9:16; en móvil usan el mismo tamaño que todas */
@media (min-width: 761px) { .corto { aspect-ratio: 9 / 16; } .carril-cortos { grid-auto-columns: clamp(150px, 14vw, 210px); } }

/* ============ Imagen arriba, texto debajo ============
   Tarjetas: la foto va sola arriba y el texto en un bloque de alto fijo debajo, así todas miden igual.
   Móvil: Home, fichas y cabeceras también separan la foto del texto. */
:root { --ti: 16 / 9; --ti-h: 0.5625; --tt: 88px; }
@media (max-width: 760px) { :root { --ti: 1 / 1; --ti-h: 1; --tt: 92px; } }
.obra, .credito, .corto { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.obra::after, .corto::after, .credito::before, .credito::after { display: none; }
.obra img, .credito img, .corto img { position: static; z-index: auto; flex: none; width: 100%; height: auto; aspect-ratio: var(--ti); object-fit: cover; filter: none; }
.corto img { aspect-ratio: var(--ti); }
@media (min-width: 761px) { .corto { aspect-ratio: auto; } .corto img { aspect-ratio: 9 / 16; } .carril-cortos { grid-auto-columns: clamp(150px, 14vw, 210px); } .corto-texto { height: auto; min-height: 84px; } }
.obra-texto, .corto-texto, .credito-texto { position: static; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 4px; height: var(--tt); padding: 10px 14px; overflow: hidden; }
.corto-texto { height: auto; }
.credito { padding: 0; }
.credito-texto { background: none; }
.obra h3, .credito-nombre, .corto h3 { -webkit-line-clamp: 2; margin: 0; }
.obra-extra, .corto-sello { display: none; }
.obra.sin-foto img { filter: none; object-position: 50% 20%; }
.clip .obra-texto { padding-top: 10px; }
.obra .reproducir.mini, .clip .reproducir.mini { top: calc(var(--tw) * var(--ti-h) / 2); }
.obra:hover, .obra:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.obra:hover img { transform: none; }
.obra img, .credito img { border-radius: var(--radius) var(--radius) 0 0; }

@media (max-width: 760px) {
  /* Cabecera de ficha: imagen completa arriba, texto debajo */
  .ficha-cabeza { padding-top: 76px; }
  .ficha-fondo { position: static; height: auto; margin: 0 calc(-1 * var(--gutter)) 18px; aspect-ratio: 16 / 9; z-index: auto; }
  .ficha-fondo img { filter: none; object-position: 50% 30%; }
  .ficha-fondo::after { background: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 15, 0) 22%); }
  /* Home: foto arriba, texto debajo */
  .destacado { display: block; min-height: 0; padding: 76px var(--gutter) 40px; }
  .destacado-foto { position: relative; z-index: 0; width: calc(100% + 2 * var(--gutter)); height: auto; aspect-ratio: 1 / 1; margin: 0 calc(-1 * var(--gutter)) 24px; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .destacado::after { display: none; }
  .destacado h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
}
.obra-meta, .credito-detalle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obra, .credito { box-sizing: border-box; height: calc((var(--tw) - 2px) * var(--ti-h) + var(--tt) + 2px); }
.galeria, .lista-trabajos { align-items: start; }

/* Tablet (hasta 1024 px): misma regla que móvil, la imagen va sola arriba y el texto debajo */
@media (max-width: 1024px) {
  .ficha-cabeza { padding-top: 76px; }
  .ficha-fondo { position: static; height: auto; margin: 0 calc(-1 * var(--gutter)) 22px; aspect-ratio: 16 / 9; max-height: 460px; z-index: auto; }
  .ficha-fondo img { filter: none; object-position: 50% 30%; }
  .ficha-fondo::after { background: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 15, 0) 22%); }
  .destacado { display: block; min-height: 0; padding: 76px var(--gutter) 48px; }
  .destacado-foto { position: relative; z-index: 0; width: calc(100% + 2 * var(--gutter)); height: auto; aspect-ratio: 4 / 3; max-height: 560px; margin: 0 calc(-1 * var(--gutter)) 28px; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .destacado-foto img { object-position: 50% 25%; }
  .destacado::after { display: none; }
  .pagina-cabeza.con-imagen { display: flex; flex-direction: column; min-height: 0; padding-top: 76px; }
  .pagina-cabeza.con-imagen h1, .pagina-cabeza.con-imagen > p { max-width: 100%; }
  .cabeza-foto { position: relative; order: -1; z-index: 0; top: auto; right: auto; width: calc(100% + 2 * var(--gutter)); height: auto; aspect-ratio: 16 / 9; max-height: 420px; margin: 0 calc(-1 * var(--gutter)) 22px; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
}

/* Aire entre tarjetas: más separación entre columnas y entre filas, en todas las pantallas */
:root { --gap-carril: 22px; }
@media (max-width: 760px) { :root { --gap-carril: 16px; } }
.galeria, .lista-trabajos { column-gap: var(--gap-carril); row-gap: clamp(32px, 5vw, 44px); }
.carril { gap: var(--gap-carril); }
.galeria .clip-desc { margin-top: 12px; }
.creditos .seccion-cabeza, .seccion-cabeza { margin-bottom: clamp(24px, 4vw, 36px); }
@media (min-width: 761px) and (max-width: 1024px) { :root { --tw: calc((100vw - 2 * var(--gutter) - 2 * var(--gap-carril)) / 3); } }
@media (max-width: 760px) { :root { --tt: 104px; } }
.obra-meta, .credito-detalle { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- Página de contacto ---------- */
.canales, .redes, .vias { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 24px); }
.canales { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.redes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.vias { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.canal, .red { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.25s, transform 0.35s var(--ease); }
.canal:hover, .red:hover { border-color: rgba(41, 121, 255, 0.55); transform: translateY(-3px); }
.canal-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(41, 121, 255, 0.14); color: var(--accent); }
.canal-ico svg { width: 26px; height: 26px; }
.canal-txt, .red-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.canal-tipo { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.canal-valor { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.canal-nota { font-size: 0.88rem; color: var(--muted); }
.red { padding: 16px 18px; gap: 14px; }
.red-inicial { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; }
.red-nombre { font-weight: 600; }
.red-manejo { font-size: 0.86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.red-flecha { margin-left: auto; color: var(--faint); }
.red-flecha svg { width: 16px; height: 16px; }
.via { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.via h3 { font-size: 1.3rem; }
.via > p { margin-top: 10px; color: var(--muted); }
.via .via-etiqueta { margin-top: 22px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.via ul { list-style: none; margin: 12px 0 0; padding: 0; }
.via li { padding: 10px 0; border-top: 1px solid var(--line); }
/* Tarjetas "Elige el tipo de propuesta": título destacado, número y franja de color */
.vias { counter-reset: via; }
.via { position: relative; counter-increment: via; overflow: hidden; background: linear-gradient(160deg, #16203a 0%, var(--surface) 55%); border-color: rgba(41, 121, 255, 0.28); }
.via::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), #6aa3ff); }
.via h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.15; color: #fff; }
.via h3::before { content: counter(via); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 1.1rem; font-weight: 700; }
.via > p:not(.via-etiqueta) { color: #c9c9d6; }

/* ============ Carriles: se nota que hay más tarjetas a un lado ============
   Móvil: 2 tarjetas y media. Tablet: 3 y media. Más una pista "Desliza" junto al título. */
@media (max-width: 760px) {
  .carril:not(.carril-prensa) { --tw: calc((100vw - var(--gutter) - 2 * var(--gap-carril)) / 2.5); }
  .carril-cortos { --tw: calc((100vw - var(--gutter) - 2 * var(--gap-carril)) / 2.5); }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .carril:not(.carril-prensa) { --tw: calc((100vw - var(--gutter) - 3 * var(--gap-carril)) / 3.5); }
}
@media (max-width: 1024px) {
  .flechas { display: block; align-self: end; }
  .flechas .flecha { display: none; }
  .flechas::after { content: "Desliza \2192"; color: #6aa8ff; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
}

/* ============ Enlaces siempre reconocibles ============
   Todo enlace de texto va en azul y subrayado. Botones, tarjetas y menú conservan su estilo propio. */
:root { --enlace: #6aa8ff; }
:is(main p, main dd, main li, main .faq-item, .ficha-texto, .legal, .pie p, .pie-nav li, .pie-redes li, .migas li, .seccion-cabeza p, .fila-cabeza p) a:not(.boton):not(.obra):not(.nota):not(.corto):not(.credito):not(.canal):not(.red):not(.flecha):not(.hito-enlace):not(.tray-indice a) {
  color: var(--enlace); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
:is(main p, main dd, main li, main .faq-item, .ficha-texto, .legal, .pie p, .pie-nav li, .pie-redes li, .migas li, .seccion-cabeza p, .fila-cabeza p) a:not(.boton):not(.obra):not(.nota):not(.corto):not(.credito):not(.canal):not(.red):hover { color: #fff; text-decoration-color: #fff; }
.fila-cabeza h2 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pie-nav a, .pie-redes a { color: var(--enlace); }
.migas a { color: var(--enlace); }
.migas [aria-current="page"] { color: var(--muted); }

/* ============ Shorts: formato vertical propio, no son tarjetas de programas ============ */
.carril.carril-cortos { grid-auto-columns: clamp(150px, 14vw, 210px); }
@media (max-width: 760px) { .carril.carril-cortos { grid-auto-columns: calc((100vw - var(--gutter) - 2 * var(--gap-carril)) / 2.5); } }
.corto { display: block; position: relative; aspect-ratio: 9 / 16; height: auto; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.corto img { position: static; display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.corto::after { display: block; }
.corto-texto { position: absolute; z-index: 1; inset: auto 0 0 0; display: block; height: auto; min-height: 0; padding: 12px 14px 14px; background: none; overflow: visible; }
.corto-sello { display: inline-flex; }
.corto h3 { display: -webkit-box; margin-top: 8px; font-size: 0.98rem; line-height: 1.22; -webkit-line-clamp: 3; }
@media (hover: hover) and (min-width: 761px) { .corto:hover, .corto:focus-visible { transform: scale(1.05); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); } }

/* Títulos de sección: los carriles (En los medios, Playboy, Telenovelas...) llevan el mismo tamaño que los demás bloques */
.fila-cabeza h2, .bloque h2, .contacto h2 { font-size: clamp(2.1rem, 3.4vw, 2.75rem); line-height: 1.08; }
.fila-cabeza p { font-size: 1.02rem; }

/* Escritorio: el carril de tarjetas vive dentro del cajón de la página y se recorta en sus orillas, no en el borde de la pantalla */
@media (min-width: 1025px) {
  .carril { margin-inline: var(--gutter); padding-inline: 0; scroll-padding-inline: 0; }
}

/* ---------- Redes sociales en el destacado de la home ---------- */
.redes-hero { display: inline-flex; align-items: center; gap: 6px; margin-top: 34px; padding: 7px; border-radius: 999px; background: rgba(17, 17, 24, 0.55); border: 1px solid rgba(240, 240, 245, 0.14); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.red-social { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #e9e9f1; text-decoration: none; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s; }
.red-social svg { width: 23px; height: 23px; }
.red-social:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(41, 121, 255, 0.45); }
.red-social:active { transform: translateY(-1px); }
@media (max-width: 1024px) {
  .destacado-texto { display: flex; flex-direction: column; }
  .redes-hero { order: -1; align-self: flex-start; margin: 0 0 28px; gap: 8px; }
}
@media (max-width: 760px) {
  .redes-hero { align-self: stretch; justify-content: space-between; margin-bottom: 26px; padding: 6px 8px; gap: 0; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
  .red-social { width: 46px; height: 46px; }
  .red-social svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .red-social { transition: background 0.2s, color 0.2s; } .red-social:hover { transform: none; } }
