/*!
 * club_market — Mercado y oportunidades. Usa los tokens --club-* de club_core.
 * Prefijo .cm- para no chocar con otros módulos.
 */

/* ------------------------------------------------------------ utilidades */
.cm-muted { color: var(--club-text-muted); }
.cm-small { font-size: var(--club-fs-sm); }
.cm-opt { font-weight: 400; color: var(--club-text-subtle); font-size: var(--club-fs-xs); }
.cm-mb { margin-bottom: var(--club-space-6); }
.cm-inline { display: inline; margin: 0; }
.cm-rowbtns { display: flex; flex-wrap: wrap; gap: var(--club-space-2); align-items: center; }
.cm-link { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; font-size: var(--club-fs-sm); color: var(--club-link); text-decoration: none; }
.cm-link:hover { text-decoration: underline; }
.cm-link .club-icon { width: 1em; height: 1em; }
.cm-h2 { font-size: var(--club-fs-lg); margin: 0 0 var(--club-space-4); color: var(--club-heading); letter-spacing: -.01em; }
.cm-h3 { font-size: var(--club-fs-base); margin: var(--club-space-5) 0 var(--club-space-3); color: var(--club-heading); }
.cm-side .cm-h3, .cm-sidecard > .cm-h3:first-child { margin-top: 0; }
.cm-h4 { font-size: var(--club-fs-sm); margin: var(--club-space-5) 0 var(--club-space-2); color: var(--club-heading); }
.cm-prose { color: var(--club-text); line-height: 1.65; overflow-wrap: anywhere; }
.cm-prose p { margin: 0 0 var(--club-space-3); }
.cm-prose p:last-child { margin-bottom: 0; }
.cm-tabcount { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--club-gray-100); color: var(--club-gray-700); font-size: 11px; font-weight: 700; }
.club-tabs .is-active .cm-tabcount { background: var(--club-cyan-50); color: var(--club-primary); }
.cm-resultcount { font-size: var(--club-fs-sm); color: var(--club-text-muted); margin: 0 0 var(--club-space-3); }

/* etiquetas */
.cm-tag { display: inline-flex; align-items: center; gap: .35em; padding: .22em .6em; border-radius: var(--club-radius-sm); font-size: var(--club-fs-xs); font-weight: 600; background: var(--club-gray-100); color: var(--club-gray-700); white-space: nowrap; }
.cm-tag .club-icon { width: 1.1em; height: 1.1em; }
.cm-tag--gold { background: var(--club-gold-50); color: #6e4f12; border: 1px solid #e6cf98; }
.cm-tag--gold .club-icon { color: var(--club-gold); }
.cm-tag--info { background: var(--club-info-bg); color: var(--club-cyan-800); }
.cm-tag--warn { background: var(--club-warning-bg); color: var(--club-warning); }
.cm-tag--xs { font-size: 10.5px; padding: .1em .45em; }

/* sello de garantía de la operación */
.cm-gtee { display: inline-flex; align-items: center; gap: .4em; padding: .38em .75em .38em .55em; border-radius: var(--club-radius-pill); font: 700 var(--club-fs-xs)/1.1 var(--club-font); border: 1px solid; white-space: nowrap; vertical-align: middle; }
.cm-gtee .club-icon { width: 1.3em; height: 1.3em; flex: none; }
.cm-gtee--yes { background: linear-gradient(180deg, #fff8e8, var(--club-gold-50)); color: #6e4f12; border-color: #e6cf98; }
.cm-gtee--yes .club-icon { color: var(--club-gold); }
.cm-gtee--no { background: #fff; color: var(--club-gray-700); border-color: var(--club-gray-300); }
.cm-gtee--no .club-icon { color: var(--club-gray-500); }
.cm-gtee--xs { font-size: 10.5px; padding: .25em .55em .25em .4em; }
.cm-gtee--sm { font-size: 11px; }
.cm-gtee--lg { font-size: var(--club-fs-sm); padding: .55em 1em .55em .75em; }

/* estrellas */
.cm-stars { display: inline-flex; align-items: center; gap: 1px; font-size: var(--club-fs-sm); color: var(--club-text-muted); white-space: nowrap; }
.cm-star { color: var(--club-gray-300); font-size: 1.05em; line-height: 1; }
.cm-star.is-on { color: var(--club-gold); }
.cm-stars__n { margin-left: .3em; font-weight: 600; color: var(--club-heading); font-variant-numeric: tabular-nums; }
.cm-stars__n small { font-weight: 400; color: var(--club-text-muted); }
.cm-stars__none { font-size: var(--club-fs-xs); color: var(--club-text-subtle); }
.cm-rep { margin-top: var(--club-space-2); }

/* ficha compacta de suscriptor */
.cm-chip { display: inline-flex; align-items: center; gap: var(--club-space-3); min-width: 0; max-width: 100%; }
.cm-chip__body { display: grid; gap: 3px; min-width: 0; }
.cm-chip__name { font-weight: 600; color: var(--club-heading); font-size: var(--club-fs-sm); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-chip__meta { display: flex; flex-wrap: wrap; gap: var(--club-space-2); align-items: center; }
.cm-chip__city { font-size: var(--club-fs-xs); color: var(--club-text-muted); }
.cm-chip--na { color: var(--club-text-muted); font-size: var(--club-fs-sm); }

/* ------------------------------------------------------------ filtros */
.cm-filters { display: flex; flex-wrap: wrap; gap: var(--club-space-3); align-items: center; margin-bottom: var(--club-space-5); }
.cm-filters .club-select { width: auto; min-width: 0; flex: 1 1 210px; max-width: 280px; }
.cm-filters__q { position: relative; flex: 2 1 260px; margin: 0; }
.cm-filters__q .club-input { padding-left: 2.5rem; }
.cm-filters__icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--club-gray-400); pointer-events: none; }
.cm-filters__check { flex: none; }
.cm-filters--ops { justify-content: space-between; }
@media (max-width: 640px) {
  .cm-filters .club-select { max-width: none; flex-basis: 100%; }
  .cm-filters > .club-btn { width: 100%; }
}
.cm-segnav { display: inline-flex; padding: 3px; background: var(--club-gray-100); border-radius: var(--club-radius-md); gap: 2px; max-width: 100%; overflow-x: auto; }
.cm-segnav a { padding: .5rem .9rem; border-radius: 8px; font-size: var(--club-fs-sm); font-weight: 600; color: var(--club-text-muted); text-decoration: none; white-space: nowrap; }
.cm-segnav a.is-active { background: #fff; color: var(--club-heading); box-shadow: var(--club-shadow-xs); }

/* ------------------------------------------------------------ listado de oportunidades */
.cm-list { list-style: none; margin: 0 0 var(--club-space-6); padding: 0; display: grid; gap: var(--club-space-4); }
.cm-item { background: #fff; border: 1px solid var(--club-border); border-radius: var(--club-radius-lg); box-shadow: var(--club-shadow-xs); transition: box-shadow .2s, border-color .2s; }
.cm-item:hover { box-shadow: var(--club-shadow-md); border-color: var(--club-gray-300); }
.cm-item__link { display: block; padding: var(--club-space-5) var(--club-space-6) var(--club-space-4); color: inherit; text-decoration: none !important; }
.cm-item__link:focus-visible { outline: none; box-shadow: var(--club-ring); border-radius: var(--club-radius-lg); }
.cm-item__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--club-space-2); margin-bottom: var(--club-space-3); }
.cm-item__tags { display: flex; flex-wrap: wrap; gap: var(--club-space-2); align-items: center; }
.cm-item__deadline { display: inline-flex; align-items: center; gap: .35em; font-size: var(--club-fs-xs); color: var(--club-text-muted); font-weight: 600; }
.cm-item__deadline .club-icon { width: 14px; height: 14px; }
.cm-item__deadline.is-soon { color: var(--club-warning); }
.cm-item__title { font-size: var(--club-fs-md); margin: 0 0 var(--club-space-2); color: var(--club-heading); line-height: 1.35; }
.cm-item:hover .cm-item__title { color: var(--club-primary); }
.cm-item__text { margin: 0 0 var(--club-space-4); color: var(--club-text-muted); font-size: var(--club-fs-sm); line-height: 1.55; }
.cm-item__meta { display: flex; flex-wrap: wrap; gap: var(--club-space-2) var(--club-space-6); margin: 0; font-size: var(--club-fs-sm); }
.cm-item__meta div { display: grid; gap: 1px; }
.cm-item__meta dt { font-size: var(--club-fs-xs); color: var(--club-text-subtle); }
.cm-item__meta dd { margin: 0; color: var(--club-heading); font-weight: 500; }
.cm-item__foot { padding: var(--club-space-3) var(--club-space-6); border-top: 1px solid var(--club-gray-100); display: flex; align-items: center; justify-content: space-between; gap: var(--club-space-3); }
.cm-item__mine { display: inline-flex; gap: .4em; align-items: center; font-size: var(--club-fs-sm); color: var(--club-text-muted); }
.cm-item__mine .club-icon { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .cm-item__link { padding: var(--club-space-4); }
  .cm-item__foot { padding: var(--club-space-3) var(--club-space-4); }
}

/* cómo funciona */
.cm-howto { margin-top: var(--club-space-8); padding: var(--club-space-6); border-radius: var(--club-radius-lg); background: var(--club-bg-soft); border: 1px solid var(--club-border); }
.cm-howto__title { font-size: var(--club-fs-base); margin: 0 0 var(--club-space-4); }
.cm-steps { list-style: none; counter-reset: cm; margin: 0; padding: 0; display: grid; gap: var(--club-space-5); }
@media (min-width: 860px) { .cm-steps { grid-template-columns: repeat(3, 1fr); } }
.cm-steps li { counter-increment: cm; display: grid; align-content: start; gap: var(--club-space-1); padding-left: 2.6rem; position: relative; font-size: var(--club-fs-sm); }
.cm-steps li::before { content: counter(cm); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--club-cyan-100); color: var(--club-primary); font-weight: 700; }
.cm-steps strong { color: var(--club-heading); }
.cm-steps span { color: var(--club-text-muted); line-height: 1.5; }
.cm-two { display: grid; gap: var(--club-space-5); }
@media (min-width: 760px) { .cm-two { grid-template-columns: 1fr 1fr; } }
.cm-two__col { display: grid; gap: var(--club-space-3); align-content: start; font-size: var(--club-fs-sm); color: var(--club-text-muted); }
.cm-two__col p { margin: 0; line-height: 1.55; }
.cm-two__col .cm-gtee { justify-self: start; }

/* paginación */
.cm-pager { display: flex; justify-content: center; align-items: center; gap: var(--club-space-3); margin: var(--club-space-6) 0; }
.cm-pager__info { font-size: var(--club-fs-sm); color: var(--club-text-muted); }

/* ------------------------------------------------------------ cabecera de detalle */
.cm-head { margin-bottom: var(--club-space-6); }
.cm-head .club-breadcrumbs { margin-bottom: var(--club-space-3); }
.cm-head__tags { display: flex; flex-wrap: wrap; gap: var(--club-space-2); align-items: center; margin-bottom: var(--club-space-3); }
.cm-head__title { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem); margin: 0 0 var(--club-space-2); color: var(--club-heading); line-height: 1.25; letter-spacing: -.015em; overflow-wrap: anywhere; }
.cm-head__sub { margin: 0; color: var(--club-text-muted); font-size: var(--club-fs-sm); }
.cm-op__folio { font: 700 var(--club-fs-xs)/1 var(--club-font-mono); letter-spacing: .02em; color: var(--club-slate-700); background: var(--club-gray-100); padding: .4em .6em; border-radius: var(--club-radius-sm); }

.cm-split { gap: var(--club-space-6); align-items: start; }
.cm-main, .cm-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--club-space-5); min-width: 0; }
.cm-main > *, .cm-side > * { min-width: 0; }
.cm-proposals { margin-top: var(--club-space-6); }
@media (min-width: 1024px) { .cm-side { position: sticky; top: calc(var(--club-topbar-h, 64px) + 16px); } }
.cm-sidecard { display: grid; gap: var(--club-space-3); }
.cm-sideactions { display: grid; gap: var(--club-space-3); margin-top: var(--club-space-2); }
.cm-sidenote { display: flex; gap: var(--club-space-2); align-items: flex-start; margin: 0; padding: var(--club-space-3); border-radius: var(--club-radius-md); background: var(--club-gray-50); font-size: var(--club-fs-xs); line-height: 1.5; color: var(--club-text-muted); }
.cm-sidenote .club-icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.cm-sidenote--gold { background: var(--club-gold-50); color: #6e4f12; }
.cm-sidenote--gold .club-icon { color: var(--club-gold); }
.cm-sidegtee { margin: var(--club-space-1) 0; }
.cm-withdraw { margin-top: var(--club-space-3); text-align: center; }

.cm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--club-space-4) var(--club-space-5); margin: var(--club-space-5) 0 0; padding: var(--club-space-5) 0 0; border-top: 1px solid var(--club-gray-100); }
.cm-facts div { display: grid; align-content: start; gap: 2px; min-width: 0; }
.cm-facts dt { font-size: var(--club-fs-xs); color: var(--club-text-subtle); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.cm-facts dd { margin: 0; color: var(--club-heading); font-size: var(--club-fs-sm); font-weight: 500; overflow-wrap: anywhere; }
.cm-facts--sm { border-top: 0; padding-top: 0; margin-top: var(--club-space-3); }
.cm-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--club-space-2); margin-bottom: var(--club-space-4); }
.cm-sechead .cm-h2 { margin: 0; display: flex; gap: var(--club-space-2); align-items: center; }
.cm-sechead p { margin: 0; font-size: var(--club-fs-sm); }

/* details */
.cm-details > summary { cursor: pointer; font-weight: 600; font-size: var(--club-fs-sm); color: var(--club-link); list-style: none; display: flex; align-items: center; gap: var(--club-space-2); padding: var(--club-space-2) 0; }
.cm-details > summary::-webkit-details-marker { display: none; }
.cm-details > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: auto; transition: transform .15s; }
.cm-details[open] > summary::after { transform: rotate(-135deg); }
.cm-details > summary .club-icon { width: 18px; height: 18px; }
.cm-details[open] > summary { margin-bottom: var(--club-space-3); }
.cm-details--box { border: 1px solid var(--club-border); border-radius: var(--club-radius-md); padding: 0 var(--club-space-4); }
.cm-details--box[open] { padding-bottom: var(--club-space-4); }
.cm-details--card > summary { font-size: var(--club-fs-base); color: var(--club-heading); padding: 0; }
.cm-details--card[open] > summary { margin-bottom: var(--club-space-4); }

/* ------------------------------------------------------------ comparativo de propuestas */
.cm-compare { overflow-x: auto; border: 1px solid var(--club-border); border-radius: var(--club-radius-md); }
.cm-compare:focus-visible { outline: none; box-shadow: var(--club-ring); }
.cm-compare__table { min-width: 760px; }
.cm-compare__table td { vertical-align: top; }
.cm-compare__table tr.is-short > td:first-child { box-shadow: inset 3px 0 0 var(--club-gold); }
.cm-compare__table tr.is-awarded > td { background: var(--club-success-bg); }
.cm-compare__table .cm-amount { display: block; white-space: nowrap; font-size: var(--club-fs-base); color: var(--club-heading); font-variant-numeric: tabular-nums; }
.cm-compare__table .num small { display: block; }
.cm-compare__table .num .cm-tag { margin-top: 4px; }
.cm-compare__actions { white-space: nowrap; text-align: right; }
.cm-compare .cm-chip__name { white-space: normal; }
.cm-actstack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cm-actstack .club-btn--primary { min-width: 120px; }
@media (max-width: 760px) { .cm-actstack { flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-start; width: 100%; } }
.cm-compare__actions form, .cm-compare__actions .club-btn { margin: 2px 0; }
.cm-compare__detail > td { padding-top: 0 !important; background: transparent !important; }
.club-table tbody tr.cm-compare__detail:hover { background: transparent; }
.cm-compare__table tr:not(.cm-compare__detail) > td { border-bottom: 0; }
@media (max-width: 760px) {
  .cm-compare { border: 0; overflow: visible; }
  .cm-compare__table { min-width: 0; }
  .cm-compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cm-compare__table, .cm-compare__table tbody, .cm-compare__table tr, .cm-compare__table td { display: block; width: 100%; }
  .cm-compare__table tr:not(.cm-compare__detail) { border: 1px solid var(--club-border); border-bottom: 0; border-radius: var(--club-radius-md) var(--club-radius-md) 0 0; padding: var(--club-space-3) var(--club-space-4) 0; margin-top: var(--club-space-4); }
  .cm-compare__table tr.cm-compare__detail { border: 1px solid var(--club-border); border-top: 0; border-radius: 0 0 var(--club-radius-md) var(--club-radius-md); padding: 0 var(--club-space-4) var(--club-space-2); }
  .cm-compare__table td { padding: .45rem 0 !important; border: 0 !important; display: flex; justify-content: space-between; gap: var(--club-space-3); text-align: right; }
  .cm-compare__table td[data-label]::before { content: attr(data-label); font-size: var(--club-fs-xs); font-weight: 600; color: var(--club-text-subtle); text-transform: uppercase; letter-spacing: .05em; text-align: left; flex: none; }
  .cm-compare__table td[data-label="Proponente"] { display: block; text-align: left; padding-bottom: var(--club-space-3) !important; border-bottom: 1px solid var(--club-gray-100) !important; }
  .cm-compare__table td[data-label="Proponente"]::before { display: none; }
  .cm-compare__table .num { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 8px; }
  .cm-compare__table .num::before { margin-right: auto; }
  .cm-compare__table .num small, .cm-compare__table .num .cm-amount { display: inline; }
  .cm-compare__actions { justify-content: flex-end !important; flex-wrap: wrap; padding-top: var(--club-space-3) !important; }
  .cm-compare__detail td { display: block; text-align: left; }
  .cm-compare__table tr.is-short > td:first-child { box-shadow: none; }
  .cm-compare__table tr.is-short:not(.cm-compare__detail) { border-color: #e6cf98; box-shadow: inset 3px 0 0 var(--club-gold); }
}

/* ------------------------------------------------------------ formularios */
.cm-formwrap { max-width: 880px; }
.cm-form { gap: var(--club-space-5); }
.cm-formcard { display: grid; gap: var(--club-space-5); }
.cm-formcard__title { font-size: var(--club-fs-md); margin: 0; color: var(--club-heading); }
.cm-textarea-sm { min-height: 80px; }
.cm-formactions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--club-space-3); align-items: center; padding-top: var(--club-space-2); }
@media (max-width: 640px) {
  .cm-formactions { flex-direction: column-reverse; align-items: stretch; }
  .cm-formactions .club-btn { width: 100%; }
}
.cm-seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.cm-seg__opts { justify-self: start; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--club-gray-100); border-radius: var(--club-radius-md); }
.cm-seg__opt { position: relative; cursor: pointer; }
.cm-seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cm-seg__opt span { display: inline-block; padding: .55rem 1rem; border-radius: 8px; font-size: var(--club-fs-sm); font-weight: 600; color: var(--club-text-muted); }
.cm-seg__opt input:checked + span { background: #fff; color: var(--club-heading); box-shadow: var(--club-shadow-xs); }
.cm-seg__opt input:focus-visible + span { box-shadow: var(--club-ring); }
.cm-choice { display: grid; gap: var(--club-space-3); }
@media (min-width: 760px) { .cm-choice { grid-template-columns: 1fr 1fr; } }
.cm-choice__opt { position: relative; cursor: pointer; display: block; }
.cm-choice__opt input { position: absolute; top: 18px; left: 16px; width: 18px; height: 18px; accent-color: var(--club-primary); }
.cm-choice__box { display: grid; gap: var(--club-space-2); height: 100%; padding: var(--club-space-4) var(--club-space-4) var(--club-space-4) 2.75rem; border: 1px solid var(--club-border-strong); border-radius: var(--club-radius-md); transition: border-color .15s, box-shadow .15s, background .15s; }
.cm-choice__opt input:checked + .cm-choice__box { border-color: var(--club-primary); box-shadow: 0 0 0 1px var(--club-primary); background: var(--club-cyan-50); }
.cm-choice__opt input:focus-visible + .cm-choice__box { box-shadow: var(--club-ring); }
.cm-choice__title { display: flex; align-items: center; gap: var(--club-space-2); font-weight: 700; color: var(--club-heading); font-size: var(--club-fs-sm); }
.cm-choice__title .club-icon { width: 18px; height: 18px; color: var(--club-primary); }
.cm-choice__text { font-size: var(--club-fs-xs); color: var(--club-text-muted); line-height: 1.5; }
.cm-imgprev { display: flex; flex-wrap: wrap; gap: var(--club-space-4); align-items: center; }
.cm-imgprev img { border-radius: var(--club-radius-md); border: 1px solid var(--club-border); object-fit: cover; }
.cm-file { padding: .55rem; }
.cm-check-strong { padding: var(--club-space-3) var(--club-space-4); border-radius: var(--club-radius-md); background: #fff; border: 1px solid var(--club-border-strong); font-weight: 600; color: var(--club-heading); }

/* ------------------------------------------------------------ aviso de garantía */
.cm-notice { display: flex; gap: var(--club-space-4); padding: var(--club-space-5) var(--club-space-6); border-radius: var(--club-radius-lg); border: 1px solid; }
.cm-notice--yes { background: linear-gradient(180deg, #fffaf0, var(--club-gold-50)); border-color: #e6cf98; }
.cm-notice--no { background: #fff8f1; border-color: #f1d49e; }
.cm-notice__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: var(--club-shadow-xs); }
.cm-notice__icon .club-icon { width: 24px; height: 24px; }
.cm-notice--yes .cm-notice__icon { color: var(--club-gold); }
.cm-notice--no .cm-notice__icon { color: var(--club-warning); }
.cm-notice__body { min-width: 0; display: grid; gap: var(--club-space-2); font-size: var(--club-fs-sm); line-height: 1.6; color: var(--club-text); }
.cm-notice__body p { margin: 0; }
.cm-notice__eyebrow { font-size: var(--club-fs-xs) !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cm-notice--yes .cm-notice__eyebrow { color: var(--club-gold-600); }
.cm-notice--no .cm-notice__eyebrow { color: var(--club-warning); }
.cm-notice__title { font-size: var(--club-fs-md); margin: 0; color: var(--club-heading); }
.cm-notice__link a { font-weight: 600; color: var(--club-link); display: inline-flex; gap: .3em; align-items: center; }
.cm-notice__link .club-icon { width: 14px; height: 14px; }
.cm-notice__checks { display: grid; gap: var(--club-space-3); margin-top: var(--club-space-3); }
@media (max-width: 640px) {
  .cm-notice { flex-direction: column; padding: var(--club-space-4); gap: var(--club-space-3); }
}

/* ------------------------------------------------------------ resumen / partes */
.cm-summary { display: grid; gap: var(--club-space-4); margin-bottom: var(--club-space-5); }
.cm-summary .cm-facts { margin-top: 0; }
.cm-parties { display: flex; flex-wrap: wrap; gap: var(--club-space-4); align-items: center; }
.cm-party { min-width: 0; flex: 1 1 200px; }
.cm-party__role { margin: 0 0 var(--club-space-2); font-size: var(--club-fs-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--club-text-subtle); }
.cm-party__arrow { color: var(--club-gray-400); }
.cm-party__arrow .club-icon { width: 22px; height: 22px; }
@media (max-width: 640px) { .cm-party__arrow { display: none; } }
.cm-partylist { display: grid; gap: var(--club-space-4); }
.cm-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--club-space-2); font-size: var(--club-fs-sm); }
.cm-contact li { display: flex; gap: var(--club-space-2); align-items: center; min-width: 0; }
.cm-contact .club-icon { width: 16px; height: 16px; color: var(--club-gray-500); flex: none; }
.cm-contact a { overflow-wrap: anywhere; }
.cm-gcard--yes { border-color: #e6cf98; background: linear-gradient(180deg, #fffdf7, #fff); }
.cm-gcard--yes .cm-gtee, .cm-gcard--no .cm-gtee { justify-self: start; }
.cm-gcard--yes p, .cm-gcard--no p { margin: 0; line-height: 1.55; }

/* ------------------------------------------------------------ mercado: tarjetas */
.cm-cards { list-style: none; margin: 0 0 var(--club-space-6); padding: 0; display: grid; gap: var(--club-space-5); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cm-lcard { display: flex; flex-direction: column; }
.cm-lcard__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none !important; }
.cm-lcard__link:focus-visible { outline: none; box-shadow: var(--club-ring); border-radius: var(--club-radius-lg) var(--club-radius-lg) 0 0; }
.cm-lcard__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--club-cyan-50), var(--club-gray-100)); overflow: hidden; }
.cm-lcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-lcard__media--ph { aspect-ratio: 16 / 6; }
.cm-lcard__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--club-cyan-700); opacity: .55; }
.cm-lcard__ph .club-icon { width: 40px; height: 40px; }
.cm-lcard__kind { position: absolute; left: 10px; top: 10px; padding: .25em .6em; border-radius: var(--club-radius-sm); background: rgba(255,255,255,.94); font-size: 11px; font-weight: 700; color: var(--club-heading); }
.cm-lcard__body { padding: var(--club-space-4) var(--club-space-5); display: grid; gap: var(--club-space-2); flex: 1; align-content: start; }
.cm-lcard__title { font-size: var(--club-fs-base); margin: 0; color: var(--club-heading); line-height: 1.35; }
.cm-lcard:hover .cm-lcard__title { color: var(--club-primary); }
.cm-lcard__sum { margin: 0; font-size: var(--club-fs-sm); color: var(--club-text-muted); line-height: 1.5; }
.cm-lcard__price { margin: var(--club-space-1) 0 0; font-weight: 700; color: var(--club-heading); font-size: var(--club-fs-sm); }
.cm-lcard__benefit { margin: 0; display: flex; gap: .4em; align-items: center; font-size: var(--club-fs-xs); color: var(--club-success); font-weight: 600; }
.cm-lcard__benefit .club-icon { width: 14px; height: 14px; flex: none; }
.cm-lcard__foot { padding: var(--club-space-3) var(--club-space-5); border-top: 1px solid var(--club-gray-100); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--club-space-2); }
.cm-figure { margin: 0; border-radius: var(--club-radius-lg); overflow: hidden; border: 1px solid var(--club-border); background: var(--club-gray-50); }
.cm-figure img { width: 100%; height: auto; display: block; }
.cm-price { font-size: var(--club-fs-lg); font-weight: 700; color: var(--club-heading); margin: 0; letter-spacing: -.01em; }
.cm-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--club-space-3); }
.cm-mini li { display: grid; gap: 2px; font-size: var(--club-fs-sm); }
.cm-mini .club-pill { justify-self: start; }
.cm-mini a { font-weight: 600; color: var(--club-heading); text-decoration: none; }
.cm-mini a:hover { color: var(--club-primary); text-decoration: underline; }
.cm-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--club-space-4); }
.cm-review { padding-bottom: var(--club-space-4); border-bottom: 1px solid var(--club-gray-100); }
.cm-review:last-child { border-bottom: 0; padding-bottom: 0; }
.cm-review__head { display: flex; flex-wrap: wrap; gap: var(--club-space-3); align-items: center; }
.cm-review p { margin: var(--club-space-2) 0 0; font-size: var(--club-fs-sm); }

/* ------------------------------------------------------------ operaciones */
.cm-oplist { list-style: none; margin: 0 0 var(--club-space-6); padding: 0; display: grid; gap: var(--club-space-3); }
.cm-op { background: #fff; border: 1px solid var(--club-border); border-radius: var(--club-radius-lg); transition: box-shadow .2s, border-color .2s; }
.cm-op:hover { box-shadow: var(--club-shadow-md); border-color: var(--club-gray-300); }
.cm-op.needs-action { border-left: 4px solid var(--club-warning); }
.cm-op__link { display: flex; gap: var(--club-space-5); justify-content: space-between; padding: var(--club-space-4) var(--club-space-5); color: inherit; text-decoration: none !important; }
.cm-op__link:focus-visible { outline: none; box-shadow: var(--club-ring); border-radius: var(--club-radius-lg); }
.cm-op__main { min-width: 0; display: grid; gap: var(--club-space-2); }
.cm-op__tags { display: flex; flex-wrap: wrap; gap: var(--club-space-2); align-items: center; }
.cm-op__title { font-size: var(--club-fs-base); margin: 0; color: var(--club-heading); line-height: 1.35; overflow-wrap: anywhere; }
.cm-op:hover .cm-op__title { color: var(--club-primary); }
.cm-op__who { margin: 0; font-size: var(--club-fs-sm); }
.cm-op__side { display: grid; gap: var(--club-space-2); justify-items: end; align-content: start; text-align: right; flex: none; }
.cm-op__side > * { white-space: nowrap; }
.cm-op__amount { font-weight: 700; color: var(--club-heading); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .cm-op__link { flex-direction: column; gap: var(--club-space-3); }
  .cm-op__side { display: flex; flex-wrap: wrap; align-items: center; text-align: left; gap: var(--club-space-2) var(--club-space-3); }
}

.cm-stepper { list-style: none; margin: 0 0 var(--club-space-6); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--club-space-2); counter-reset: s; }
.cm-stepper__step { position: relative; display: grid; justify-items: center; text-align: center; gap: var(--club-space-2); font-size: var(--club-fs-xs); color: var(--club-text-muted); font-weight: 600; }
.cm-stepper__step::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--club-gray-200); }
.cm-stepper__step:first-child::before { display: none; }
.cm-stepper__step.is-done::before { background: var(--club-primary); }
.cm-stepper__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--club-gray-300); color: var(--club-gray-500); font-weight: 700; }
.cm-stepper__dot .club-icon { width: 16px; height: 16px; }
.cm-stepper__step.is-done .cm-stepper__dot { background: var(--club-primary); border-color: var(--club-primary); color: #fff; }
.cm-stepper__step.is-done { color: var(--club-heading); }
.cm-stepper.is-disputed .cm-stepper__step:not(.is-done) .cm-stepper__dot { border-color: var(--club-danger); color: var(--club-danger); }
@media (max-width: 480px) { .cm-stepper__label { font-size: 10.5px; line-height: 1.25; } }

.cm-action { display: grid; gap: var(--club-space-3); }
.cm-action > .cm-h2 { margin: 0; }
.cm-action > p { margin: 0; }
.cm-action--primary { border-color: var(--club-cyan-200); box-shadow: 0 0 0 3px var(--club-cyan-50), var(--club-shadow-sm); }
.cm-action--warn { border-color: #f1d49e; background: #fffaf1; }
.cm-action--danger { border-color: #f5c2bd; background: #fffafa; }
.cm-accepts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--club-space-2); font-size: var(--club-fs-sm); }
.cm-accepts li { display: flex; gap: var(--club-space-2); align-items: flex-start; }
.cm-accepts .club-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--club-success); }

.cm-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cm-timeline__item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: var(--club-space-3); padding-bottom: var(--club-space-5); }
.cm-timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--club-gray-100); }
.cm-timeline__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--club-gray-50); border: 1px solid var(--club-border); color: var(--club-gray-600); }
.cm-timeline__icon .club-icon { width: 16px; height: 16px; }
.cm-ev--accepted .cm-timeline__icon, .cm-ev--completed .cm-timeline__icon, .cm-ev--dispute_resolved .cm-timeline__icon { background: var(--club-success-bg); color: var(--club-success); border-color: #b9e3cf; }
.cm-ev--dispute_opened .cm-timeline__icon, .cm-ev--declined .cm-timeline__icon, .cm-ev--cancelled .cm-timeline__icon { background: var(--club-danger-bg); color: var(--club-danger); border-color: #f5c2bd; }
.cm-ev--guarantee_registered .cm-timeline__icon, .cm-ev--claim_status .cm-timeline__icon, .cm-ev--claim_closed .cm-timeline__icon { background: var(--club-gold-50); color: var(--club-gold); border-color: #e6cf98; }
.cm-timeline__body { min-width: 0; padding-top: 6px; }
.cm-timeline__meta { margin: 0; font-size: var(--club-fs-xs); color: var(--club-text-muted); display: flex; flex-wrap: wrap; gap: .3em; align-items: center; }
.cm-timeline__meta strong { color: var(--club-heading); }
.cm-timeline__note { margin-top: var(--club-space-2); font-size: var(--club-fs-sm); color: var(--club-text); line-height: 1.55; overflow-wrap: anywhere; }
.cm-noteform { gap: var(--club-space-2); padding-top: var(--club-space-4); border-top: 1px solid var(--club-gray-100); }
.cm-noteform .club-btn { justify-self: start; }

/* estrellas de calificación (radio) */
.cm-rate { border: 0; padding: 0; margin: 0; }
.cm-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.cm-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cm-rate__stars label { cursor: pointer; font-size: 2rem; line-height: 1; color: var(--club-gray-300); padding: 2px; border-radius: 6px; transition: color .1s; }
.cm-rate__stars label:hover, .cm-rate__stars label:hover ~ label, .cm-rate__stars input:checked ~ label { color: var(--club-gold); }
.cm-rate__stars input:focus-visible + label { box-shadow: var(--club-ring); }

/* contraparte */
.cm-cpsel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--club-space-3); }
.cm-cpsearch { display: grid; gap: var(--club-space-2); }
.cm-cpresults { list-style: none; margin: var(--club-space-2) 0 0; padding: 0; display: grid; gap: var(--club-space-2); }
.cm-cpresults:empty { display: none; }
.cm-cpresults a { display: flex; flex-wrap: wrap; gap: var(--club-space-2) var(--club-space-3); align-items: center; padding: var(--club-space-3) var(--club-space-4); border: 1px solid var(--club-border); border-radius: var(--club-radius-md); text-decoration: none; color: var(--club-heading); font-weight: 600; font-size: var(--club-fs-sm); }
.cm-cpresults a:hover, .cm-cpresults a:focus-visible { border-color: var(--club-primary); background: var(--club-cyan-50); outline: none; }
.cm-cpresults small { color: var(--club-text-muted); font-weight: 400; }

/* widget del tablero */
.cm-widget { display: grid; gap: var(--club-space-4); }
.cm-widget__alert { display: flex; align-items: center; gap: var(--club-space-3); padding: var(--club-space-3) var(--club-space-4); border-radius: var(--club-radius-md); background: var(--club-warning-bg); color: var(--club-warning); font-size: var(--club-fs-sm); text-decoration: none; }
.cm-widget__alert span { flex: 1; }
.cm-widget__alert .club-icon { width: 18px; height: 18px; flex: none; }
.cm-widget__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--club-space-3); margin: 0; }
.cm-widget__stats div { padding: var(--club-space-3); border-radius: var(--club-radius-md); background: var(--club-gray-50); text-align: center; }
.cm-widget__stats dt { font-size: var(--club-fs-xs); color: var(--club-text-muted); }
.cm-widget__stats dd { margin: 2px 0 0; font-size: var(--club-fs-xl); font-weight: 700; color: var(--club-heading); font-variant-numeric: tabular-nums; }
.cm-widget__label { margin: 0; font-size: var(--club-fs-xs); font-weight: 700; color: var(--club-text-subtle); text-transform: uppercase; letter-spacing: .06em; }
.cm-widget__links { display: flex; flex-wrap: wrap; gap: var(--club-space-2); }

/* ------------------------------------------------------------ página pública /mercado */
.cm-pubcompare { display: grid; gap: var(--club-space-5); }
@media (min-width: 860px) { .cm-pubcompare { grid-template-columns: 1fr 1fr; } }
.cm-pubcompare__col { display: grid; gap: var(--club-space-5); align-content: start; }
.cm-pubcompare__col .cm-gtee { justify-self: start; }
.cm-pubcompare__col--yes { border-color: #e6cf98; background: linear-gradient(180deg, #fffaf0, #fff 60%); }
.cm-list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--club-space-3); }
.cm-list-plain li { position: relative; padding-left: 2rem; }
.cm-list-plain li::before { content: ""; position: absolute; left: 6px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--club-gray-400); }
.cm-pubsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--club-space-5); }
@media (min-width: 640px) { .cm-pubsteps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cm-pubsteps { grid-template-columns: repeat(4, 1fr); } }
.cm-pubsteps li { padding: var(--club-space-6); border: 1px solid var(--club-border); border-radius: var(--club-radius-lg); background: #fff; }
.cm-pubsteps h3 { font-size: var(--club-fs-md); margin: var(--club-space-4) 0 var(--club-space-2); }
.cm-pubsteps p { margin: 0; color: var(--club-text-muted); font-size: var(--club-fs-sm); line-height: 1.55; }
.cm-pubsteps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--club-ink); color: var(--club-cyan); font-weight: 800; }
.cm-faq { display: grid; gap: var(--club-space-3); }
.cm-faq details { background: #fff; border: 1px solid var(--club-border); border-radius: var(--club-radius-md); padding: 0 var(--club-space-5); }
.cm-faq summary { cursor: pointer; list-style: none; padding: var(--club-space-4) 0; font-weight: 600; color: var(--club-heading); display: flex; justify-content: space-between; gap: var(--club-space-4); }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: "+"; font-size: 1.3em; line-height: 1; color: var(--club-primary); }
.cm-faq details[open] summary::after { content: "–"; }
.cm-faq details p { margin: 0 0 var(--club-space-4); color: var(--club-text-muted); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .cm-item, .cm-op, .cm-choice__box, .cm-details > summary::after { transition: none; }
}

/* [hidden] debe ganar a display:grid/flex de los componentes */
.cm-form [hidden], .cm-formwrap [hidden] { display: none !important; }
.cm-formwrap > * + * { margin-top: var(--club-space-5); }
.cm-formwrap > .club-alert + * { margin-top: 0; }
