/* ═══════════════════════════════════════════════════════════════════════════
   PORTADA V2 DE LA COMUNIDAD (template-parts/community/home-v2/*)
   Se carga solo en la portada de la Comunidad con la v2 activa. Todo va bajo
   .cmh para no tocar nada más. Tokens: se mantienen los fondos y textos de la
   marca; solo cambian los valores con motivo medible (contraste AA, bordes de
   control a 3:1, variantes de categoría para el tema claro).
   ═══════════════════════════════════════════════════════════════════════════ */

.cmh {
  --cmh-bg: var(--color-bg-base, #1a1a20);
  --cmh-surface: var(--color-bg-surface, #202028);
  --cmh-card: var(--color-bg-card, #2a2a34);
  --cmh-elev: var(--color-bg-elevated, #343444);
  --cmh-line: rgba(255, 255, 255, .08);
  --cmh-line2: rgba(255, 255, 255, .16);
  --cmh-ctl: #7d8196;
  --cmh-tx: var(--color-text-primary, #e2e8f0);
  --cmh-tx2: #a8acbd;
  --cmh-tx3: #9a9eb0;
  --cmh-accent: #ffa600;
  --cmh-accent-2: #ffb733;
  --cmh-ink: #1b1203;
  --cmh-accent-fg: #ffa600;
  --cmh-accent-soft: rgba(255, 166, 0, .12);
  --cmh-tex: #4aa3ff;
  --cmh-add: #a78bfa;
  --cmh-map: #6fb26f;
  --cmh-ski: #ff6b9d;
  --cmh-tex-fg: #4aa3ff;
  --cmh-add-fg: #a78bfa;
  --cmh-map-fg: #6fb26f;
  --cmh-ski-fg: #ff6b9d;
  --cmh-shadow: 0 18px 34px -20px rgba(0, 0, 0, .85);
  color: var(--cmh-tx);
  font-size: 15px;
  line-height: 24px;
}

html[data-theme="light"] .cmh {
  --cmh-line: rgba(30, 20, 9, .10);
  --cmh-line2: rgba(30, 20, 9, .20);
  --cmh-ctl: #8c7a63;
  --cmh-tx2: #4a3520;
  --cmh-tx3: #7a6245;
  --cmh-accent-fg: #a85400;
  --cmh-accent-soft: rgba(255, 166, 0, .18);
  --cmh-tex-fg: #1565c0;
  --cmh-add-fg: #7c3aed;
  --cmh-map-fg: #2d6a30;
  --cmh-ski-fg: #c2185b;
  --cmh-elev: #f1e9dc;
  --cmh-shadow: 0 16px 30px -18px rgba(70, 45, 10, .35);
}

.cmh *, .cmh *::before, .cmh *::after { box-sizing: border-box; }
.cmh :focus-visible { outline: 2px solid var(--cmh-accent-fg); outline-offset: 2px; }

.cmh-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 32px;
}

/* Esquinas escalonadas de 2 px: solo en piezas que no se pulsan. */
.cmh-step {
  clip-path: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px));
}

.cmh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/16px var(--font-display, Outfit), sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cmh-accent-fg);
}

.cmh-eyebrow::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }

.cmh-h2 { margin: 0; font: 700 28px/36px var(--font-display, Outfit), sans-serif; letter-spacing: -.01em; color: var(--cmh-tx); }
.cmh-h4 { display: block; font: 600 17px/24px var(--font-display, Outfit), sans-serif; color: var(--cmh-tx); }
.cmh-lead { margin: 10px 0 0; font-size: 17px; line-height: 28px; color: var(--cmh-tx2); text-wrap: pretty; }
.cmh-muted { font-size: 13px; line-height: 20px; color: var(--cmh-tx3); }
.cmh-empty { margin: 0; padding: 24px; border-radius: 10px; background: var(--cmh-surface); color: var(--cmh-tx2); }

.cmh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--cmh-accent-fg);
  text-decoration: none;
}

.cmh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: 600 14px/1 var(--font-body, Inter), sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s cubic-bezier(.2, 0, 0, 1);
}

.cmh-btn:active { transform: translateY(1px); }
.cmh-btn--lg { height: 48px; padding: 0 20px; font-size: 15px; }
.cmh-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.cmh-btn--block { width: 100%; }
.cmh-btn--primary { background: var(--cmh-accent); color: var(--cmh-ink); }
.cmh-btn--secondary { background: transparent; color: var(--cmh-tx); border-color: var(--cmh-ctl); }

.cmh-iconbtn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cmh-tx2);
  cursor: pointer;
}

.cmh-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--cmh-accent-soft);
  color: var(--cmh-accent-fg);
}

.cmh-ico--lg { width: 48px; height: 48px; }
.cmh-ico--tex { background: color-mix(in srgb, var(--cmh-tex) 16%, transparent); color: var(--cmh-tex-fg); }

/* ── Héroe ─────────────────────────────────────────────────────────────── */
.cmh-hero {
  position: relative;
  color: #f3f2f7;
  background: #16131f url(../img/community/hero-panorama.png) center bottom / cover no-repeat;
  image-rendering: pixelated;
}

.cmh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 16, 26, .95) 0%, rgba(18, 16, 26, .9) 44%, rgba(18, 16, 26, .55) 72%, rgba(18, 16, 26, .3) 100%);
}

.cmh-hero__in {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 420px;
  padding-block: 40px 64px;
  image-rendering: auto;
}

.cmh-hero--compact .cmh-hero__in { min-height: 360px; }
.cmh-hero__in--split { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; }
.cmh-hero__text { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.cmh-hero__kicker { display: flex; align-items: center; gap: 12px; margin: 0; }
.cmh-hero .cmh-eyebrow { color: #ffb547; }

.cmh-beta {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  background: #ffa600;
  color: #1b1203;
  font: 700 12px/1 var(--font-display, Outfit), sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* .cmh-hero delante: el héroe es oscuro en ambos temas y main.css tiene
   [data-theme="light"] h1 (0-1-1), que con una sola clase ganaría. */
.cmh-hero .cmh-hero__title {
  margin: 0;
  font: 700 48px/56px var(--font-display, Outfit), sans-serif;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}

.cmh-hero__lead { margin: 0; max-width: 600px; font-size: 17px; line-height: 28px; color: #cfcdd9; }
.cmh-hero__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 4px 0 0; }
.cmh-hero .cmh-link { color: #ffb547; }
.cmh-hero__feat { min-width: 0; }

.cmh-horizon { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 16px; display: block; fill: var(--cmh-bg); }

/* ── Secciones ─────────────────────────────────────────────────────────── */
.cmh-sec { padding-block: 48px 64px; }
.cmh-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.cmh-head__desc { margin: 0; color: var(--cmh-tx2); }

/* ── Tarjeta ──────────────────────────────────────────────────────────── */
.cmh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.cmh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cmh-card);
  border: 1px solid var(--cmh-line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, transform .2s cubic-bezier(.2, 0, 0, 1), box-shadow .2s;
}

.cmh-card:focus-within { outline: 2px solid var(--cmh-accent-fg); outline-offset: 2px; }
.cmh-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cmh-elev); }
.cmh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmh-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cmh-tx3); }
.cmh-card__tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }

.cmh-chipcat,
.cmh-flag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font: 600 12px/1 var(--font-body, Inter), sans-serif;
}

.cmh-chipcat { background: #e2e8f0; color: var(--cmh-ink); }
.cmh-chipcat.cmh-cat--texturas { background: var(--cmh-tex); }
.cmh-chipcat.cmh-cat--addons { background: var(--cmh-add); }
.cmh-chipcat.cmh-cat--mundos { background: var(--cmh-map); }
.cmh-chipcat.cmh-cat--skins { background: var(--cmh-ski); }
.cmh-flag { background: rgba(20, 19, 25, .88); color: #f3f2f7; }

.cmh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; flex: 1; }

.cmh-card__title {
  margin: 0;
  min-height: 48px;
  font: 600 17px/24px var(--font-display, Outfit), sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmh-card__link { color: var(--cmh-tx); text-decoration: none; }
.cmh-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cmh-card__link:focus-visible { outline: none; }

.cmh-card__by {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--cmh-tx3);
  white-space: nowrap;
}

.cmh-card__by img { width: 20px; height: 20px; border-radius: 4px; flex: none; }
.cmh-card__by a { color: var(--cmh-tx2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.cmh-card__excerpt { margin: 0; color: var(--cmh-tx2); }
.cmh-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

.cmh-card__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--cmh-tx3);
  font-variant-numeric: tabular-nums;
}

.cmh-card__stats > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cmh-card__rt { color: var(--cmh-tx2); }
.cmh-card__rt svg { color: var(--cmh-accent); }
.cmh-card__votes { color: var(--cmh-tx3); }

.cmh-fav {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cmh-tx3);
  font: 600 13px/1 var(--font-body, Inter), sans-serif;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color .2s, background-color .2s;
}

.cmh-fav svg { fill: none; }
.cmh-fav.is-fav { color: var(--cmh-accent-fg); }
.cmh-fav.is-fav svg { fill: currentColor; animation: cmh-pop .32s cubic-bezier(.2, 0, 0, 1); }
.cmh-fav.is-loading { opacity: .6; }

@keyframes cmh-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Variante grande (fase 0) */
.cmh-card--big { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-radius: 16px; }
.cmh-card--big .cmh-card__media { aspect-ratio: auto; min-height: 320px; }
.cmh-card--big .cmh-card__media img { position: absolute; inset: 0; }
.cmh-card--big .cmh-card__body { gap: 14px; padding: 24px; }
.cmh-card--big .cmh-card__title { min-height: 0; font: 700 28px/36px var(--font-display, Outfit), sans-serif; }
.cmh-card--big .cmh-card__by { font-size: 14px; }
.cmh-card--big .cmh-card__row { margin-top: 0; }
.cmh-card__cta { position: relative; z-index: 2; align-self: flex-start; margin-top: auto; }

/* ── Fase 0: primeros proyectos ───────────────────────────────────────── */
.cmh-first__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.cmh-first__main { display: flex; }
.cmh-first__main > .cmh-card { flex: 1; }
.cmh-first__aside { display: flex; flex-direction: column; gap: 24px; }
.cmh-first__more { margin-top: 24px; }

.cmh-invite,
.cmh-guide {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 10px;
}

.cmh-invite { border: 1px dashed var(--cmh-ctl); color: inherit; text-decoration: none; transition: border-color .2s, background-color .2s; }
.cmh-invite .cmh-muted { font-size: 14px; color: var(--cmh-tx2); }
.cmh-invite__go { margin-top: auto; }
.cmh-guide { background: var(--cmh-surface); border: 1px solid var(--cmh-line); }
.cmh-guide .cmh-link { margin-top: auto; }

.cmh-steps-mini { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--cmh-tx2); }
.cmh-steps-mini li { display: flex; gap: 10px; }

.cmh-steps-mini b {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--cmh-elev);
  color: var(--cmh-tx);
  font: 700 12px/1 var(--font-display, Outfit), sans-serif;
}

/* ── Categorías ───────────────────────────────────────────────────────── */
.cmh-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 28px; }

.cmh-cat {
  --cc: var(--cmh-accent-fg);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--cmh-surface);
  border: 1px solid var(--cmh-line);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}

.cmh-cat--texturas { --cc: var(--cmh-tex-fg); }
.cmh-cat--addons { --cc: var(--cmh-add-fg); }
.cmh-cat--mundos { --cc: var(--cmh-map-fg); }
.cmh-cat--skins { --cc: var(--cmh-ski-fg); }
.cmh-cat__ico { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--cc); background: color-mix(in srgb, var(--cc) 16%, transparent); }
.cmh-cat__txt { display: flex; flex-direction: column; min-width: 0; }
.cmh-cat__name { font: 600 17px/24px var(--font-display, Outfit), sans-serif; color: var(--cmh-tx); }
.cmh-cat__meta { font-size: 13px; line-height: 20px; color: var(--cmh-tx3); }
.cmh-cat__go { margin-left: auto; flex: none; color: var(--cmh-tx3); transition: transform .2s cubic-bezier(.2, 0, 0, 1), color .2s; }

/* ── Zona principal: feed + lateral ───────────────────────────────────── */
.cmh-main { display: grid; gap: 24px; align-items: start; padding-block: 48px 64px; }
.cmh-main--side { grid-template-columns: minmax(0, 1fr) 302px; }
.cmh-feed { min-width: 0; }
.cmh-feedhead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; border-bottom: 1px solid var(--cmh-line); }
.cmh-feedhead .cmh-h2 { padding-bottom: 8px; }
.cmh-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; }

.cmh-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  color: var(--cmh-tx2);
  font: 500 14px/1 var(--font-body, Inter), sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.cmh-tab svg { color: var(--cmh-tx3); }
.cmh-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cmh-accent-fg); transform: scaleX(0); transition: transform .2s cubic-bezier(.2, 0, 0, 1); }
.cmh-tab[aria-current="page"] { color: var(--cmh-tx); font-weight: 600; }
.cmh-tab[aria-current="page"] svg { color: var(--cmh-accent-fg); }
.cmh-tab[aria-current="page"]::after { transform: scaleX(1); }

.cmh-join {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 64px 20px 20px;
  border-radius: 10px;
  background: var(--cmh-surface);
  border: 1px solid var(--cmh-line);
}

.cmh-join__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cmh-join__txt .cmh-muted { font-size: 14px; color: var(--cmh-tx2); }
.cmh-join__x { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); }

.cmh-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.cmh-more .cmh-muted { margin: 0; }

/* Botón que añade initLoadMore (community.js) tras el grid. */
.cmh .cmm-more { display: flex; justify-content: center; margin-top: 28px; }

.cmh .cmm-more__btn {
  height: 48px;
  min-width: 260px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid var(--cmh-ctl);
  background: transparent;
  color: var(--cmh-tx);
  font: 600 15px/1 var(--font-body, Inter), sans-serif;
  cursor: pointer;
}

.cmh .cmm-more + .cmh-more { margin-top: 10px; }
.cmh-ad { margin-top: 32px; }

/* Lateral */
.cmh-side { display: flex; flex-direction: column; gap: 20px; }
.cmh-module { padding: 20px; border-radius: 10px; background: var(--cmh-surface); border: 1px solid var(--cmh-line); }
.cmh-module__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cmh-module__head h3 { margin: 0; font: 600 17px/24px var(--font-display, Outfit), sans-serif; color: var(--cmh-tx); }
.cmh-module__big { margin: 8px 0 4px; font: 600 20px/28px var(--font-display, Outfit), sans-serif; color: var(--cmh-tx); }
.cmh-module .cmh-muted { margin: 0; font-size: 14px; color: var(--cmh-tx2); }
.cmh-module__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 14px; font-size: 13px; line-height: 20px; color: var(--cmh-tx3); }
.cmh-module > .cmh-link { margin-top: 12px; }

.cmh-xp { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: var(--cmh-accent-soft); color: var(--cmh-accent-fg); font: 700 12px/1 var(--font-display, Outfit), sans-serif; }
.cmh-prog { position: relative; display: block; height: 10px; margin-top: 12px; overflow: hidden; background: var(--cmh-elev); }
.cmh-prog i { position: absolute; inset: 0; background: var(--cmh-accent); transform-origin: left; }

.cmh-creators { margin: 0; padding: 0; list-style: none; }
.cmh-creator { display: grid; grid-template-columns: 24px 32px minmax(0, 1fr) 36px; align-items: center; gap: 10px; padding: 8px 0; }
.cmh-creator + .cmh-creator { border-top: 1px solid var(--cmh-line); }
.cmh-creator__rk { font: 700 15px/1 var(--font-display, Outfit), sans-serif; color: var(--cmh-tx3); text-align: center; }
.cmh-creator__rk.is-top { color: var(--cmh-accent-fg); }
.cmh-creator__av { width: 32px; height: 32px; border-radius: 6px; }
.cmh-creator__info { display: flex; flex-direction: column; min-width: 0; }
.cmh-creator__name { overflow: hidden; color: var(--cmh-tx); font: 600 14px/20px var(--font-body, Inter), sans-serif; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.cmh-creator__sub { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--cmh-tx3); }

.cmh-lvl { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: 4px; background: color-mix(in srgb, var(--cmh-tx) 9%, transparent); color: var(--cmh-tx2); font: 600 12px/1 var(--font-body, Inter), sans-serif; }
.cmh-lvl i { width: 5px; height: 5px; background: var(--cmh-accent-fg); }

.cmh-follow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cmh-ctl);
  border-radius: 6px;
  background: transparent;
  color: var(--cmh-tx2);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}

.cmh-follow__ok { display: none; }
.cmh-follow.is-following { background: var(--cmh-accent-soft); border-color: var(--cmh-accent-fg); color: var(--cmh-accent-fg); }
.cmh-follow.is-following .cmh-follow__add { display: none; }
.cmh-follow.is-following .cmh-follow__ok { display: block; }

.cmh-comments { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.cmh-comments li { display: flex; flex-direction: column; padding: 10px 0; font-size: 13px; line-height: 20px; }
.cmh-comments li + li { border-top: 1px solid var(--cmh-line); }
.cmh-comments a { color: var(--cmh-tx2); text-decoration: none; }
.cmh-comments strong { color: var(--cmh-tx); }

.cmh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cmh-tag { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--cmh-line2); color: var(--cmh-tx2); font-size: 13px; text-decoration: none; transition: border-color .2s, color .2s; }

/* ── Banda «Hazte creador» ────────────────────────────────────────────── */
.cmh-band { background: var(--cmh-surface); border-top: 1px solid var(--cmh-line); }
.cmh-band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; padding-block: 56px; }
.cmh-band__intro .cmh-h2 { margin-top: 10px; }
.cmh-band__gain-t { margin: 24px 0 0; font: 600 15px/22px var(--font-display, Outfit), sans-serif; color: var(--cmh-tx); }
.cmh-gain { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 12px 0 16px; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--cmh-tx2); }
.cmh-gain li { display: flex; align-items: center; gap: 8px; }
.cmh-gain svg { flex: none; color: var(--cmh-accent-fg); }

.cmh-flow { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }

.cmh-flow li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--cmh-bg);
  border: 1px solid var(--cmh-line);
}

.cmh-flow li.is-current { border-color: var(--cmh-accent-fg); }
.cmh-flow li.is-done { opacity: .7; }
.cmh-flow__n { width: 40px; height: 40px; display: grid; place-items: center; background: var(--cmh-elev); color: var(--cmh-tx); font: 700 17px/1 var(--font-display, Outfit), sans-serif; }
.cmh-flow li.is-current .cmh-flow__n { background: var(--cmh-accent); color: var(--cmh-ink); }
.cmh-flow strong { display: block; font: 600 17px/24px var(--font-display, Outfit), sans-serif; color: var(--cmh-tx); }
.cmh-flow li span > span { display: block; font-size: 14px; line-height: 20px; color: var(--cmh-tx2); }

.cmh-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.cmh-note { margin: 0; color: var(--cmh-tx2); }

/* ── Hover solo con ratón ─────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .cmh-card:hover { transform: translateY(-2px); border-color: var(--cmh-line2); box-shadow: var(--cmh-shadow); }
  .cmh-card__by a:hover { color: var(--cmh-tx); text-decoration: underline; text-underline-offset: 3px; }
  .cmh-fav:hover { color: var(--cmh-tx); background: color-mix(in srgb, var(--cmh-tx) 8%, transparent); }
  .cmh-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .cmh-btn--primary:hover { background: var(--cmh-accent-2); }
  .cmh-btn--secondary:hover,
  .cmh .cmm-more__btn:hover { border-color: var(--cmh-tx2); background: color-mix(in srgb, var(--cmh-tx) 6%, transparent); }
  .cmh-iconbtn:hover { color: var(--cmh-tx); background: color-mix(in srgb, var(--cmh-tx) 8%, transparent); }
  .cmh-invite:hover { border-color: var(--cmh-accent-fg); background: var(--cmh-accent-soft); }
  .cmh-cat:hover { border-color: color-mix(in srgb, var(--cc) 55%, transparent); background: color-mix(in srgb, var(--cc) 7%, var(--cmh-surface)); }
  .cmh-cat:hover .cmh-cat__go { transform: translateX(3px); color: var(--cmh-tx); }
  .cmh-tab:hover { color: var(--cmh-tx); }
  .cmh-follow:hover { color: var(--cmh-tx); border-color: var(--cmh-tx2); }
  .cmh-tag:hover { color: var(--cmh-tx); border-color: var(--cmh-tx2); }
  .cmh-creator__name:hover,
  .cmh-comments a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .cmh-main--side { grid-template-columns: minmax(0, 1fr); }
  .cmh-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .cmh-hero__in--split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cmh-hero__feat { max-width: 640px; }
}

@media (max-width: 900px) {
  .cmh-wrap { padding-inline: 24px; }
  .cmh-hero__title { font-size: 36px; line-height: 44px; }
  .cmh-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cmh-first__grid { grid-template-columns: minmax(0, 1fr); }
  .cmh-first__aside { flex-direction: row; }
  .cmh-card--big { grid-template-columns: minmax(0, 1fr); }
  .cmh-card--big .cmh-card__media { aspect-ratio: 16 / 9; min-height: 0; }
  .cmh-band__in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px; }
}

@media (max-width: 600px) {
  .cmh-wrap { padding-inline: 16px; }
  .cmh-hero__in { min-height: 0; padding-block: 24px 40px; }
  .cmh-hero--compact .cmh-hero__in { min-height: 0; }
  .cmh-hero__title { font-size: 28px; line-height: 36px; }
  .cmh-hero__lead { font-size: 15px; line-height: 24px; }
  .cmh-h2 { font-size: 22px; line-height: 28px; }
  .cmh-sec { padding-block: 28px 40px; }
  .cmh-main { padding-block: 28px 40px; }
  .cmh-cats { gap: 10px; padding-top: 20px; }
  .cmh-cat { min-height: 64px; gap: 10px; padding: 10px 12px; }
  .cmh-cat__ico { width: 36px; height: 36px; }
  .cmh-cat__go { display: none; }
  .cmh-first__aside { flex-direction: column; }
  .cmh-card--big .cmh-card__body { padding: 16px; }
  .cmh-card--big .cmh-card__title { font-size: 22px; line-height: 28px; }
  .cmh-join { flex-wrap: wrap; padding: 16px 52px 16px 16px; }
  .cmh-join .cmh-btn { width: 100%; }
  .cmh-join__x { top: 8px; transform: none; }
  .cmh-gain { grid-template-columns: minmax(0, 1fr); }
  .cmh-fav { min-height: 44px; }
}

/* ── Vista de miembro: franja «Hola de nuevo» (sustituye al héroe) ────── */
.cmh-member { border-bottom: 1px solid var(--cmh-line); background: linear-gradient(180deg, var(--cmh-surface), var(--cmh-bg)); }
.cmh-member__in { display: flex; align-items: center; gap: 16px 32px; min-height: 95px; padding-block: 14px; } /* + 1 px de borde = 96 */
.cmh-member__hi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmh-member__hi .cmh-muted { margin: 0; }
.cmh-member__title { margin: 0; font: 700 24px/32px var(--font-display, Outfit), sans-serif; letter-spacing: -.01em; color: var(--cmh-tx); overflow-wrap: anywhere; }
.cmh-member__news { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-width: 0; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--cmh-tx2); }
.cmh-member__news li { display: inline-flex; align-items: center; gap: 8px; }
.cmh-member__news a { display: inline-flex; align-items: center; gap: 8px; color: var(--cmh-tx); text-decoration: underline; text-decoration-color: var(--cmh-line2); text-underline-offset: 4px; }
.cmh-newsq { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--cmh-accent); }
.cmh-member__lvl { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; padding: 8px 12px; border: 1px solid var(--cmh-line); border-radius: 10px; background: var(--cmh-card); color: var(--cmh-tx); text-decoration: none; }
.cmh-member__badge { display: grid; place-items: center; width: 36px; height: 36px; background: var(--cmh-accent); color: var(--cmh-ink); font: 700 16px/1 var(--font-display, Outfit), sans-serif; }
.cmh-member__lvltxt { display: flex; flex-direction: column; gap: 2px; min-width: 150px; font-size: 14px; line-height: 20px; }
.cmh-member__lvltxt .cmh-muted { font-size: 12px; line-height: 16px; }
.cmh-member__bar { display: block; height: 4px; border-radius: 2px; background: var(--cmh-line2); overflow: hidden; }
.cmh-member__bar span { display: block; height: 100%; background: var(--cmh-accent); }

.cmh-tab__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--cmh-accent); color: var(--cmh-ink); font: 700 12px/1 var(--font-body, Inter), sans-serif; }
.cmh-card__by .cmh-newsq { margin-right: -2px; }

@media (hover: hover) and (pointer: fine) {
  .cmh-member__news a:hover { text-decoration-color: currentColor; }
  .cmh-member__lvl:hover { border-color: var(--cmh-line2); }
}

@media (max-width: 900px) {
  .cmh-member__in { flex-wrap: wrap; gap: 10px 24px; }
  .cmh-member__news { flex-basis: 100%; order: 2; }
  .cmh-member__lvl { order: 3; }
}

@media (max-width: 600px) {
  .cmh-member__title { font-size: 20px; line-height: 28px; }
  .cmh-member__lvl { margin-left: 0; padding: 6px 10px; }
}

/* ── Página destino (listing-v2): archivo de categoría o etiqueta,
   búsqueda y todos los proyectos ───────────────────────────────────────── */
.cmh-dest { --cf: var(--cmh-accent); padding-bottom: 64px; }
.cmh-dest--category:has(.cmh-cat--texturas) { --cf: var(--cmh-tex); }
.cmh-dest--category:has(.cmh-cat--addons) { --cf: var(--cmh-add); }
.cmh-dest--category:has(.cmh-cat--mundos) { --cf: var(--cmh-map); }
.cmh-dest--category:has(.cmh-cat--skins) { --cf: var(--cmh-ski); }

.cmh-dest__head {
  border-bottom: 1px solid var(--cmh-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cf) 10%, var(--cmh-bg)), var(--cmh-bg));
}
.cmh-dest__head .cmh-wrap { display: flex; flex-direction: column; gap: 12px; padding-block: 28px 24px; }

.cmh-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 20px; color: var(--cmh-tx3); }
.cmh-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--cmh-tx3); }
.cmh-crumbs a { color: var(--cmh-tx2); text-decoration: underline; text-underline-offset: 3px; }
.cmh-crumbs [aria-current] { color: var(--cmh-tx); }

.cmh-dest__title { display: flex; align-items: center; gap: 14px; margin: 0; font: 700 44px/52px var(--font-display, Outfit), sans-serif; letter-spacing: -.02em; color: var(--cmh-tx); overflow-wrap: anywhere; }
.cmh-dest__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; background: color-mix(in srgb, var(--cc, var(--cmh-accent-fg)) 16%, transparent); color: var(--cc, var(--cmh-accent-fg)); }
.cmh-dest__desc { margin: 0; max-width: 720px; font-size: 16px; line-height: 26px; color: var(--cmh-tx2); }
.cmh-dest__count { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--cmh-tx2); }

.cmh-dest__body { padding-top: 28px; }
.cmh-dest__body .cmh-feedhead { justify-content: flex-start; }

.cmh-pager { display: flex; align-items: center; gap: 16px; }
.cmh-pager a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--cmh-ctl); border-radius: 8px; color: var(--cmh-tx); font-weight: 600; font-size: 14px; text-decoration: none; }

.cmh-h3 { margin: 0; font: 600 22px/30px var(--font-display, Outfit), sans-serif; color: var(--cmh-tx); }

.cmh-dest__empty { display: flex; flex-direction: column; gap: 16px; max-width: 760px; padding: 32px; border: 1px solid var(--cmh-line); border-radius: 16px; background: var(--cmh-surface); }
.cmh-dest__lead { margin: 0; font-size: 15px; line-height: 24px; color: var(--cmh-tx2); }
.cmh-dest__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cmh-dest__cat { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--cmh-line2); border-radius: 8px; color: var(--cmh-tx); font-weight: 600; font-size: 14px; text-decoration: none; }
.cmh-dest__cat svg { color: var(--cc); }
.cmh-dest__tags { display: flex; flex-direction: column; gap: 8px; }
.cmh-dest__publish { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--cmh-line); color: var(--cmh-tx2); }

/* Perfil de creador: solo la rejilla usa la tarjeta v2. */
.cmh-profile { margin-block: 8px 24px; }

@media (hover: hover) and (pointer: fine) {
  .cmh-dest__cat:hover { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 8%, transparent); }
  .cmh-pager a:hover { border-color: var(--cmh-tx2); }
}

@media (max-width: 900px) {
  .cmh-dest__title { font-size: 34px; line-height: 42px; }
  .cmh-dest__ico { width: 40px; height: 40px; }
}

@media (max-width: 600px) {
  .cmh-dest__head .cmh-wrap { padding-block: 20px 18px; }
  .cmh-dest__title { font-size: 28px; line-height: 36px; gap: 10px; }
  .cmh-dest__empty { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmh *, .cmh *::before, .cmh *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
