/* debate.css — elecciones.realmadrid.com.co */

.debate-wrap { max-width: 760px; }

/* ---------- NORMAS ---------- */
.debate-normas {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  font-size: .9rem;
}
.debate-normas strong { color: var(--navy); display: block; margin-bottom: .4rem; }
.debate-normas ul { margin: .3rem 0 .5rem 1.2rem; }
.debate-normas li { margin-bottom: .2rem; color: var(--ink); }
.debate-normas-nota {
  font-size: .8rem; color: var(--grey-600); margin-top: .5rem; font-style: italic;
}

/* ---------- FORMULARIO ---------- */
.debate-form-wrap {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow);
}
.debate-subtitulo {
  font-size: 1.1rem; color: var(--navy); margin-bottom: .6rem;
}
.debate-alias-info {
  font-size: .88rem; color: var(--grey-600); margin-bottom: .8rem;
}
.debate-alias-info strong { color: var(--navy); font-family: monospace; }
.debate-alias-hint { font-size: .78rem; display: block; margin-top: .1rem; }

.debate-textarea {
  width: 100%; padding: .75rem .9rem;
  border: 1.5px solid var(--grey-300); border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem;
  color: var(--ink); background: var(--white);
  resize: vertical; min-height: 100px;
  transition: border-color .15s;
}
.debate-textarea:focus {
  outline: 3px solid var(--gold); outline-offset: 1px;
  border-color: var(--navy);
}
.debate-form-pie {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .6rem; flex-wrap: wrap; gap: .5rem;
}
.debate-contador { font-size: .82rem; color: var(--grey-600); }
.debate-enviar-btn { flex-shrink: 0; }

/* ---------- MENSAJES ---------- */
.debate-mensaje { font-size: .9rem; margin-top: .7rem; display: none; }
.debate-mensaje-visible { display: block; }
.debate-mensaje-ok {
  color: #1f7a4d; background: #e3f3ea;
  border: 1px solid #b6dcc6; border-radius: 6px; padding: .6rem .8rem;
}
.debate-mensaje-error {
  color: #b23b3b; background: #fbeaea;
  border: 1px solid #e3b9b9; border-radius: 6px; padding: .6rem .8rem;
}

/* ---------- TOTAL ---------- */
.debate-total {
  font-size: .85rem; color: var(--grey-600);
  margin-bottom: 1rem; border-bottom: 1px solid var(--grey-300);
  padding-bottom: .7rem;
}

/* ---------- LISTA DE COMENTARIOS ---------- */
.debate-lista { display: flex; flex-direction: column; gap: .8rem; }

.debate-item {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: box-shadow .2s;
}
.debate-item:hover { box-shadow: var(--shadow); }

@keyframes fade-in-item {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.debate-item-nuevo {
  animation: fade-in-item .4s ease;
  border-color: var(--gold);
  background: var(--gold-soft);
}

.debate-item-cab {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem;
}
.debate-item-alias {
  font-family: monospace; font-size: .82rem; font-weight: 700;
  color: var(--navy); background: var(--grey-100);
  padding: .1rem .45rem; border-radius: 4px;
}
.debate-item-fecha { font-size: .8rem; color: var(--grey-600); }
.debate-item-texto {
  font-size: .95rem; line-height: 1.6; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}

.debate-vacio {
  text-align: center; color: var(--grey-600); font-style: italic;
  padding: 2rem; border: 1px dashed var(--grey-300); border-radius: 8px;
}

@media (max-width: 560px) {
  .debate-form-pie { flex-direction: column; align-items: stretch; }
  .debate-enviar-btn { width: 100%; justify-content: center; }
}

/* ---------- RETO ANTI-BOT ---------- */
.debate-reto {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--grey-600);
}
.debate-reto label { white-space: nowrap; }
.debate-reto strong { color: var(--navy); }
.debate-reto input {
  width: 56px; padding: .4rem .5rem; text-align: center;
  border: 1.5px solid var(--grey-300); border-radius: 6px;
  font-size: .95rem; font-family: var(--font-body);
}
.debate-reto input:focus {
  outline: 2px solid var(--gold); border-color: var(--navy);
}
.debate-reto input:disabled { background: var(--grey-100); color: var(--grey-300); }

@media (max-width: 560px) {
  .debate-reto { justify-content: space-between; width: 100%; }
}
