/* FICY · Festival Internacional Cine de las Yungas — hoja única, sin frameworks. */
@font-face { font-family: "Bricolage"; src: url(/fuentes/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fuentes/literata.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fuentes/literata-italica.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --monte: #0c2219;        /* verde del monte de noche */
  --monte-2: #14352a;
  --monte-3: #1f4a3a;
  --papel: #f4f1e8;        /* niebla de las yungas */
  --papel-2: #e9e4d4;
  --tinta: #18201b;
  --tinta-2: #4a554e;
  --lima: #c9dc3c;         /* el limón taficeño */
  --lima-osc: #6d7a0e;
  --tierra: #c4693c;
  --borde: rgba(24, 32, 27, .14);
  --fondo: var(--papel);
  --texto: var(--tinta);
  --texto-2: var(--tinta-2);
  --sup: #fffdf7;
  --radio: 14px;
  --ancho: 1200px;
  --tit: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cuerpo: "Literata", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #101a15; --texto: #ece8dc; --texto-2: #a9b3ab; --sup: #17241d;
    --papel-2: #15211b; --borde: rgba(236, 232, 220, .14); --lima-osc: var(--lima);
  }
}
:root[data-theme="dark"] {
  --fondo: #101a15; --texto: #ece8dc; --texto-2: #a9b3ab; --sup: #17241d;
  --papel-2: #15211b; --borde: rgba(236, 232, 220, .14); --lima-osc: var(--lima);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 17px/1.6 var(--cuerpo); overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--tit); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--lima); color: var(--monte); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 6px; }

.ancho { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.ancho-texto { max-width: 68ch; }
.bloque { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.bloque-cab { margin-bottom: 28px; }
.bloque-cab.fila { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.volanta { font-family: var(--tit); font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--lima-osc); margin: 0 0 .7em; }
.bajada { font-size: 1.12rem; color: var(--texto-2); max-width: 60ch; }
.prosa p { font-size: 1.06rem; }
.prosa .destacado { font-family: var(--tit); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3; font-weight: 500; }
.enlace-flecha { font-family: var(--tit); font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--lima); padding-bottom: 2px; white-space: nowrap; }
.enlace-flecha::after { content: " →"; }
.enlace-flecha:hover { color: var(--lima-osc); }

/* ---------- cabecera */
.cabecera { background: var(--monte); color: var(--papel); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.cabecera-in { max-width: var(--ancho); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-marca { width: 42px; height: 42px; color: var(--papel); }
.marca b { font-family: var(--tit); font-size: 1.5rem; letter-spacing: .02em; display: block; line-height: 1; }
.marca small { font-family: var(--tit); font-size: .64rem; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; opacity: .75; display: block; margin-top: 3px; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; }
.menu a { font-family: var(--tit); font-weight: 550; font-size: .95rem; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.menu a:hover { background: rgba(255,255,255,.08); }
.menu a[aria-current] { background: var(--lima); color: var(--monte); }
.menu-boton { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-boton > span:first-child, .menu-boton > span:first-child::before, .menu-boton > span:first-child::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-boton > span:first-child { top: 21px; }
.menu-boton > span:first-child::before { top: -7px; left: 0; right: 0; }
.menu-boton > span:first-child::after { top: 7px; left: 0; right: 0; }
@media (max-width: 960px) {
  .menu-boton { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--monte); flex-direction: column; padding: 8px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu.abierto { display: flex; }
  .menu a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- portada */
.portada { position: relative; background: var(--monte); color: var(--papel); overflow: hidden; isolation: isolate; }
.portada::before { content: ""; position: absolute; inset: 0; background: var(--foto) center 40%/cover no-repeat; opacity: .7; z-index: -2; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,34,25,.2) 0%, rgba(12,34,25,.65) 55%, var(--monte) 100%); z-index: -1; }
.portada-in { max-width: var(--ancho); margin: 0 auto; padding: clamp(64px, 12vw, 150px) 24px clamp(48px, 8vw, 96px); }
.portada h1 { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); margin-bottom: 26px; }
.portada .num { font-size: clamp(6rem, 22vw, 15rem); line-height: .8; font-weight: 800; color: var(--lima); letter-spacing: -.06em; }
.portada .h1-txt { font-size: clamp(1.5rem, 4.4vw, 3.3rem); line-height: 1.02; }
.portada .lema { font-family: var(--tit); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(.8rem, 1.6vw, 1rem); }
.portada .lema span { color: var(--lima); margin: 0 .6em; }
.botones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.boton { font-family: var(--tit); font-weight: 650; text-decoration: none; padding: 14px 24px; border-radius: 999px; display: inline-block; }
.boton-lima { background: var(--lima); color: var(--monte); }
.boton-lima:hover { background: #dbeb5c; }
.boton-linea { border: 2px solid rgba(244,241,232,.5); }
.boton-linea:hover { border-color: var(--papel); }

/* ---------- franjas */
.franja-monte { background: var(--monte); color: var(--papel); --texto-2: #b9c4bc; --borde: rgba(255,255,255,.14); --sup: var(--monte-2); }
.franja-monte .volanta { color: var(--lima); }
.franja-papel2 { background: var(--papel-2); }
.franja-cifras { background: var(--monte-2); color: var(--papel); }
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.cifras b { font-family: var(--tit); font-size: clamp(2rem, 4vw, 3rem); color: var(--lima); display: block; line-height: 1; }
.cifras span { font-family: var(--tit); font-size: .92rem; opacity: .85; }
@media (max-width: 760px) { .cifras { grid-template-columns: repeat(2, 1fr); } }

/* ---------- grillas y tarjetas */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.grilla-2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grilla-afiches { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tarjeta { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.tarjeta-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; background: var(--monte-3); display: block; }
.tarjeta.peli .tarjeta-img { aspect-ratio: 2 / 3; }
.tarjeta-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tarjeta:hover .tarjeta-img img { transform: scale(1.04); }
.sin-poster { position: absolute; inset: 0; background: linear-gradient(135deg, var(--monte-2), var(--monte-3)); }
.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(12,34,25,.72); backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 17px solid var(--papel); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.tarjeta:hover .play { background: var(--lima); transform: scale(1.08); }
.tarjeta:hover .play::after { border-left-color: var(--monte); }
.duracion { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font: 600 .78rem/1 var(--tit); padding: 5px 7px; border-radius: 6px; }
.sello { position: absolute; left: 8px; top: 8px; background: var(--papel); color: var(--monte); font: 700 .7rem/1 var(--tit); letter-spacing: .06em; padding: 5px 8px; border-radius: 6px; text-transform: uppercase; }
.sello-premio { background: var(--lima); position: static; display: inline-block; vertical-align: middle; }
.tarjeta-img .sello-premio { position: absolute; }
.tarjeta-txt b { font-family: var(--tit); font-size: 1.08rem; font-weight: 650; line-height: 1.2; display: block; }
.tarjeta-txt small { font-family: var(--tit); color: var(--texto-2); font-size: .88rem; display: block; margin-top: 3px; line-height: 1.3; }
.tarjeta-ed { font: 650 .72rem/1 var(--tit); letter-spacing: .1em; text-transform: uppercase; color: var(--lima-osc); display: block; margin-bottom: 6px; }
.franja-monte .tarjeta-ed { color: var(--lima); }

/* ---------- ediciones */
.ed-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ed-tile { text-decoration: none; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radio); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; transition: background .2s, border-color .2s; min-height: 150px; }
.ed-tile b { font-family: var(--tit); font-size: 2.6rem; line-height: 1; color: var(--lima); }
.ed-tile span { font-family: var(--tit); font-weight: 650; }
.ed-tile small { font-family: var(--tit); font-size: .82rem; opacity: .75; margin-top: auto; line-height: 1.25; }
.ed-tile:hover { background: var(--monte-2); border-color: var(--lima); }
@media (max-width: 860px) { .ed-tiles { grid-template-columns: repeat(2, 1fr); } }
.ed-lista { display: flex; flex-direction: column; gap: 14px; }
.ed-fila { display: grid; grid-template-columns: 110px 1fr 240px; align-items: center; gap: 24px; text-decoration: none; background: var(--sup); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 14px 14px 24px; transition: border-color .2s, transform .2s; }
.ed-fila:hover { border-color: var(--lima-osc); transform: translateX(4px); }
.ed-num { font-family: var(--tit); font-size: 4rem; font-weight: 800; line-height: 1; color: var(--lima-osc); letter-spacing: -.05em; }
.ed-info small { font-family: var(--tit); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); display: block; }
.ed-info b { font-family: var(--tit); font-size: 1.45rem; display: block; margin: 2px 0; line-height: 1.15; }
.ed-info span { font-family: var(--tit); color: var(--texto-2); font-size: .95rem; }
.ed-foto { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; position: relative; background: var(--monte-3); }
.ed-foto img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .ed-fila { grid-template-columns: 64px 1fr; padding: 16px; gap: 14px; }
  .ed-num { font-size: 2.8rem; }
  .ed-foto { display: none; }
}

/* ---------- titulares y páginas */
.titular { padding-top: clamp(36px, 6vw, 72px); padding-bottom: 8px; }
.fechas { font-family: var(--tit); font-weight: 600; font-size: 1.1rem; color: var(--texto-2); }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font: 500 .85rem/1.4 var(--tit); color: var(--texto-2); }
.migas li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.migas a { text-decoration: none; }
.migas a:hover { text-decoration: underline; }
.paginador { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 64px; font-family: var(--tit); font-weight: 600; flex-wrap: wrap; }
.paginador a { text-decoration: none; padding: 10px 16px; border: 1px solid var(--borde); border-radius: 999px; }
.paginador a:hover { border-color: var(--lima-osc); }
.dos-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .dos-col { grid-template-columns: 1fr; gap: 28px; } }
.aviso { border: 2px dashed var(--borde); border-radius: var(--radio); padding: 28px; }
.aviso b { font-family: var(--tit); font-size: 1.25rem; display: block; margin-bottom: 6px; }
.aviso p { margin: 0; color: var(--texto-2); }
.nota { color: var(--texto-2); margin-top: 16px; font-style: italic; }

/* ---------- reproductor */
.pantalla { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radio); overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0,0,0,.6); }
.pantalla video, .pantalla iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.lsa { display: inline-flex; margin-top: 14px; border: 1px solid var(--borde); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.lsa button { font: 600 .9rem/1 var(--tit); background: none; border: 0; color: inherit; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.lsa button.activo { background: var(--lima); color: var(--monte); }
.corto-pagina { padding-top: 28px; }
.corto-datos { display: flex; justify-content: space-between; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.corto-datos h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.realizan { font-family: var(--tit); font-size: 1.15rem; font-weight: 500; color: var(--texto-2); }
.corto-nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; font-family: var(--tit); font-weight: 600; }
.corto-nav a { text-decoration: none; }
.corto-nav a:hover { color: var(--lima-osc); }
.retro + .retro { padding-top: 0; }

/* ---------- películas */
.peli-cabecera { position: relative; background: var(--monte); color: var(--papel); isolation: isolate; overflow: hidden; }
.peli-cabecera::before { content: ""; position: absolute; inset: 0; background: var(--foto, none) center/cover; opacity: .5; z-index: -2; }
.peli-cabecera::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--monte) 10%, rgba(12,34,25,.55) 100%), linear-gradient(0deg, var(--monte) 0%, transparent 60%); z-index: -1; }
.peli-cab-in { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(36px, 7vw, 80px); }
.peli-cabecera .volanta { color: var(--lima); }
.peli-cabecera .migas ol { color: rgba(244,241,232,.75); }
.credito { font-family: var(--tit); font-size: 1.2rem; opacity: .9; max-width: 60ch; }
.peli-cuerpo { display: grid; grid-template-columns: 1fr 300px; gap: 56px; padding-top: 56px; padding-bottom: 32px; }
.peli-texto h2 { font-size: 1.3rem; margin-top: 1.6em; }
.peli-texto h2:first-child { margin-top: 0; }
.ficha { padding-left: 1.1em; margin: 0; }
.ficha li { margin-bottom: .3em; }
.afiche { border-radius: var(--radio); box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); position: sticky; top: 96px; }
@media (max-width: 860px) { .peli-cuerpo { grid-template-columns: 1fr; gap: 32px; } .peli-lado { order: -1; max-width: 280px; } }
.galeria { columns: 3 260px; column-gap: 14px; }
.galeria a { display: block; margin-bottom: 14px; border-radius: 10px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.galeria img { width: 100%; transition: transform .4s; }
.galeria a:hover img { transform: scale(1.03); }
.bio { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 32px; border: 1px solid var(--borde); border-radius: var(--radio); margin: 0 0 72px; background: var(--sup); }
.bio img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; }
.bio h2 { font-size: 1.5rem; }
@media (max-width: 640px) { .bio { grid-template-columns: 1fr; padding: 22px; } .bio img { width: 110px; height: 110px; } }

/* ---------- visor de fotos */
.visor { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.visor::backdrop { background: rgba(6, 14, 10, .92); }
.visor img { max-width: 96vw; max-height: 88vh; border-radius: 8px; margin: auto; }
.visor button { position: fixed; top: 14px; right: 18px; background: var(--papel); color: var(--monte); border: 0; border-radius: 999px; font: 700 1rem/1 var(--tit); padding: 12px 16px; cursor: pointer; }

/* ---------- noticias */
.notas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px 24px; }
.nota-item { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.nota-foto { aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; position: relative; background: var(--monte-3); }
.nota-foto img { width: 100%; height: 100%; object-fit: cover; }
.nota-txt small { font: 600 .78rem/1 var(--tit); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2); }
.nota-txt b { font-family: var(--tit); font-size: 1.25rem; line-height: 1.2; display: block; margin: 6px 0; }
.nota-txt span { color: var(--texto-2); font-size: .97rem; }
.nota-item:hover b { color: var(--lima-osc); }
.articulo { padding-top: clamp(32px, 6vw, 64px); padding-bottom: 72px; }
.articulo h1 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); max-width: 22ch; }
.articulo-foto { border-radius: var(--radio); margin: 28px 0 36px; width: 100%; max-height: 520px; object-fit: cover; }

/* ---------- el festival, contacto */
.personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.persona { display: flex; gap: 16px; align-items: center; background: var(--sup); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; }
.persona img, .persona-ini { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.persona-ini { background: var(--monte-3); color: var(--lima); display: grid; place-items: center; font: 800 1.6rem var(--tit); }
.persona small { font-family: var(--tit); font-size: .78rem; color: var(--texto-2); display: block; line-height: 1.3; }
.persona b { font-family: var(--tit); font-size: 1.1rem; }
.contacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.canal { text-decoration: none; background: var(--sup); border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px; display: block; }
.canal small { font: 600 .78rem/1 var(--tit); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); display: block; margin-bottom: 10px; }
.canal b { font-family: var(--tit); font-size: 1.3rem; word-break: break-word; }
a.canal:hover { border-color: var(--lima-osc); }

/* ---------- cita y pie */
.cita blockquote { margin: 0; border-left: 4px solid var(--lima); padding: 6px 0 6px 28px; max-width: 30ch; }
.cita blockquote p { font-family: var(--tit); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; font-weight: 600; margin-bottom: .5em; }
.cita footer { font-family: var(--tit); }
.pie { background: var(--monte); color: var(--papel); margin-top: 0; }
.pie-in { max-width: var(--ancho); margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; font-family: var(--tit); font-size: .95rem; }
.pie-lema { font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.pie-viva { font-size: 2rem; font-weight: 800; color: var(--lima); }
.pie-logos { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pie-logos img { max-height: 54px; width: auto; opacity: .9; }
.pie-legal { max-width: var(--ancho); margin: 0 auto; padding: 18px 24px 30px; border-top: 1px solid rgba(255,255,255,.1); font: .85rem var(--tit); opacity: .75; }
@media (max-width: 760px) { .pie-in { grid-template-columns: 1fr; } }

@media (max-width: 520px) {
  .ancho, .cabecera-in, .portada-in, .pie-in, .pie-legal { padding-left: 16px; padding-right: 16px; }
  .marca small { display: none; }
  .grilla { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .grilla .tarjeta-txt b { font-size: .98rem; }
  .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .play::after { left: 17px; top: 13px; border-left-width: 13px; border-top-width: 9px; border-bottom-width: 9px; }
  .grilla-afiches { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
