/* Total Rent · Verificación humana local · v2
   Visible desde HTML y funcional con JS/PHP del propio hosting. */
.tr-antibot {
  --tr-ab-blue: #00a7e1;
  --tr-ab-blue-dark: #008fc4;
  --tr-ab-ink: #241b2b;
  --tr-ab-muted: #747b80;
  --tr-ab-border: #d8e0e5;
  --tr-ab-bg: #f7f9fa;
  display: block !important;
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 390px;
  margin: 12px 0 14px !important;
  padding: 0 !important;
  position: relative;
  z-index: 3;
  font-family: inherit;
  color: var(--tr-ab-ink);
  user-select: none;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.totalrent-form-fields-wrapper > .tr-antibot,
.tr-lead-form .tr-antibot {
  align-self: stretch;
  max-width: none;
}

.tr-antibot__box {
  min-height: 72px;
  width: 100%;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px 10px 13px;
  border: 1px solid var(--tr-ab-border);
  border-radius: 11px;
  background: linear-gradient(180deg, #fbfcfd 0%, var(--tr-ab-bg) 100%);
  box-shadow: 0 7px 20px rgba(24, 41, 54, .055);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.tr-antibot:hover .tr-antibot__box { border-color: #bac7cf; }
.tr-antibot.is-verified .tr-antibot__box {
  border-color: rgba(0, 167, 225, .44);
  background: linear-gradient(180deg, #fbfeff 0%, #f1fbfe 100%);
  box-shadow: 0 8px 24px rgba(0, 167, 225, .10);
}
.tr-antibot.is-error .tr-antibot__box {
  border-color: #d96c6c;
  box-shadow: 0 0 0 3px rgba(217, 108, 108, .08);
}

.tr-antibot__control {
  position: relative;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.tr-antibot__input {
  position: absolute !important;
  inset: 0 !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 2;
}
.tr-antibot__check {
  width: 31px;
  height: 31px;
  box-sizing: border-box;
  border: 2px solid #aab4bb;
  border-radius: 4px;
  background: #fff;
  display: block !important;
  position: relative;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tr-antibot__control:hover .tr-antibot__check,
.tr-antibot__input:focus-visible + .tr-antibot__check {
  border-color: var(--tr-ab-blue);
  box-shadow: 0 0 0 4px rgba(0, 167, 225, .12);
}
.tr-antibot.is-checking .tr-antibot__check {
  border-color: var(--tr-ab-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: tr-ab-spin .72s linear infinite;
}
.tr-antibot.is-verified .tr-antibot__check {
  border-color: var(--tr-ab-blue);
  background: var(--tr-ab-blue);
  border-radius: 5px;
  animation: none;
  transform: scale(1.02);
}
.tr-antibot.is-verified .tr-antibot__check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 8px;
  height: 15px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.tr-antibot__copy { min-width: 0; line-height: 1.16; }
.tr-antibot__title {
  display: block;
  color: var(--tr-ab-ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.tr-antibot__status {
  display: block;
  margin-top: 4px;
  min-height: 13px;
  font-size: 10px;
  line-height: 1.2;
  color: var(--tr-ab-muted);
}
.tr-antibot.is-verified .tr-antibot__status { color: #16895a; font-weight: 650; }
.tr-antibot.is-error .tr-antibot__status { color: #b33d3d; }

.tr-antibot__brand {
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-width: 58px;
  text-align: center;
}
.tr-antibot__brand img {
  width: 41px !important;
  height: 41px !important;
  max-width: 41px !important;
  object-fit: contain;
  display: block !important;
}
.tr-antibot__brand small {
  display: block;
  font-size: 7px;
  line-height: 1.05;
  color: #747b80;
  white-space: nowrap;
}

.tr-antibot__hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* La puerta de “¿Eres propietario?” no debe ocultar ni bloquear el captcha. */
.totalrent-form.tr-owner-gated:not(.tr-owner-confirmed) .tr-antibot,
.totalrent-form.tr-owner-gated:not(.tr-owner-confirmed) .tr-antibot * {
  visibility: visible !important;
}
.totalrent-form.tr-owner-gated:not(.tr-owner-confirmed) .tr-antibot {
  pointer-events: auto !important;
}

.tr-antibot-shake { animation: tr-ab-shake .32s ease; }
@keyframes tr-ab-spin { to { transform: rotate(360deg); } }
@keyframes tr-ab-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 480px) {
  .tr-antibot { max-width: none; margin: 10px 0 12px !important; }
  .tr-antibot__box {
    grid-template-columns: 38px minmax(0, 1fr) 48px;
    gap: 8px;
    min-height: 66px;
    padding: 9px 9px 9px 11px;
    border-radius: 10px;
  }
  .tr-antibot__control,
  .tr-antibot__input { width: 33px !important; height: 33px !important; }
  .tr-antibot__check { width: 28px; height: 28px; }
  .tr-antibot__title { font-size: 13px; }
  .tr-antibot__status { font-size: 9px; }
  .tr-antibot__brand img { width: 35px !important; height: 35px !important; max-width: 35px !important; }
  .tr-antibot__brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-antibot *, .tr-antibot *::before, .tr-antibot *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
