/* Perseide Audiovisual — estilos */
:root {
  --bg: #0B0B0C;
  --bg-2: #0F0F11;
  --surface: #151517;
  --line: #222225;
  --line-2: #2A2A2D;
  --line-3: #3A3A3E;
  --text: #F2F1EE;
  --text-2: #D8D6D1;
  --text-3: #B5B3B3;
  --muted: #9A9893;
  --gold: #C9A15A;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --body: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --max: 1360px;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--bg); padding: 10px 16px; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 16px; color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.section__inner { padding-top: 88px; padding-bottom: 88px; }
.h-section { font-size: 56px; line-height: 1; margin-bottom: 40px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: #D9B575; color: var(--bg); }
.btn--line { border-color: var(--text); color: var(--text); background: transparent; }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline-gold { border-color: var(--gold); color: var(--text); background: transparent; min-height: 48px; padding: 0 22px; font-size: 13px; letter-spacing: 0.16em; }
.btn--outline-gold:hover { background: var(--gold); color: var(--bg); }
.btn svg { flex: none; }

/* Cabecera */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.header__logo { display: block; line-height: 0; }
.header__logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold); }
.menu-btn { display: none; width: 48px; height: 48px; background: transparent; border: 0; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }

.mobile-menu { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: none; flex-direction: column; padding: 16px 20px 32px; }
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top img { height: 40px; width: auto; }
.mobile-menu nav { margin-top: 48px; display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 14px 0; border-bottom: 1px solid #1E1E21; text-decoration: none; font-family: var(--display); font-size: 44px; line-height: 1; }
.mobile-menu__mail { margin-top: auto; color: var(--text-3); }

/* Portada home */
.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; background: #111113; }
.hero__video, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.1) 80%),
  linear-gradient(180deg, rgba(11,11,12,.6) 0%, rgba(11,11,12,0) 25%, rgba(11,11,12,0) 75%, rgba(11,11,12,.9) 100%); }
.hero__star { position: absolute; right: 6%; top: 140px; height: 520px; width: auto; opacity: .15; pointer-events: none; }
.hero__content { position: relative; width: 100%; padding-top: 140px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(60px, 8vw, 120px); line-height: .92; max-width: 640px; }
.hero__lead { margin-top: 28px; max-width: 460px; font-size: 20px; line-height: 1.55; color: var(--text-2); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.reel-btn { margin-top: 56px; display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 0; background: transparent; border: 0; color: var(--text); font-family: var(--body); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.reel-btn:hover { color: var(--gold); }
.reel-btn__line { width: 56px; height: 1px; background: #8A8883; }

/* Proyectos */
.projects__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.projects__head .h-section { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 44px; padding: 0 14px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--text); font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.filter:hover { color: var(--gold); }
.filter.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.grid-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 32px 20px; }
.card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.card[hidden] { display: none; }
.card__img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 1px #26262A; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover .card__img { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--gold), 0 18px 40px rgba(0,0,0,.5); }
.card__title { font-family: var(--display); font-size: 26px; line-height: 1; }
.card__meta { margin-top: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* José Antonio Valera */
.valera__inner { display: flex; flex-wrap: wrap; align-items: stretch; gap: 56px; }
.valera__photo { flex: 1 1 340px; min-width: 0; min-height: 460px; object-fit: cover; object-position: 48% 30%; background: #18181B; }
.valera__body { flex: 999 1 460px; min-width: 0; padding: 72px 0; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.valera__text { flex: 999 1 380px; min-width: 0; }
.valera h2 { font-size: 64px; line-height: .95; }
.valera__role { margin-top: 10px; font-size: 15px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.valera__bio { margin-top: 28px; max-width: 560px; font-size: 18px; line-height: 1.65; color: #C9C7C2; }
.awards { flex: 1 1 220px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.awards li { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; font-family: var(--display); font-size: 19px; line-height: 1.1; letter-spacing: .04em; }
.awards svg { flex: none; }

/* Qué hacemos */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service { padding: 8px 32px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 16px; }
.service:first-child { padding-left: 0; border-left: 0; }
.service:last-child { padding-right: 0; }
.service h3 { font-size: 34px; line-height: 1; }
.service p { color: var(--text-3); }

/* Contacto */
.contact__inner { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__intro { flex: 1 1 280px; }
.contact__intro h2 { font-size: 64px; line-height: .95; }
.contact__intro p { margin-top: 20px; max-width: 340px; font-size: 18px; color: #C9C7C2; }
.form { flex: 999 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  background: transparent; border: 1px solid var(--line-3); color: var(--text); border-radius: 0;
  font-family: var(--body); font-size: 17px; font-weight: 300; letter-spacing: 0; text-transform: none;
  padding: 0 14px; min-height: 48px; width: 100%;
}
.field select { background: var(--bg-2); padding: 0 10px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-3); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.form__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.form__error { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid #B4553F; color: #F0C9BF; font-size: 15px; }
.form__error[hidden] { display: none; }
.form button[disabled] { opacity: .6; cursor: wait; }
.honeypot { display: none; }
.contact__aside { flex: 1 1 240px; display: flex; flex-direction: column; gap: 18px; padding-left: 40px; border-left: 1px solid var(--line-2); }
.contact__aside img { height: 72px; width: auto; align-self: flex-start; }
.contact__aside a { font-size: 16px; text-underline-offset: 5px; }

/* Pie */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer nav { display: flex; gap: 28px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* Modal reel */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(5,5,6,.96); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 72px 40px 40px; }
.modal.is-open { display: flex; }
.modal__close { position: absolute; top: 20px; right: 24px; width: 52px; height: 52px; background: transparent; border: 1px solid #45454A; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal__close:hover { border-color: var(--gold); color: var(--gold); }
.modal video { width: 100%; max-width: 1200px; max-height: 80vh; aspect-ratio: 16 / 9; background: #000; }
.modal__caption { margin-top: 20px; font-family: var(--display); font-size: 24px; letter-spacing: .06em; color: var(--text-3); }

/* Barra fija móvil */
.sticky-cta { display: none; }

/* Ficha de proyecto */
.p-hero { position: relative; overflow: hidden; background: #111113; }
.p-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.p-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.65) 0%, rgba(11,11,12,0) 22%, rgba(11,11,12,0) 45%, rgba(11,11,12,.85) 78%, rgba(11,11,12,1) 100%); }
.p-hero__inner { position: relative; padding-top: 380px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; }
.p-hero__poster { flex: 0 0 220px; width: 220px; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); }
.p-hero__info { flex: 999 1 480px; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #C9C7C2; }
.crumbs a { color: #C9C7C2; text-decoration: none; }
.p-hero h1 { margin-top: 18px; font-size: clamp(56px, 8vw, 128px); line-height: .88; text-wrap: balance; }
.p-hero__meta { margin-top: 20px; font-size: 15px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.p-hero__synopsis { margin-top: 28px; max-width: 640px; font-size: 20px; line-height: 1.65; color: #E4E2DD; text-wrap: pretty; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.p-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--line); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.credits { display: flex; flex-wrap: wrap; gap: 64px; }
.credits__cast { flex: 1 1 300px; }
.credits__crew { flex: 999 1 520px; min-width: 0; }
.cast { list-style: none; margin: 0; padding: 0; }
.cast li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 28px; line-height: 1.05; letter-spacing: .02em; }
.crew { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 40px; }
.crew div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.crew dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crew dd { margin: 6px 0 0; font-size: 17px; line-height: 1.45; }

.fests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.fests li { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line-2); }
.fests li.is-award { border-color: var(--gold); }
.fests svg { flex: none; }
.fests__what { font-family: var(--display); font-size: 24px; line-height: 1.05; }
.fests__where { margin-top: 4px; font-size: 15px; color: var(--text-3); }

.watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.watch a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; padding: 24px 28px; border: 1px solid var(--gold); text-decoration: none; color: var(--text); transition: background .2s; }
.watch a:hover { background: rgba(201,161,90,.08); color: var(--text); }
.watch__name { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.watch__note { display: block; margin-top: 6px; font-size: 14px; color: var(--text-3); }

.pager { border-top: 1px solid var(--line); }
.pager__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pager a { padding: 48px 24px 48px 0; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 24px; }
.pager a + a { padding: 48px 0 48px 24px; border-left: 1px solid var(--line); justify-content: flex-end; text-align: right; }
.pager img { flex: none; width: 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.pager__label { display: block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pager__title { display: block; margin-top: 8px; font-family: var(--display); font-size: 40px; line-height: 1; }
.pager a:hover .pager__title { color: var(--gold); }

.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { font-size: 64px; line-height: .95; }

/* Páginas de texto */
.page { padding-top: 168px; padding-bottom: 96px; }
.page h1 { font-size: clamp(52px, 7vw, 96px); line-height: .92; }
.page__lead { margin-top: 24px; max-width: 640px; font-size: 20px; color: var(--text-2); }
.prose { margin-top: 48px; max-width: 760px; color: #C9C7C2; }
.prose h2 { margin: 40px 0 12px; font-size: 32px; color: var(--text); }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 20px; }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card__img { transition: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(2) { padding-right: 0; }
}

/* Móvil */
@media (max-width: 860px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .header { position: sticky; top: 0; background: rgba(11,11,12,.92); border-bottom: 1px solid #1E1E21; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .header--overlay { position: fixed; }
  .header__inner { padding-top: 10px; padding-bottom: 10px; padding-right: 12px; }
  .header__logo img { height: 38px; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .section__inner { padding-top: 56px; padding-bottom: 56px; }
  .h-section { font-size: 44px; margin-bottom: 24px; }

  .hero { min-height: 0; height: 88svh; max-height: 720px; align-items: flex-end; }
  .hero__shade { background: linear-gradient(180deg, rgba(11,11,12,.25) 0%, rgba(11,11,12,0) 30%, rgba(11,11,12,.95) 85%); }
  .hero__star { display: none; }
  .hero__content { padding-top: 0; padding-bottom: 28px; }
  .hero__lead { margin-top: 12px; font-size: 16px; }
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn { flex: 1 1 140px; padding: 0 12px; font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
  .reel-btn { margin-top: 18px; }

  .projects__head { gap: 12px; margin-bottom: 20px; }
  .projects__all { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px; width: calc(100% + 40px); }
  .filter { flex: none; border: 1px solid var(--line-3); border-radius: 22px; padding: 0 16px; font-size: 13px; letter-spacing: .1em; }
  .filter.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
  .grid-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card__title { font-size: 22px; }
  .card__meta { font-size: 11px; }

  .valera__inner { gap: 0; }
  .valera__photo { flex-basis: 100%; min-height: 0; aspect-ratio: 4 / 3; margin: 0 -20px; max-width: none; width: calc(100% + 40px); }
  .valera__body { padding: 36px 0 48px; gap: 32px; }
  .valera h2 { font-size: 48px; }
  .valera__bio { font-size: 16px; }
  .awards { flex-direction: row; overflow-x: auto; gap: 10px; margin: 0 -20px; padding: 0 20px; }
  .awards li { flex: none; width: 170px; justify-content: flex-start; text-align: left; padding: 14px 12px; border: 1px solid #3A3226; font-size: 16px; }
  .awards li svg:last-child { display: none; }
  .awards li svg { width: 16px; height: 34px; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .service, .service:first-child, .service:last-child, .service:nth-child(2), .service:nth-child(3) { padding: 18px 14px; border: 1px solid var(--line); background: #131315; gap: 10px; }
  .service svg { width: 30px; height: 30px; }
  .service h3 { font-size: 24px; }
  .service p { font-size: 14px; line-height: 1.45; }

  .contact__intro h2 { font-size: 52px; }
  .form { grid-template-columns: 1fr; gap: 18px; }
  .form__actions .btn { width: 100%; }
  .contact__aside { padding-left: 0; border-left: 0; }
  .contact__aside img { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; font-size: 11px; padding-bottom: 96px; }

  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,.95) 35%); transition: opacity .25s, transform .25s; }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta.is-hidden { opacity: 0; transform: translateY(100%); pointer-events: none; }

  .modal { padding: 64px 0 24px; }
  .modal__close { top: 12px; right: 12px; border: 0; }
  .modal__caption { font-size: 18px; padding: 0 20px; }

  .p-hero__inner { padding-top: 260px; padding-bottom: 40px; gap: 20px; align-items: flex-start; flex-direction: column; }
  .p-hero__poster { flex: none; width: 120px; }
  .p-hero h1 { font-size: 56px; margin-top: 12px; }
  .p-hero__meta { font-size: 12px; letter-spacing: .14em; }
  .p-hero__synopsis { font-size: 17px; margin-top: 18px; }
  .p-hero__actions .btn { flex: 1 1 140px; }
  .credits { gap: 40px; }
  .cast li { font-size: 24px; }
  .watch__name { font-size: 28px; }
  .pager a, .pager a + a { padding: 28px 12px; gap: 12px; }
  .pager img { width: 48px; }
  .pager__title { font-size: 24px; }
  .pager__label { font-size: 11px; }
  .cta-band h2 { font-size: 48px; }
  .cta-band .btn { width: 100%; }
  .page { padding-top: 120px; }
}
