/* ============================================================
   GENIOS CREATIVOS · Galería / Estreno (galeria.html)
   Muro seguro y moderado de creaciones. Carga DESPUÉS de genios.css.
   ============================================================ */

body.page-galeria { background: var(--paper); }

/* Nota de seguridad */
.safe-note {
  display: flex; align-items: center; gap: 12px; max-width: 1180px; margin: 18px auto 0; padding: 14px 20px;
  background: color-mix(in srgb,var(--green) 9%,#fff); border: 2px solid color-mix(in srgb,var(--green) 30%,#fff);
  border-radius: var(--r); font-weight: 700; font-size: 14px; color: #1B7A47;
}
.safe-note .ic { font-size: 22px; flex-shrink: 0; }
.safe-note b { color: #146238; }

/* Estreno destacado */
.featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden;
  background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); margin-top: 22px;
}
.feat-media { position: relative; background: #0B1230; aspect-ratio: 16/10; overflow: hidden; }
.feat-media img, .feat-media video { width: 100%; height: 100%; object-fit: cover; }
.feat-flag { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  padding: 7px 14px; border-radius: 999px; box-shadow: 0 4px 0 #D43344; }
.feat-flag .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.feat-play { position: absolute; inset: 0; display: grid; place-items: center; }
.feat-play .circle { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; font-size: 28px; color: var(--blue); padding-left: 5px; box-shadow: var(--shadow); }
.feat-info { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.feat-info .eyebrow { align-self: flex-start; margin-bottom: 12px; }
.feat-info h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,3vw,34px); color: var(--ink); line-height: 1.1; }
.feat-info .by { font-weight: 800; font-size: 15px; color: var(--ink-2); margin: 8px 0 14px; }
.feat-info .by b { color: var(--blue); }
.feat-info p { font-weight: 600; font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }

/* Filtros */
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 26px; }
.gfilter { background: #fff; border: 2px solid var(--line); color: var(--ink-2); font-family: var(--font-display); font-weight: 500;
  font-size: 15px; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: .16s; }
.gfilter:hover { border-color: var(--blue); transform: translateY(-2px); }
.gfilter.active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 5px 0 var(--blue-d); }

/* Grilla de creaciones */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 18px; }
.gcard { background: #fff; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s, border-color .18s; }
.gcard:hover { transform: translateY(-6px); border-color: var(--blue); }
.gcard-media { position: relative; aspect-ratio: 4/3; background: #EEF2FF; overflow: hidden; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; }
.gcard-type { position: absolute; top: 10px; left: 10px; font-family: var(--font-display); font-weight: 600; font-size: 12px;
  color: #fff; padding: 5px 12px; border-radius: 999px; box-shadow: 0 3px 0 rgba(0,0,0,.14); }
.t-personaje { background: var(--m1); } .t-mundo { background: var(--m2); } .t-historia { background: var(--m3); }
.t-pelicula { background: var(--m4); } .t-musica { background: var(--m5); }
.gcard-play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.95); display: grid; place-items: center; font-size: 16px; color: var(--ink); padding-left: 3px; box-shadow: var(--shadow-sm); }
.gcard-body { padding: 16px 18px 18px; }
.gcard-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.15; }
.gcard-creator { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.gcard-creator .ava { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--purple)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.gcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.applause { display: inline-flex; align-items: center; gap: 6px; background: #F7F9FF; border: 2px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-weight: 800; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: .14s; }
.applause:hover { border-color: var(--gold); color: #B8780A; transform: translateY(-1px); }
.applause.clapped { background: color-mix(in srgb,var(--gold) 14%,#fff); border-color: color-mix(in srgb,var(--gold) 38%,#fff); color: #B8780A; }
.gcard-world { font-weight: 800; font-size: 12px; color: var(--ink-3); }

.gal-empty { text-align: center; padding: 50px 20px; color: var(--ink-3); font-weight: 700; }

@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } }
