/* Antibot "No soy un robot" — Erdos Legal */
.antibot, .antibot * { box-sizing: border-box; }
.antibot {
  margin: 8px 0 20px;
  max-width: 304px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  background: #f9f9f9;            /* fondo propio, como reCAPTCHA: se lee igual sobre cualquier fondo */
  color: #222;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.12);
}
.antibot.is-hidden { display: none; }
.antibot.is-error { border-color: #c0392b; box-shadow: 0 0 4px rgba(192, 57, 43, 0.35); }

/* ── Fila de la casilla ─────────────────────────────────────────────────── */
.antibot-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 74px; padding: 12px 14px;
}
.antibot-hit {
  display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0;
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
.antibot-hit:focus-visible { outline: 2px solid #D4AF5A; outline-offset: 4px; border-radius: 3px; }
.antibot-mark {
  position: relative; flex: none; width: 28px; height: 28px;
  border: 2px solid #c1c1c1; border-radius: 3px; background: #fff;
  transition: border-color .15s, background .15s;
}
.antibot-hit:hover .antibot-mark { border-color: #B8963E; }
.antibot-label { font-size: 0.95rem; font-weight: 500; line-height: 1.2; }

.antibot-brand { flex: none; text-align: center; font-size: 10px; line-height: 1.25; color: #555; }
.antibot-brand .fa { display: block; margin-bottom: 2px; font-size: 26px; color: #B8963E; }
.antibot-brand-name { display: block; font-weight: 600; }
.antibot-brand-links { display: block; font-size: 9px; }
.antibot-brand-links a { color: inherit; text-decoration: none; }
.antibot-brand-links a:hover { text-decoration: underline; }

/* Comprobando: spinner dentro de la casilla */
.antibot.is-checking .antibot-hit { cursor: progress; }
.antibot.is-checking .antibot-mark { border-color: transparent; background: transparent; }
.antibot.is-checking .antibot-mark::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 3px solid rgba(184, 150, 62, 0.3); border-top-color: #B8963E; border-radius: 50%;
  animation: antibot-spin .8s linear infinite;
}
@keyframes antibot-spin { to { transform: rotate(360deg); } }

/* Verificado: check verde */
.antibot.is-passed .antibot-hit { cursor: default; }
.antibot.is-passed .antibot-mark { border-color: transparent; background: transparent; }
.antibot.is-passed .antibot-mark::after {
  content: ''; position: absolute; left: 8px; top: 1px; width: 10px; height: 19px;
  border: solid #2e9e5b; border-width: 0 4px 4px 0; transform: rotate(45deg);
  animation: antibot-pop .25s ease-out;
}
@keyframes antibot-pop { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .antibot.is-checking .antibot-mark::after { animation-duration: 2.4s; }
  .antibot.is-passed .antibot-mark::after { animation: none; }
}

/* ── Desafío visual (segundo paso, solo si hace falta) ───────────────────── */
.antibot-panel { padding: 12px 14px 14px; border-top: 1px solid #e0e0e0; }
.antibot-panel.is-hidden { display: none; }
.antibot-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; font-size: 0.9rem; font-weight: 600;
}
.antibot-refresh {
  flex: none; width: 32px; height: 32px; line-height: 1;
  border: 1px solid rgba(184, 150, 62, 0.6); border-radius: 50%;
  background: transparent; color: #B8963E; font-size: 1.1rem; cursor: pointer;
}
.antibot-refresh:hover, .antibot-refresh:focus-visible { background: #B8963E; color: #fff; outline: none; }
.antibot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.antibot-grid:empty { display: none; }
.antibot-tile {
  position: relative; padding: 0; border: 3px solid transparent; border-radius: 4px;
  background: #fff; cursor: pointer; overflow: hidden; aspect-ratio: 1 / 1;
  transition: border-color .15s, transform .15s;
}
.antibot-tile img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.antibot-tile:hover { border-color: rgba(184, 150, 62, 0.55); }
.antibot-tile:focus-visible { outline: 2px solid #D4AF5A; outline-offset: 2px; }
.antibot-tile.is-selected { border-color: #B8963E; transform: scale(0.94); }
.antibot-tile.is-selected::after {
  content: '\2713'; position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  border-radius: 50%; background: #B8963E; color: #fff; font-size: 14px; font-weight: 700;
}
.antibot-help { margin-top: 10px; font-size: 0.72rem; color: #666; }

/* ── Mensajes ────────────────────────────────────────────────────────────── */
.antibot-status { padding: 0 14px 10px; font-size: 0.8rem; color: #444; }
.antibot-status:empty { display: none; }
.antibot.is-error .antibot-status { color: #c0392b; }

/* ── Variante newsletter (footer oscuro, columna estrecha) ───────────────── */
.antibot--footer { max-width: 100%; margin: 12px 0 0; }
.antibot--footer .antibot-row { min-height: 64px; padding: 10px 12px; gap: 8px; }
.antibot--footer .antibot-label { font-size: 0.85rem; }
.antibot--footer .antibot-brand-links,
.antibot--footer .antibot-brand-name { display: none; }    /* columna estrecha: solo el escudo */
.antibot--footer .antibot-panel { padding: 10px 12px 12px; }
.antibot--footer .antibot-head { font-size: 0.8rem; margin-bottom: 8px; }
