/* DobleCorchea — Comunidad (escenario de tomas, retos y preguntas) */
.community [hidden] { display: none !important; }
.cm-main { width: min(920px, 100%); margin: 0 auto; padding: 0 16px 48px; }
.cm-hero { display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: end; padding: 44px 0 26px; }
.cm-hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.07; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.cm-hero .lead { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0; }
.cm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cm-join { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(230, 25, 126, .45); background: var(--grad-soft); margin-bottom: 18px; }
.cm-join > div:first-child { display: grid; gap: 4px; max-width: 60ch; }
.cm-join-cta { display: flex; gap: 8px; }

.cm-challenges { margin-bottom: 8px; }
.cm-challenges .section-title { margin-top: 6px; }
.cm-ch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cm-ch { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; border-top: 3px solid var(--yellow); }
.cm-ch:hover { border-color: #57575e; }
.cm-ch .cm-kind { justify-self: start; }

.cm-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0 14px; position: sticky; top: 62px; z-index: 5;
  padding: 10px 0; background: rgba(30, 30, 32, .92); backdrop-filter: blur(10px); }
.cm-tabs, .cm-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cm-tools input[type="search"] { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 0 12px; width: 180px; }
.cm-tools select { height: 38px; }

.cm-feed { display: grid; gap: 14px; }
.cm-card, .cm-thread { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.cm-card { cursor: pointer; transition: border-color .15s; }
.cm-card:hover { border-color: #57575e; }
.cm-card.pinned { border-color: rgba(247, 148, 29, .55); }
.cm-card h3 { margin: 10px 0 6px; font-size: 17px; line-height: 1.3; }
.cm-card h3 a { color: var(--text); text-decoration: none; }
.cm-card h3 .ic { width: 16px; height: 16px; vertical-align: -2px; }
.cm-thread h1 { font-size: clamp(22px, 3vw, 30px); margin: 12px 0; line-height: 1.2; }
.is-hidden { opacity: .55; border-style: dashed; }

.cm-card-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cm-kind { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--panel-3); }
.cm-kind.k-toma { background: rgba(230, 25, 126, .18); color: #ff8cc4; }
.cm-kind.k-reto { background: rgba(252, 194, 27, .16); color: var(--yellow); }
.cm-kind.k-pregunta { background: rgba(62, 207, 142, .15); color: var(--ok); }
.cm-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.cm-flag .ic { width: 12px; height: 12px; }
.cm-flag.star { color: var(--yellow); border-color: rgba(252, 194, 27, .4); }
.cm-flag.ok { color: var(--ok); border-color: rgba(62, 207, 142, .4); }
.cm-flag.bad { color: #ffb3bb; border-color: rgba(255, 77, 94, .4); }

.cm-author { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cm-author > span:last-child { display: grid; line-height: 1.25; }
.cm-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--grad); color: #19191b; }
.cm-role { width: fit-content; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--panel-3); margin-left: 4px; }
.cm-role.staff { background: var(--grad); color: #19191b; }
.cm-body { margin: 8px 0; line-height: 1.55; overflow-wrap: anywhere; }
.cm-ts { background: rgba(247, 148, 29, .16); color: var(--orange); border: 0; border-radius: 6px; padding: 0 5px; font: inherit; font-weight: 700; cursor: pointer; }

.cm-media { margin: 10px 0; display: grid; gap: 8px; }
.cm-media.multi { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cm-m { border-radius: 12px; overflow: hidden; background: #111; min-height: 54px; display: grid; place-items: center; }
.cm-m video, .cm-m img { width: 100%; max-height: 520px; object-fit: contain; display: block; background: #000; }
.cm-m audio { width: 100%; }
.cm-m-audio { background: var(--bg-2); padding: 8px; }
.cm-m-video { aspect-ratio: 16 / 9; }
.cm-m-wait { width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); }
.cm-play { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--grad); color: #19191b; font-weight: 700; cursor: pointer; }

.cm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cm-clap { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; cursor: pointer; }
.cm-clap.on { border-color: var(--orange); background: rgba(247, 148, 29, .16); }
.cm-clap:disabled { cursor: default; opacity: .7; }
.cm-replies { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; }
.cm-replies .ic { width: 16px; height: 16px; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cm-actions .linkish { font-size: 12.5px; }

.cm-locked { border-style: dashed; background: linear-gradient(135deg, var(--panel), var(--bg-2)); }
.cm-back { display: inline-block; margin: 22px 0 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.cm-cta-box { margin-top: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(230, 25, 126, .45); background: var(--grad-soft); }
.cm-cta-box h3 { margin: 0 0 6px; }
.cm-cta-box.small { padding: 12px 14px; }
.cm-cta-box.small p { margin: 0 0 8px; }

.cm-replies-box { margin-top: 8px; }
.cm-reply-list { display: grid; gap: 10px; margin-top: 14px; }
.cm-reply { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.cm-reply .cm-author { margin-top: 0; }
.cm-reply.featured { border-color: rgba(252, 194, 27, .5); }
.cm-locked-reply { display: flex; align-items: center; gap: 8px; border-style: dashed; }

.cm-composer { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.cm-composer textarea { width: 100%; resize: vertical; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 10px; font: inherit; color: var(--text); }
.cm-composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-composer-foot .ic { width: 14px; height: 14px; vertical-align: -2px; }
.cm-attach { display: grid; gap: 8px; }
.cm-attach-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-attach-list:empty { display: none; }
.cm-attach-list .icon-btn { width: 22px; height: 22px; }
.cm-attach-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-attach-btns label.btn { cursor: pointer; }
.cm-seg.three { grid-template-columns: repeat(3, 1fr); }
.cm-more { display: flex; justify-content: center; margin-top: 18px; }

@media (max-width: 760px) {
  .cm-hero { grid-template-columns: 1fr; padding-top: 28px; }
  .cm-toolbar { position: static; }
  .cm-tools { width: 100%; }
  .cm-tools input[type="search"] { flex: 1; width: auto; }
  .cm-card, .cm-thread { padding: 14px; }
}
