/* Las Valientes de Dios — estilos de la landing */

@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0d1218;
  --bg-2: #131b23;
  --surface: #1a242f;
  --surface-2: #223040;
  --line: rgba(233, 228, 218, .14);
  --text: #ece7de;
  --muted: #b4bcc6;
  --accent: #d6b27a;
  --accent-strong: #e7c995;
  --danger: #ffb4a8;
  --ok: #b9e3c2;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--accent); color: #111; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.6em;
  border: 1px solid var(--text); border-radius: var(--radius);
  background: transparent; color: var(--text);
  font: 600 .8125rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #17120a; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #17120a; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { min-height: 38px; padding: .5em 1em; font-size: .72rem; letter-spacing: .1em; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(to bottom, rgba(13, 18, 24, .92), rgba(13, 18, 24, .55));
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(13, 18, 24, .97); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; height: 100%; max-width: 1440px; }
.brand { font: 700 1rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.5vw, 28px); }
.site-nav a {
  color: var(--text); text-decoration: none; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { border-bottom-color: var(--accent); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1279px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: rgba(13, 18, 24, .98); border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 14px 0; font-size: .85rem; border-bottom: 1px solid var(--line); }
  html:not(.js) .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); padding: 0 var(--gutter); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #0a0f14; padding-top: var(--header-h); }
.hero-backdrop {
  position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(36px) brightness(.45) saturate(.9); transform: scale(1.1);
}
.hero-media { position: relative; max-width: 1280px; margin: 0 auto; }
.hero-media img { width: 100%; }
@media (min-width: 701px) {
  .hero-media img {
    width: auto; max-width: 100%; margin: 0 auto;
    max-height: max(420px, calc(100vh - var(--header-h) - 170px));
    -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, #000 80%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  }
}
.hero-content { position: relative; text-align: center; padding-top: 8px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-kicker { font: 600 .75rem/1.4 var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.hero-release {
  font: 600 clamp(1.25rem, 2.6vw, 2rem)/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 1.1em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (min-width: 701px) {
  .hero-content { margin-top: -56px; }
}
@media (max-width: 700px) {
  .hero-media img { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
  .hero-content { margin-top: -28px; }
  .hero-ctas .btn { flex: 1 1 140px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section:nth-of-type(even) { background: var(--bg-2); }
.section-title {
  font: 600 clamp(1.75rem, 3.6vw, 2.75rem)/1.15 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  text-align: center; margin: 0 0 .5em; color: #fff;
}
.section-title::after { content: ""; display: block; width: 56px; height: 1px; background: var(--accent); margin: .55em auto 0; }
.section-subtitle { text-align: center; color: var(--muted); font-size: 1.125rem; max-width: 680px; margin: 0 auto 2.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #fff; font-weight: 600; }
.prose-center { max-width: 820px; margin: 0 auto; text-align: center; }
.prose h2 { font: 600 1.25rem/1.3 var(--font-display); letter-spacing: .05em; margin: 2em 0 .6em; color: #fff; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Sinopsis */
.sinopsis-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sinopsis-grid.no-image { grid-template-columns: 1fr; max-width: 820px; }
.sinopsis-text .section-title { text-align: left; }
.sinopsis-text .section-title::after { margin-left: 0; }
.lead { font: italic 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.45 var(--font-serif); color: #fff; margin-bottom: 1em; padding-left: 18px; border-left: 2px solid var(--accent); }
.sinopsis-body { font-size: .98rem; line-height: 1.7; color: #d9d4ca; }
.js .sinopsis-more:not(.is-open) { display: none; }
.sinopsis-more { margin-top: 1em; }
.more-toggle {
  margin-top: 4px; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid var(--accent); color: var(--accent-strong);
  font: 600 .74rem/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.more-toggle:hover { color: #fff; }
.more-toggle::after { content: " +"; }
.more-toggle[aria-expanded="true"]::after { content: " –"; }
.sinopsis-figure { margin: 0; }
.sinopsis-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center; border-radius: var(--radius); max-height: 620px; }
.about-box { margin-top: 28px; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; line-height: 1.6; }
.about-box p { margin: 0; }
@media (max-width: 860px) {
  .sinopsis-grid { grid-template-columns: 1fr; }
  .sinopsis-figure img { aspect-ratio: 16 / 9; }
}

/* Tráiler */
.video { max-width: 1000px; margin: 0 auto; }
.video-play, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-play { position: relative; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s, transform .4s; }
.video-play:hover img { opacity: 1; transform: scale(1.02); }
.video-play-icon {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .45);
}
.video-play-icon::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 24px; border-color: transparent transparent transparent #fff; }
.video-note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Cines ---------- */
.cines-tools { margin-bottom: 28px; }
.estado-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.estado-tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 20px;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  font: 600 .78rem/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.estado-tab:hover { border-color: var(--text); }
.estado-tab[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.estado-count { display: inline-block; min-width: 1.9em; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .72rem; letter-spacing: 0; text-align: center; }
.estado-tab[aria-pressed="true"] .estado-count { background: rgba(0, 0, 0, .14); }

.cines-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 14px; align-items: end; padding: 20px; background: var(--surface); border-radius: var(--radius); }
.cines-reset { height: 48px; }
@media (max-width: 960px) {
  .cines-filters { grid-template-columns: 1fr 1fr; }
  .cines-filters .field-search { grid-column: 1 / -1; }
  .cines-reset { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .cines-filters { grid-template-columns: 1fr; padding: 16px; }
  .estado-tab { width: 100%; justify-content: center; }
}
.cines-status { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }

.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--text); }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(233, 228, 218, .32); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font: 400 1rem var(--font-sans);
}
.field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder { color: #8b949e; }
.field input:focus, .field select:focus { border-color: var(--accent); }

.estado-title { font: 600 1.25rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--accent-strong); margin: 0 0 .4em; }
.js .estado-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.estado-group + .estado-group { margin-top: 56px; }
.estado-note { text-align: center; color: var(--muted); font-size: .92rem; max-width: 700px; margin: 0 auto 28px; }
.pais-group { margin-bottom: 40px; }
.pais-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font: 600 1.35rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 0 18px;
}
.pais-count { font: 500 .8rem var(--font-sans); letter-spacing: .04em; text-transform: none; color: var(--muted); }
.cines-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cine {
  display: flex; flex-direction: column; padding: 18px 20px; background: var(--surface); border-radius: var(--radius);
  border-top: 2px solid transparent; transition: border-color .2s, background-color .2s;
}
.cine:hover { border-top-color: var(--accent); background: var(--surface-2); }
.cine p { margin: 0; }
.cine-ciudad { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.cine-sala { font: 600 1.15rem/1.3 var(--font-sans); color: #fff; margin-top: 4px !important; }
.cine-cadena { color: var(--muted); font-size: .9rem; }
.cine-fecha { margin-top: 10px !important; font-size: .92rem; }
.cine-fecha span { color: var(--muted); }
.badge { display: inline-block; align-self: flex-start; margin-top: 10px !important; padding: 2px 10px; border: 1px solid rgba(214, 178, 122, .55); border-radius: 999px; font-size: .72rem; letter-spacing: .06em; color: var(--accent-strong); }
.cine-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto !important; padding-top: 14px; }
@media (max-width: 520px) {
  .cine { padding: 14px 16px; }
  .cine-fecha, .badge { margin-top: 6px !important; }
  .cine-links { padding-top: 10px; }
}
.cines-empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.cines-cta { margin-top: 48px; padding: 32px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.cines-cta p { font: italic 1.2rem/1.5 var(--font-serif); }

/* Banda panorámica */
.banda { background: #0a0f14; }
.banda img { width: 100%; max-width: 1920px; margin: 0 auto; }
/* En tablet y móvil se usa una imagen más alta (sin recortes); si no hay, la panorámica se ve entera */

/* Elenco: una sola franja a todo el ancho en escritorio */
.elenco-text { font-size: .98rem; max-width: 900px; }
.people { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(var(--people, 7), minmax(0, 1fr)); gap: 2px; }
.person { position: relative; overflow: hidden; background: #000; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(.85); transition: transform .5s, filter .3s; }
.person:hover img { transform: scale(1.04); filter: saturate(1); }
.person-name {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 8px 14px;
  background: linear-gradient(to top, rgba(8, 11, 15, .92), transparent);
  font: 600 clamp(.68rem, .9vw, .9rem)/1.25 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: #fff;
}
@media (max-width: 1023px) {
  .people { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--gutter); gap: 8px; }
  .person { border-radius: var(--radius); }
}
@media (max-width: 600px) {
  .people { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
  .person { scroll-snap-align: start; }
}
/* Ficha técnica */
.ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 40px; margin: 40px 0 0; }
.ficha-item { text-align: center; }
.ficha dt { font: 600 .9rem/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.ficha dd { margin: 6px 0 0; font-size: 1.02rem; }

/* Galería */
/* Fotogramas: dos franjas a todo el ancho en escritorio */
.section-galeria { padding-bottom: 0; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); gap: 2px; }
.gallery a { display: block; overflow: hidden; background: #000; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s, opacity .2s, filter .3s; opacity: .9; filter: saturate(.9); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.06); opacity: 1; filter: saturate(1); }
.gallery a:focus-visible { outline-offset: -4px; }
@media (max-width: 1023px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* Móvil: dos filas deslizables en horizontal */
  .gallery { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
  .gallery li { scroll-snap-align: start; }
}
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; }
.lightbox-btn {
  position: fixed; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Formulario */
.pidela-form { background: var(--surface); padding: clamp(20px, 4vw, 40px); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { display: block; color: var(--danger); font-size: .88rem; margin-top: 6px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.form-legal { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 24px 0 16px; }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.field-check .field-error { flex-basis: 100%; }
.field-check { flex-wrap: wrap; }
.field-check label { flex: 1; }
.form-required-note { font-size: .8rem; color: var(--muted); margin: 14px 0 22px; }
.form-message { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 20px; }
.form-message p { margin: 0; }
.form-success { background: rgba(185, 227, 194, .1); border: 1px solid var(--ok); color: var(--ok); font-size: 1.1rem; text-align: center; }
.form-error { background: rgba(255, 180, 168, .08); border: 1px solid var(--danger); color: var(--danger); }
.pidela-form button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* Material promocional: mosaicos con imagen vertical */
.section-material { padding-bottom: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--tiles, 4), minmax(0, 1fr)); }
/* Línea fina entre botones: el hueco de 1 px deja ver el color de fondo de la rejilla */
.tiles.has-sep { gap: 1px; background: var(--sep, #fff); }
.tiles li { min-width: 0; background: var(--bg-2); }
.tile {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2 / 3; max-height: 640px;
  overflow: hidden; padding: 0; border: 0; background: var(--surface); color: #fff; text-decoration: none; cursor: pointer; font: inherit;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; filter: brightness(.62) saturate(.9); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 11, 15, .55), transparent 55%); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); filter: brightness(.8) saturate(1); }
/* En escritorio el texto se reduce con el ancho de pantalla para no partirse nunca en dos líneas */
.tile-label {
  position: relative; z-index: 1; max-width: calc(100% - 16px); padding: clamp(7px, .8vw, 12px) clamp(9px, 1.2vw, 18px);
  border: 1px solid rgba(255, 255, 255, .85); background: rgba(8, 11, 15, .25); white-space: nowrap;
  font: 600 clamp(.56rem, .82vw, .85rem)/1.3 var(--font-sans); letter-spacing: clamp(.06em, .1vw, .14em); text-transform: uppercase; text-align: center;
  transition: background-color .2s, color .2s;
}
.tile:hover .tile-label, .tile:focus-visible .tile-label { background: #fff; color: var(--bg); }
.tile:focus-visible { outline-offset: -4px; }
/* Tablet y móvil: de dos en dos y, si sobra uno, a todo el ancho */
@media (max-width: 1023px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { aspect-ratio: 4 / 5; }
  .tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tiles li:last-child:nth-child(odd) .tile { aspect-ratio: 16 / 7; }
  .tile-label { white-space: normal; font-size: clamp(.68rem, 1.8vw, .85rem); letter-spacing: .12em; padding: 10px 16px; }
}
@media (max-width: 600px) {
  .tiles li:last-child:nth-child(odd) .tile { aspect-ratio: 16 / 9; }
}
.share-dialog { max-width: 520px; width: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.share-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.share-inner { position: relative; padding: 28px 24px 22px; }
.share-help { color: var(--muted); font-size: .92rem; }
.share-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.share-list .btn { width: 100%; }
.share-status { min-height: 1.5em; margin: 12px 0 0; font-size: .9rem; color: var(--ok); }
.share-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; font-size: 1.4rem; }
/* ---------- Pie ---------- */
.site-footer { background: #080b0f; border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: .9rem; }
.footer-logos-title { font: 600 .75rem var(--font-sans); letter-spacing: .2em; text-transform: uppercase; text-align: center; color: var(--muted); margin: 0 0 20px; }
.footer-logos ul { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.footer-logos img { max-height: 64px; max-width: 170px; width: auto; opacity: .85; transition: opacity .2s; }
.footer-logos a:hover img { opacity: 1; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 28px; text-align: center; color: var(--muted); }
.footer-links, .footer-social { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer-links a, .footer-social a, .footer-links .link-button { color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a:hover, .footer-social a:hover, .footer-links .link-button:hover { color: var(--accent-strong); text-decoration: underline; }
.copyright { font-size: .8rem; margin: 16px 0 0; }

/* ---------- Cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}
.cookie-banner-inner, .cookie-dialog-inner { padding: 22px 24px; }
.cookie-title { font: 600 1.05rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; color: #fff; }
.cookie-banner p { font-size: .92rem; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-dialog { max-width: 560px; width: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.cookie-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.cookie-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cookie-option input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cookie-option span { display: block; font-size: .88rem; color: var(--muted); }
.cookie-dialog .cookie-actions { margin-top: 20px; }

/* ---------- Páginas legales ---------- */
.page-legal main { padding-top: calc(var(--header-h) + 48px); }
.breadcrumb { font-size: .85rem; color: var(--muted); }
.legal .section-title { text-align: left; }
.legal .section-title::after { margin-left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .cookie-banner, .hero-backdrop, .video, .pidela-form { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (min-width: 1024px) { .section-elenco { padding-bottom: 0; } }
@media (max-width: 600px) { .ficha { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; }
.social-icon { flex: none; }
.credit { font-size: .78rem; margin: 6px 0 0; color: var(--muted); }
.credit a { color: var(--text); }
.credit a:hover { color: var(--accent-strong); }
.field-help { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
