/* javiguerreroactor.com — "hoja de casting"
   hueso + tinta + un marcador. Bricolage Grotesque (titulares) · Courier Prime (datos) · Inter (texto)
   Fuentes autoalojadas en /fonts (sin Google Fonts). */

@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-latin.woff2") format("woff2-variations"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --bone: #efeae0;
  --bone-2: #e6dfd2;
  --ink: #141414;
  --ink-2: #3d3a35;
  --mute: #7a756c;
  --rule: #c9c1b2;
  --mark: #e4572e;
  --white: #faf7f1;
  --display: "Bricolage", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2 { font-family: var(--display); font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: -0.015em; line-height: .9; margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.todo { color: var(--mark); }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bone) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; font-stretch: 80%; }
.brand span { color: var(--mute); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--mark); }
.lang { font-family: var(--mono); font-size: 12px; text-decoration: none; padding: 5px 9px; border: 1px solid var(--ink); color: var(--ink); }
.lang:hover { background: var(--ink); color: var(--bone); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); width: 40px; height: 34px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 58px; flex-direction: column; gap: 0; background: var(--bone); border-bottom: 1px solid var(--ink); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px var(--gut); border-top: 1px solid var(--rule); }
}

/* ---- hero ---- */
.hero { overflow: hidden; border-bottom: 1px solid var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 60px); align-items: end; min-height: min(88vh, 900px); }
.hero-text { padding: clamp(32px, 6vw, 80px) 0; min-width: 0; }
.kicker { color: var(--mark); margin-bottom: 18px; }
.hero h1 { font-size: clamp(60px, 9.5vw, 136px); }
.hero .sub { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; max-width: 30ch; margin: 24px 0 22px; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.facts li { border: 1px solid var(--ink); padding: 6px 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.btn { display: inline-flex; align-items: center; padding: 13px 20px; border: 1px solid var(--ink); text-decoration: none; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--mark); border-color: var(--mark); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--bone); }
.now { display: flex; align-items: center; gap: 10px; color: var(--ink-2); margin: 0; }
.now .tag { background: var(--mark); color: var(--white); padding: 3px 8px; }
.hero-photo { margin: 0 calc(-1 * var(--gut)) 0 0; align-self: stretch; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: contrast(1.04) saturate(.92); }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; opacity: .35; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; margin: 0 calc(-1 * var(--gut)); max-height: 78vh; }
  .hero-text { padding-top: 24px; }
}

/* ---- ticker ---- */
.ticker { border-bottom: 1px solid var(--ink); overflow: hidden; white-space: nowrap; padding: 9px 0; background: var(--ink); color: var(--bone); }
.ticker .track { display: inline-flex; gap: 40px; animation: tick 40s linear infinite; }
.ticker span::after { content: "—"; margin-left: 40px; color: var(--mark); }
@keyframes tick { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ---- sections ---- */
.section { padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--ink); }
.sh { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; margin-bottom: clamp(26px, 4vw, 48px); }
.sh .num { color: var(--mark); }
.sh h2 { font-size: clamp(38px, 6vw, 84px); }
.sh .note { grid-column: 2; color: var(--mute); margin: 0; }

/* ---- videobook ---- */
.player-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0; border: 1px solid var(--ink); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.scenes { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ink); background: var(--white); display: flex; flex-direction: column; }
.scenes li + li { border-top: 1px solid var(--rule); }
.scenes button { width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; cursor: pointer; font-family: var(--mono); text-transform: uppercase; color: var(--ink); }
.scenes button:hover { background: var(--bone-2); }
.scenes button.active { background: var(--ink); color: var(--bone); }
.scenes .n { color: var(--mark); font-size: 12px; grid-row: span 2; padding-top: 3px; }
.scenes .t { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: none; letter-spacing: 0; font-stretch: 85%; }
.scenes .d { font-size: 11px; opacity: .7; }
@media (max-width: 860px) { .player-grid { grid-template-columns: 1fr; } .scenes { border-left: 0; border-top: 1px solid var(--ink); } }

/* ---- hoja de casting ---- */
.sheet-wrap { position: relative; }
.sheet { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--white); }
.sheet > div { padding: 18px 20px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sheet > div:nth-child(3n) { border-right: 0; }
.sheet > div.full { grid-column: 1 / -1; border-right: 0; }
.sheet dt { color: var(--mute); font-size: 11px; margin-bottom: 6px; }
.sheet dd { margin: 0; font-size: 15px; line-height: 1.5; text-transform: none; }
.stamp { position: absolute; right: 0; top: -46px; transform: rotate(-6deg); border: 2px solid var(--mark); color: var(--mark); padding: 8px 12px; font-weight: 700; background: color-mix(in srgb, var(--white) 70%, transparent); letter-spacing: .1em; }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.link { text-decoration: none; border-bottom: 1px solid var(--ink); text-transform: none; font-size: 14px; }
.link:hover { color: var(--mark); border-color: var(--mark); }
@media (max-width: 860px) { .sheet { grid-template-columns: 1fr 1fr; } .sheet > div:nth-child(3n) { border-right: 1px solid var(--rule); } .sheet > div:nth-child(2n) { border-right: 0; } .stamp { position: static; display: inline-block; margin-bottom: 14px; transform: rotate(-3deg); } }
@media (max-width: 520px) { .sheet { grid-template-columns: 1fr; } .sheet > div { border-right: 0 !important; } }

/* ---- fotos de casting (dentro de la hoja) ---- */
.casting { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--rule); padding-top: 28px; }
.casting-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.casting-head h3 { font-family: var(--display); font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: clamp(24px, 3vw, 34px); margin: 0; letter-spacing: -0.01em; }
.casting-head .note { color: var(--mute); margin: 0; }
.casting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 16px; }
.casting-grid figure { margin: 0; border: 1px solid var(--ink); background: var(--white); }
.casting-grid figure > a { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bone-2); }
.casting-grid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.casting-grid figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--ink); font-size: 11px; }
.casting-grid figcaption a { text-decoration: none; color: var(--mark); font-weight: 700; }
.casting-grid figcaption a:hover { text-decoration: underline; }
@media (max-width: 520px) { .casting-grid { grid-template-columns: 1fr 1fr; } }

/* ---- registros ---- */
.regs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.regs figure { margin: 0; background: var(--bone); }
.regs a { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bone-2); }
.regs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .5s ease; }
.regs a:hover img { transform: scale(1.03); }
.regs figcaption { padding: 8px 12px; font-size: 11px; border-top: 1px solid var(--ink); }
.regs figcaption .n { color: var(--mark); }
.archivo-label { color: var(--mute); margin: 28px 0 10px; }
.archivo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.archivo a { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-2); border: 1px solid var(--rule); }
.archivo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .3s; }
.archivo a:hover img { filter: none; }
@media (max-width: 860px) { .regs { grid-template-columns: repeat(2, 1fr); } .archivo { grid-template-columns: repeat(2, 1fr); } }

/* ---- trabajos ---- */
.works { border: 1px solid var(--ink); background: var(--white); }
.works .row { display: grid; grid-template-columns: 70px 1.5fr 1.7fr 1.5fr; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--rule); align-items: baseline; }
.works .row.head { border-top: 0; background: var(--ink); color: var(--bone); font-size: 11px; }
.works .y { color: var(--mark); }
.works .ti { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: none; letter-spacing: 0; font-stretch: 85%; }
.works .wh, .works .ro { text-transform: none; font-size: 13px; color: var(--ink-2); }
.works .ti a { text-decoration: none; border-bottom: 2px solid var(--mark); padding-bottom: 1px; }
.works .ti a:hover { color: var(--mark); }
@media (max-width: 860px) {
  .works .row.head { display: none; }
  .works .row { grid-template-columns: 60px 1fr; grid-template-areas: "y ti" "y wh" "y ro"; }
  .works .y { grid-area: y; } .works .ti { grid-area: ti; } .works .wh { grid-area: wh; } .works .ro { grid-area: ro; }
}

/* ---- fotogramas ---- */
.stills { margin-top: clamp(36px, 5vw, 56px); }
.stills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.stills-grid figure { margin: 0; background: #000; }
.stills-grid a { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.stills-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.stills-grid a:hover img { transform: scale(1.03); }
.stills-grid figcaption { padding: 8px 12px; font-size: 11px; background: var(--white); border-top: 1px solid var(--ink); }
@media (max-width: 860px) { .stills-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- quién ---- */
.bio { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.bio img { border: 1px solid var(--ink); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%; position: sticky; top: 80px; }
.prose { font-size: 18px; max-width: 62ch; }
.prose p:first-child { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; font-stretch: 90%; letter-spacing: -0.01em; }
.prose .aside { border-left: 3px solid var(--mark); padding-left: 16px; text-transform: none; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio img { position: static; max-width: 380px; } }

/* ---- enlace a la carta ---- */
.carta-link { margin: 22px 0 0; }
.carta-link a { text-decoration: none; border-bottom: 1px solid var(--mark); color: var(--mark); padding-bottom: 2px; }
.carta-link a:hover { background: var(--mark); color: var(--white); border-color: var(--mark); }

/* ---- página de la carta ---- */
.letter { padding: clamp(44px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.letter .wrap { max-width: 780px; }
.letter .kicker { color: var(--mark); margin-bottom: 18px; }
.letter h1 { font-family: var(--display); font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: -0.015em; line-height: .92; font-size: clamp(38px, 6.5vw, 76px); margin: 0 0 clamp(28px, 4vw, 44px); }
.letter-body { font-size: 18px; line-height: 1.68; color: var(--ink-2); }
.letter-body p { margin: 0 0 1.15em; max-width: 62ch; }
.letter-body p:first-child { font-family: var(--display); font-weight: 600; font-stretch: 90%; font-size: clamp(21px, 2.5vw, 27px); line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
.letter-body p:last-child { color: var(--ink); }
.sign { margin: clamp(30px, 4vw, 44px) 0 26px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--mute); }
.sign a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.sign a:hover { color: var(--mark); border-color: var(--mark); }

/* ---- contacto ---- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); }
.contact .sh { margin-bottom: 18px; }
.contact .lead { font-size: 19px; max-width: 38ch; color: var(--ink-2); }
.direct { margin-top: 22px; }
.direct a { text-decoration: none; border-bottom: 1px solid var(--ink); text-transform: none; font-size: 15px; }
.direct a:hover { color: var(--mark); border-color: var(--mark); }
.rep { font-size: 14px; color: var(--mute); margin-top: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.socials a { display: inline-block; border: 1px solid var(--ink); padding: 6px 11px; text-decoration: none; }
.socials a:hover { background: var(--ink); color: var(--bone); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--ink-2); }
input, textarea { font: 15px/1.5 var(--body); padding: 12px 14px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); border-radius: 0; }
input:focus, textarea:focus { outline: 2px solid var(--mark); outline-offset: 1px; }
textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--mute); margin: 0; text-transform: none; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---- footer ---- */
footer { padding: 22px 0; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--mark); }

/* ---- lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .95); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; font-family: var(--mono); }
.lightbox .prev, .lightbox .next { top: 50%; transform: translateY(-50%); font-size: 48px; padding: 20px; }
.lightbox .prev { left: 8px; right: auto; }
.lightbox .next { right: 8px; }
