/* ════════ HERO ════════ */
.ma-comunidad-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FAF7F2 0%, #F3EDE3 100%); border-bottom: 1px solid var(--ma-border, #E5E7EB); padding: 80px 0 64px; }
.ma-comunidad-hero__watermark { position: absolute; top: 50%; right: -80px; transform: translateY(-50%); width: 420px; height: 420px; opacity: 0.04; pointer-events: none; }
.ma-comunidad-hero__inner { max-width: 720px; position: relative; z-index: 1; }
.ma-comunidad-hero__title { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.1; letter-spacing: -0.025em; color: var(--ma-text-heading, #111827); margin: 16px 0 18px; font-weight: 400; }
.ma-comunidad-hero__title em { font-style: italic; color: var(--ma-green, #166534); }
.ma-comunidad-hero__lede { font-size: clamp(15px, 2vw, 18px); line-height: 1.55; color: var(--ma-text-body, #374151); margin: 0 0 28px; max-width: 620px; }
.ma-comunidad-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ma-comunidad-hero__chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; background: #FFFFFF; border: 1px solid var(--ma-border, #E5E7EB); border-radius: 999px; font-size: 13px; color: var(--ma-text-body, #374151); text-decoration: none; transition: all .15s ease; }
.ma-comunidad-hero__chip:hover { border-color: var(--ma-text-heading, #111827); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.ma-comunidad-hero__chip strong { font-weight: 700; color: var(--ma-text-heading, #111827); }
.ma-comunidad-hero__chip span { color: var(--ma-text-secondary, #6B7280); font-size: 12px; }
.ma-comunidad-body { padding: 56px 0 88px; background: var(--ma-bg-primary, #FAF7F2); }
.ma-comunidad-section { margin-bottom: 56px; }
.ma-comunidad-section__head { margin-bottom: 24px; }
.ma-comunidad-section__title { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(22px, 3vw, 30px); font-weight: 400; color: var(--ma-text-heading, #111827); margin: 0 0 8px; letter-spacing: -0.015em; }
.ma-comunidad-section__sub { color: var(--ma-text-secondary, #6B7280); font-size: 14px; margin: 0; max-width: 720px; }
.ma-comunidad-section__sub a { color: var(--ma-green, #166534); text-decoration: none; font-weight: 600; }
.ma-comunidad-section__sub a:hover { text-decoration: underline; }

/* ════════ BLOQUE A · SELECTOR ════════ */
.ma-debate-selector { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: stretch; }
.ma-debate-selector > li { display: flex; }
.ma-debate-card { width: 100%; text-align: left; background: #FFFFFF; border: 1px solid var(--ma-border, #E5E7EB); border-radius: 14px; padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s ease, box-shadow .15s ease; font: inherit; color: inherit; min-height: 152px; overflow: hidden; box-sizing: border-box; position: relative; }
.ma-debate-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); border-color: var(--ma-text-heading, #111827); }
.ma-debate-card.is-active { border-color: var(--ma-green, #166534); box-shadow: 0 0 0 2px rgba(22,101,52,.18); }
.ma-debate-card__top { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ma-debate-card__badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; color: #FFFFFF; white-space: nowrap; }
.ma-debate-card__badge--rup { background: #991B1B; }
.ma-debate-card__badge--seg { background: #1E40AF; }
.ma-debate-card__badge--gen { background: #6B7280; }
.ma-debate-card__date { font-size: 11px; color: var(--ma-text-secondary, #6B7280); margin-left: auto; font-weight: 600; white-space: nowrap; }
.ma-debate-card__title { font-family: 'Lato', sans-serif; font-size: 14.5px; font-weight: 700; line-height: 1.35; margin: 0; color: var(--ma-text-heading, #111827); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; word-break: break-word; overflow-wrap: anywhere; hyphens: auto; flex: 1; }
.ma-debate-card__meta { display: flex; gap: 12px; font-size: 12px; color: var(--ma-text-secondary, #6B7280); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--ma-border, #E5E7EB); flex-shrink: 0; }

/* ════════ BLOQUE B · DEBATE PANEL ════════ */
.ma-debate-panel { scroll-margin-top: 80px; }
.ma-debate-panel__head { padding: 22px 24px; background: #FFFFFF; border: 1px solid var(--ma-border, #E5E7EB); border-radius: 14px 14px 0 0; border-bottom: none; margin-bottom: 0 !important; }
.ma-debate-panel__title-text { font-family: 'DM Serif Display', Georgia, serif; }
.ma-debate-panel__permalink { font-size: 13px; }

/* ════════ ENCUESTA ════════ */
.ma-poll { background: #FFFFFF; border: 1px solid var(--ma-border, #E5E7EB); border-bottom: none; padding: 24px; }
.ma-poll__empty { color: var(--ma-text-secondary, #6B7280); font-size: 14px; font-style: italic; padding: 8px 0; }
.ma-poll__loading { color: var(--ma-text-secondary, #6B7280); font-size: 14px; padding: 8px 0; }
.ma-poll__question { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; font-weight: 400; color: var(--ma-text-heading, #111827); margin: 0 0 14px; line-height: 1.3; }
.ma-poll__options { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ma-poll__option { position: relative; }
.ma-poll__btn { width: 100%; text-align: left; padding: 12px 16px; background: #FAF7F2; border: 1px solid var(--ma-border, #E5E7EB); border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ma-text-heading, #111827); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: border-color .15s ease, background-color .15s ease; position: relative; overflow: hidden; }
.ma-poll__btn:hover,
.ma-poll__btn:focus,
.ma-poll__btn:active,
.ma-poll__btn:focus-visible { border-color: var(--ma-green, #166534); background: #FFFFFF; color: var(--ma-text-heading, #111827); outline: none; text-decoration: none; }
.ma-poll__btn.is-mine,
.ma-poll__btn.is-mine:hover,
.ma-poll__btn.is-mine:focus { border-color: var(--ma-green, #166534); background: #DCFCE7; color: var(--ma-text-heading, #111827); }
.ma-poll__bar { position: absolute; top: 0; left: 0; bottom: 0; background: rgba(22,101,52,.10); pointer-events: none; transition: width .5s ease; z-index: 0; }
.ma-poll__btn.is-mine .ma-poll__bar { background: rgba(22,101,52,.22); }
.ma-poll__lbl { position: relative; z-index: 1; flex: 1; color: var(--ma-text-heading, #111827); }
.ma-poll__btn:hover .ma-poll__lbl,
.ma-poll__btn:focus .ma-poll__lbl,
.ma-poll__btn.is-mine .ma-poll__lbl { color: var(--ma-text-heading, #111827); }
.ma-poll__pct { position: relative; z-index: 1; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ma-text-secondary, #6B7280); }
.ma-poll__btn:hover .ma-poll__pct,
.ma-poll__btn:focus .ma-poll__pct,
.ma-poll__btn.is-mine .ma-poll__pct { color: var(--ma-text-secondary, #6B7280); }
.ma-poll__total { font-size: 12px; color: var(--ma-text-secondary, #6B7280); margin-top: 10px; }

/* ════════ COMENTARIOS ════════ */
.ma-comments { background: #FFFFFF; border: 1px solid var(--ma-border, #E5E7EB); border-radius: 0 0 14px 14px; padding: 24px; }
.ma-comments__title { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; font-weight: 400; color: var(--ma-text-heading, #111827); margin: 0 0 16px; }
.ma-comments__loading { color: var(--ma-text-secondary, #6B7280); font-size: 14px; padding: 8px 0; }
.ma-comments__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; position: relative; }
.ma-comment { display: flex; gap: 12px; padding: 14px; background: #FAF7F2; border-radius: 12px; border: 1px solid var(--ma-border, #E5E7EB); }
.ma-comment--reply { margin-left: 40px; background: #FFFFFF; border-style: dashed; }
.ma-comment__avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--ma-green, #166534), #14532d); color: #FFFFFF; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ma-comment__avatar.is-premium { background: linear-gradient(135deg, var(--ma-gold, #B45309), #92400e); }
.ma-comment__body { flex: 1; min-width: 0; }
.ma-comment__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.ma-comment__name { font-weight: 700; font-size: 13px; color: var(--ma-text-heading, #111827); }
.ma-comment__badge-premium { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--ma-gold, #B45309); color: #FFFFFF; letter-spacing: 0.06em; text-transform: uppercase; }
.ma-comment__date { font-size: 11px; color: var(--ma-text-secondary, #6B7280); margin-left: auto; }
.ma-comment__text { font-size: 14px; line-height: 1.5; color: var(--ma-text-body, #374151); white-space: pre-wrap; word-wrap: break-word; }
.ma-comment__actions { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; }
.ma-comment__action { background: none; border: none; padding: 0; color: var(--ma-text-secondary, #6B7280); cursor: pointer; font: inherit; font-weight: 600; }
.ma-comment__action:hover { color: var(--ma-green, #166534); }
.ma-comment__action.is-liked { color: var(--ma-green, #166534); }

/* Overlay difuminado para visitantes */
.ma-comments__list.is-locked { max-height: 480px; overflow: hidden; position: relative; }
.ma-comments__list.is-locked > .ma-comment:nth-child(n+3) { filter: blur(4px); pointer-events: none; user-select: none; }
.ma-comments__overlay { display: none; }
.ma-comments__list.is-locked + .ma-comments__overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; background: linear-gradient(180deg, rgba(250,247,242,0) 0%, rgba(250,247,242,1) 40%); margin-top: -120px; position: relative; z-index: 2; border-radius: 12px; }
.ma-comments__overlay p { margin: 0 0 16px; font-size: 15px; color: var(--ma-text-body, #374151); max-width: 360px; }
.ma-comments__overlay strong { color: var(--ma-text-heading, #111827); }

/* CTA login */
.ma-comments__cta { padding: 28px 24px; background: linear-gradient(135deg, #FAF7F2, #F3EDE3); border: 1px dashed var(--ma-border, #E5E7EB); border-radius: 12px; text-align: center; }
.ma-comments__cta p { margin: 0 0 14px; font-size: 15px; color: var(--ma-text-body, #374151); }

/* Form */
.ma-comments__form { padding: 18px; background: #FAF7F2; border: 1px solid var(--ma-border, #E5E7EB); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.ma-comments__form-label { font-size: 13px; font-weight: 600; color: var(--ma-text-body, #374151); }
.ma-comments__form-label small { font-weight: 400; color: var(--ma-text-secondary, #6B7280); margin-left: 6px; }
.ma-comments__form textarea { border: 1px solid var(--ma-border-input, #D1D5DB); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; background: #FFFFFF; color: var(--ma-text-heading, #111827); resize: vertical; min-height: 80px; }
.ma-comments__form textarea:focus { outline: none; border-color: var(--ma-green, #166534); box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12); }
.ma-comments__form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ma-comments__reply-to { font-size: 12px; color: var(--ma-text-secondary, #6B7280); }
.ma-comments__reply-to strong { color: var(--ma-text-heading, #111827); }
.ma-comments__reply-to button { background: none; border: none; padding: 0; color: var(--ma-green, #166534); cursor: pointer; font: inherit; font-size: 12px; text-decoration: underline; }
.ma-comments__form-msg { font-size: 13px; min-height: 18px; }
.ma-comments__form-msg.is-ok { color: var(--ma-green, #166534); font-weight: 600; }
.ma-comments__form-msg.is-err { color: #991B1B; font-weight: 600; }

/* ════════ FORM FEEDBACK existente (sin cambios) ════════ */
.ma-fb-form { background: #FFFFFF; border: 1px solid var(--ma-border, #E5E7EB); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ma-fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .ma-fb-grid { grid-template-columns: 1fr; } .ma-fb-form { padding: 22px; } }
.ma-fb-field { display: flex; flex-direction: column; gap: 6px; }
.ma-fb-field > span { font-size: 13px; font-weight: 600; color: var(--ma-text-body, #374151); }
.ma-fb-field > span small { font-weight: 400; color: var(--ma-text-secondary, #6B7280); margin-left: 4px; }
.ma-fb-field input, .ma-fb-field select, .ma-fb-field textarea { border: 1px solid var(--ma-border-input, #D1D5DB); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; background: #FFFFFF; color: var(--ma-text-heading, #111827); }
.ma-fb-field input:focus, .ma-fb-field select:focus, .ma-fb-field textarea:focus { outline: none; border-color: var(--ma-green, #166534); box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12); }
.ma-fb-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.ma-fb-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.ma-fb-stars input { display: none; }
.ma-fb-stars label { font-size: 32px; color: #E5E7EB; cursor: pointer; transition: color .12s; line-height: 1; }
.ma-fb-stars input:checked ~ label, .ma-fb-stars label:hover, .ma-fb-stars label:hover ~ label { color: #F59E0B; }
.ma-fb-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--ma-border, #E5E7EB); }
.ma-fb-privacy { font-size: 12px; color: var(--ma-text-secondary, #6B7280); margin: 0; flex: 1; }
.ma-fb-msg { font-size: 14px; min-height: 20px; margin-top: 8px; }
.ma-fb-msg.is-ok { color: var(--ma-green, #166534); font-weight: 600; }
.ma-fb-msg.is-err { color: #991B1B; font-weight: 600; }

/* ROADMAP + FB CARDS (unchanged) */
.ma-roadmap__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ma-roadmap__item { background: #FFFFFF; border: 1px solid var(--ma-border, #E5E7EB); border-left: 4px solid var(--ma-border, #E5E7EB); border-radius: 12px; padding: 18px 22px; transition: transform .15s ease, box-shadow .15s ease; }
.ma-roadmap__item:hover { transform: translateX(2px); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.ma-roadmap__item--in_progress { border-left-color: var(--ma-gold, #B45309); }
.ma-roadmap__item--done { border-left-color: var(--ma-green, #166534); opacity: .7; }
.ma-roadmap__status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ma-text-secondary, #6B7280); }
.ma-roadmap__title { margin: 6px 0 8px; font-size: 17px; font-weight: 600; color: var(--ma-text-heading, #111827); }
.ma-roadmap__desc { font-size: 14px; color: var(--ma-text-body, #374151); line-height: 1.55; }
.ma-roadmap__desc p { margin: 0; }

.ma-fb-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ma-fb-card { background: #FFFFFF; border: 1px solid var(--ma-border, #E5E7EB); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.ma-fb-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.ma-fb-card--bug { border-left: 3px solid #991B1B; }
.ma-fb-card--sugerencia { border-left: 3px solid #B45309; }
.ma-fb-card--resena { border-left: 3px solid var(--ma-green, #166534); }
.ma-fb-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ma-fb-card__name { font-weight: 700; font-size: 14px; color: var(--ma-text-heading, #111827); }
.ma-fb-card__cat { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.ma-fb-card__cat--resena { background: #DCFCE7; color: var(--ma-green, #166534); }
.ma-fb-card__cat--sugerencia { background: #FEF3C7; color: var(--ma-gold, #B45309); }
.ma-fb-card__cat--bug { background: #FEE2E2; color: #991B1B; }
.ma-fb-card__rating { color: #F59E0B; font-size: 15px; margin-left: auto; letter-spacing: 0.05em; }
.ma-fb-card__msg { font-size: 14px; color: var(--ma-text-body, #374151); line-height: 1.55; }
.ma-fb-card__msg p { margin: 0; }
.ma-fb-card__date { font-size: 11px; color: var(--ma-text-secondary, #6B7280); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--ma-border, #E5E7EB); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

.ma-fb-empty { background: #FFFFFF; border: 2px dashed var(--ma-border, #E5E7EB); border-radius: 16px; padding: 48px 24px; text-align: center; }
.ma-fb-empty__icon { font-size: 48px; display: block; margin-bottom: 16px; }
.ma-fb-empty p { color: var(--ma-text-body, #374151); margin: 0 0 20px; font-size: 16px; }

@media (max-width: 768px) {
  .ma-comunidad-hero { padding: 56px 0 44px; }
  .ma-comunidad-hero__watermark { display: none; }
  .ma-comunidad-body { padding: 36px 0 64px; }
  .ma-comunidad-section { margin-bottom: 40px; }
  .ma-debate-selector { grid-template-columns: 1fr; }
  .ma-comment--reply { margin-left: 16px; }
  .ma-poll, .ma-comments, .ma-debate-panel__head { padding: 18px; }
}
