/* Biblioteca de Prompts — sitio público. Oscuro por defecto, claro según el sistema. */
:root {
  --bg: #07070c;
  --bg-2: #0d0d16;
  --surface: rgb(255 255 255 / 0.045);
  --surface-2: rgb(255 255 255 / 0.08);
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.16);
  --ink: #f4f3fb;
  --ink-soft: #a3a1b8;
  --ink-faint: #6e6c84;
  --a1: #8b5cf6; /* violeta */
  --a2: #22d3ee; /* cian */
  --a3: #f472b6; /* rosa */
  --a4: #fb923c; /* naranja */
  --grad: linear-gradient(115deg, var(--a1), var(--a2) 45%, var(--a3) 80%, var(--a4));
  --mark: rgb(139 92 246 / 0.28);
  --mark-line: rgb(167 139 250 / 0.7);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 1px rgb(0 0 0 / 0.25), 0 4px 12px rgb(0 0 0 / 0.25);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 48px -12px rgb(0 0 0 / 0.6), 0 40px 90px -30px rgb(80 40 160 / 0.45);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6fc;
    --bg-2: #efedf8;
    --surface: rgb(255 255 255 / 0.72);
    --surface-2: rgb(255 255 255 / 0.95);
    --line: rgb(30 20 70 / 0.09);
    --line-2: rgb(30 20 70 / 0.18);
    --ink: #15132a;
    --ink-soft: #57546f;
    --ink-faint: #8a87a3;
    --mark: rgb(139 92 246 / 0.16);
    --shadow-1: 0 1px 2px rgb(30 20 70 / 0.06), 0 6px 16px rgb(30 20 70 / 0.06);
    --shadow-2: 0 2px 6px rgb(30 20 70 / 0.08), 0 22px 50px -14px rgb(60 30 140 / 0.28);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); line-height: 1.6; font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgb(139 92 246 / 0.4); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 8s linear infinite; }

/* ---------- Fondo aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora::before, .aurora::after, .aurora span {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; mix-blend-mode: screen; will-change: transform;
}
.aurora::before { background: radial-gradient(circle, var(--a1), transparent 65%); top: -25vmax; left: -15vmax; animation: drift1 26s var(--ease) infinite alternate; }
.aurora::after { background: radial-gradient(circle, var(--a2), transparent 65%); top: -10vmax; right: -25vmax; animation: drift2 32s var(--ease) infinite alternate; }
.aurora span { background: radial-gradient(circle, var(--a3), transparent 65%); bottom: -35vmax; left: 25vmax; opacity: .18; animation: drift3 38s var(--ease) infinite alternate; }
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@media (prefers-color-scheme: light) { .aurora::before, .aurora::after, .aurora span { mix-blend-mode: multiply; opacity: .2; } }
@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vmax, 18vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-16vmax, -14vmax) scale(1.2); } }
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); background: color-mix(in srgb, var(--bg) 62%, transparent); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.03em; font-size: 1.05rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); background-size: 200% 200%; animation: shine 6s linear infinite; box-shadow: 0 0 24px -4px var(--a1); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.nav { display: flex; gap: 6px; font-size: .94rem; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 7px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
main { padding: 28px 0 80px; min-height: 70vh; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--ink-faint); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Héroe ---------- */
.hero { padding: 56px 0 28px; text-align: center; max-width: 860px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .82rem; color: var(--ink-soft); margin-bottom: 22px; backdrop-filter: blur(8px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 0 0 var(--a2); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(34 211 238 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 211 238 / 0); } }
.hero p.lead { color: var(--ink-soft); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 640px; margin: 0 auto 28px; }
.search-xl { position: relative; max-width: 640px; margin: 0 auto 18px; }
.search-xl input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 17px 22px 17px 52px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); outline: none;
  box-shadow: var(--shadow-2); transition: border-color .2s, box-shadow .2s;
}
.search-xl input:focus { border-color: var(--a1); box-shadow: 0 0 0 4px rgb(139 92 246 / .18), var(--shadow-2); }
.search-xl svg { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--ink-faint); }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; color: var(--ink-faint); font-size: .88rem; margin-top: 8px; }
.hero-stats b { color: var(--ink); font-weight: 700; }

/* ---------- Botones y chips ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); padding: 10px 18px;
  border-radius: 999px; font: inherit; font-weight: 650; font-size: .94rem; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background .2s; overflow: hidden;
}
.btn:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn > span { position: relative; z-index: 1; }
.btn.primary { color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .25); border-color: transparent; background: linear-gradient(115deg, #7c3aed, #4f46e5 45%, #0e7490 80%, #7c3aed); background-size: 220% auto; box-shadow: 0 8px 30px -8px rgb(139 92 246 / .7); }
.btn.primary:hover { background-position: right center; box-shadow: 0 12px 38px -8px rgb(139 92 246 / .85); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .45) 50%, transparent 65%); translate: -120% 0; transition: translate .7s var(--ease); }
.btn.primary:hover::after { translate: 120% 0; }
.btn.copied { background: linear-gradient(115deg, #10b981, #22d3ee); }
.chip {
  font: inherit; font-size: .86rem; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: all .2s var(--ease); text-decoration: none; white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--grad); background-size: 200% auto; box-shadow: 0 6px 20px -8px var(--a1); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: rgb(139 92 246 / .16); color: #c4b5fd; font-weight: 650; letter-spacing: .01em; }
@media (prefers-color-scheme: light) { .badge { color: #6d28d9; } }
.badge.plain { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); font-weight: 550; }
.badge.premium { background: linear-gradient(115deg, #f59e0b, #f472b6); color: #fff; }

/* ---------- Secciones ---------- */
.section { margin-top: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--ink-soft); font-size: .94rem; text-decoration: none; }
.section-head a:hover { color: var(--ink); }
.section-sub { color: var(--ink-soft); margin: 4px 0 0; font-size: .95rem; }

/* ---------- Tarjetas con brillo e inclinación ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; align-items: start; }
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; display: block; text-decoration: none; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(167 139 250 / .9), rgb(34 211 238 / .5) 30%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; background: radial-gradient(500px circle at var(--mx) var(--my), rgb(255 255 255 / .07), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card-media { position: relative; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--bg-2); }
.card-media img { width: 100%; height: auto; transition: transform .7s var(--ease), filter .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.card-media .flags .badge { background: rgb(0 0 0 / .62); color: #fff; backdrop-filter: blur(6px); }
.card-media .count { position: absolute; right: 10px; bottom: 10px; z-index: 1; }
.card-body { position: relative; z-index: 3; padding: 14px 16px 16px; }
.card-title { font-weight: 700; font-size: 1rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card.locked .card-media img { filter: saturate(.7); }

/* ---------- Filtros ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 22px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.filters input[type="search"] { width: 100%; font: inherit; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); outline: none; }
.filters input[type="search"]:focus { border-color: var(--a1); }
.filter-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); min-width: 78px; }
.results-line { color: var(--ink-soft); font-size: .92rem; margin: 0 0 14px; }
.empty { padding: 48px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat { position: relative; display: block; padding: 18px 20px; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.cat::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s; z-index: -1; }
.cat:hover { transform: translateY(-3px); border-color: transparent; color: #fff; }
.cat:hover::before { opacity: .9; }
.cat strong { display: block; font-size: 1.05rem; }
.cat span { color: var(--ink-faint); font-size: .85rem; transition: color .3s; }
.cat:hover span { color: rgb(255 255 255 / .85); }

/* ---------- Ficha del prompt ---------- */
.crumbs { font-size: .9rem; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: 28px; } }
.detail > .media-col { position: sticky; top: 88px; }
@media (max-width: 900px) { .detail > .media-col { position: static; } }
.gallery { display: grid; gap: 12px; }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.stage figure { margin: 0; display: none; }
.stage figure.on { display: block; animation: fadein .5s var(--ease); }
.stage img, .stage video { width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: var(--bg-2); }
.stage figcaption, .media-card figcaption {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .84rem; color: var(--ink-soft);
  border-top: 1px solid var(--line); background: var(--surface);
}
figcaption .gen { color: var(--ink); font-weight: 650; }
.spark { width: 18px; height: 18px; flex: none; color: var(--a2); }
figcaption .spark { width: 16px; height: 16px; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { flex: 1; max-width: 110px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--bg-2); opacity: .6; transition: all .25s var(--ease); }
.thumbs button:hover { opacity: .9; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--a1); box-shadow: 0 6px 18px -6px var(--a1); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.media-card { margin: 14px 0 0; max-width: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
@keyframes fadein { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

.detail h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.summary { color: var(--ink-soft); font-size: 1.06rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.mode-box { position: relative; padding: 14px 18px 14px 20px; border-radius: var(--radius-sm); margin-bottom: 22px; background: var(--surface); border: 1px solid var(--line); }
.mode-box::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--grad); }
.mode-box strong { display: block; margin-bottom: 2px; }
.prompt-box { position: relative; border-radius: var(--radius); margin-bottom: 26px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); overflow: hidden; }
.prompt-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); background-size: 200% auto; animation: shine 5s linear infinite; }
.prompt-box header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); gap: 10px; }
.prompt-box header span { font-weight: 700; font-size: .9rem; color: var(--ink-soft); letter-spacing: .02em; }
.prompt-text { padding: 18px; font-family: var(--mono); font-size: .9rem; line-height: 1.75; white-space: pre-wrap; margin: 0; word-break: break-word; }
.prompt-text mark { background: var(--mark); color: inherit; padding: 1px 4px; border-radius: 5px; box-shadow: inset 0 -1px 0 var(--mark-line); }
.locked-box { padding: 26px 22px; text-align: center; }
.locked-box p { color: var(--ink-soft); }
.blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.fields { display: grid; gap: 12px; margin-bottom: 26px; }
.field { border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); }
.field h3 { font-size: .98rem; margin: 0 0 4px; }
.field .used { color: var(--ink-soft); font-size: .88rem; margin: 0 0 10px; }
.field .used code { background: var(--mark); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: .84rem; }
.examples { display: flex; flex-wrap: wrap; gap: 6px; }
.examples button { font-family: var(--mono); font-size: .8rem; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); cursor: pointer; transition: all .2s; }
.examples button:hover { border-color: var(--a1); color: var(--ink); background: rgb(139 92 246 / .12); }
.note { color: var(--ink-faint); font-size: .9rem; }
.edu { margin-top: 10px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.edu h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }

/* ---------- Artículos ---------- */
.post-list { display: grid; gap: 16px; }
.post { position: relative; display: block; text-decoration: none; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.post:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.post h2, .post h3 { margin-bottom: 6px; }
.post p { margin: 0; color: var(--ink-soft); }
.prose { max-width: 740px; font-size: 1.04rem; }
.prose h2 { margin-top: 1.8em; }
.prose a { color: #c4b5fd; }
.prose code { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--surface-2); padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--a1); color: var(--ink-soft); }
.prose img { border-radius: 12px; }
.date { color: var(--ink-faint); font-size: .92rem; }

/* ---------- Aparición al hacer scroll y aviso de copia ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; z-index: 50; padding: 12px 20px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); backdrop-filter: blur(14px); font-weight: 600; font-size: .92rem; transition: all .35s var(--ease); pointer-events: none; }
.toast.on { translate: -50% 0; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Móvil ---------- */
.nav { overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
@media (max-width: 600px) {
  .site-header .wrap { gap: 10px; }
  .brand > span:last-child { display: none; }
  .nav a { padding: 6px 10px; font-size: .88rem; white-space: nowrap; }
  .hero { padding-top: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: .88rem; }
  .card-meta .badge.plain { display: none; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { padding: 14px; }
  .section { margin-top: 44px; }
  .section-head { align-items: start; }
  .section-head a { white-space: nowrap; }
}

/* ---------- Categorías con miniatura ---------- */
.cat.has-img { padding: 0; display: flex; flex-direction: column; }
.cat-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.06); }
.cat-text { display: block; padding: 14px 18px 16px; }
.cat.has-img::before { z-index: 0; }
.cat-text, .cat-img { position: relative; z-index: 1; }
