/* ========== Cloudflare Turnstile / Captcha centrado ========== */

/* Contenedor típico CF7 */
.wpcf7-form .cf-turnstile,
.wpcf7-form .wpcf7-turnstile,
.wpcf7-form .turnstile,
.wpcf7-form .cloudflare-turnstile{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  margin:14px auto -14px !important;
}

/* Si el iframe se queda pegado a la izquierda */
.wpcf7-form .cf-turnstile iframe,
.wpcf7-form .wpcf7-turnstile iframe,
.wpcf7-form .turnstile iframe,
.wpcf7-form .cloudflare-turnstile iframe{
  display:block !important;
  margin:0 auto !important;
}

/* Si está dentro de un grupo/row que no deja centrar */
#contact-form-arco .form--default__group:has(.cf-turnstile),
#contact-form-redec .form--default__group:has(.cf-turnstile),
#contact-form-arco .form--default__group:has(.wpcf7-turnstile),
#contact-form-redec .form--default__group:has(.wpcf7-turnstile){
  display:flex !important;
  justify-content:center !important;
}

#pv-consulta-redec {
  max-width: 500px;
  width: min(92vw, 500px);
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 40px 44px 44px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .12);
  box-sizing: border-box;
}

#pv-consulta-redec,
#pv-consulta-redec * {
  box-sizing: border-box;
}

#pv-consulta-redec .pv-panel-redec__header {
  max-width: 720px;
  margin: 0 auto 18px;
  text-align: center;
}

#pv-consulta-redec .pv-panel-redec__title {
  font-size: 3rem;
  color: #4b4f54;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 15px;
}

#pv-consulta-redec .pv-panel-redec__title br {
  display: none;
}

#pv-consulta-redec .form--default__group {
  width: 100%;
  position: relative;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  margin: 0 0 18px;
}

#pv-consulta-redec .form--default__label,
#pv-consulta-redec .form--default__group>label {
  position: absolute !important;
  top: 12px !important;
  left: 18px !important;
  transform: translateY(-50%) !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 10px !important;
  background: #fff !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #3b3f45 !important;
  line-height: 1.2 !important;
  letter-spacing: .1px;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

#pv-consulta-redec input[type="text"],
#pv-consulta-redec input[type="email"],
#pv-consulta-redec input[type="tel"],
#pv-consulta-redec select,
#pv-consulta-redec textarea {
  width: 100%;
  padding: 14px 16px;
  min-height: 60px;
  border-radius: 14px;
  border: 1px solid #cfd3d8 !important;
  font-size: 18px !important;
  font-weight: 400;
  color: #1f2328;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
}

#pv-consulta-redec ::placeholder {
  color: #7b818a;
  opacity: .75;
}

#pv-consulta-redec input:focus,
#pv-consulta-redec select:focus,
#pv-consulta-redec textarea:focus {
  border-color: #b8bdc6 !important;
  box-shadow: 0 0 0 3px rgba(31, 35, 40, .08) !important;
}

#pv-consulta-redec .wpcf7-form-control-wrap {
  display: block !important;
  width: 100%;
}

#pv-consulta-redec #pv-consulta-msg,
#pv-consulta-redec #pv-consulta-msg.pv-msg,
#pv-consulta-redec #pv-consulta-msg.pv-consulta-msg,
#pv-consulta-redec .pv-consulta-msg,
#pv-consulta-redec .pv-msg,
#pv-consulta-redec .wpcf7-response-output {
  display: none;
  margin: 14px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #d93025 !important;
  border: 1px solid rgba(217, 48, 37, .22) !important;
  background: rgba(217, 48, 37, .08) !important;
}

#pv-consulta-redec #pv-consulta-msg[style*="display:block"],
#pv-consulta-redec #pv-consulta-msg[style*="display: block"],
#pv-consulta-redec .wpcf7-response-output:not(:empty) {
  display: block !important;
}

#pv-consulta-redec #btn_consultar,
#pv-consulta-redec .pv-btn {
  background: #f96b07 !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 999px !important;
  height: 52px !important;
  width: 260px !important;
  min-width: 260px !important;
  padding: 0 34px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .12) !important;
  text-decoration: none !important;
  display: block !important;
  margin: 14px auto 0 !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  float: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
/* =========================
   REDEC — "Ir al inicio" (GHOST) SIN relieve
   ========================= */
#pv-consulta-redec #btn_inicio_redec.pv-btn,
#pv-consulta-redec .pv-btn.pv-btn--ghost{
  background:#fff !important;
  color:#f96b07 !important;


  box-shadow:none !important;           /* ✅ sin relieve */
  filter:none !important;

  border-radius:999px !important;
  height:52px !important;

  width:260px !important;
  min-width:260px !important;

  padding:0 34px !important;
  font-size:18px !important;
  font-weight:800 !important;

  display:block !important;
  margin:14px auto 0 !important;
}

#pv-consulta-redec #btn_inicio_redec:hover,
#pv-consulta-redec .pv-btn.pv-btn--ghost:hover{
  background:#fff !important;
  filter:brightness(.98) !important;
}

#pv-consulta-redec #btn_inicio_redec:focus,
#pv-consulta-redec .pv-btn.pv-btn--ghost:focus{
  outline:none !important;
  box-shadow:0 0 0 3px rgba(249,107,7,.18) !important;
}

#pv-consulta-redec .pv-btn--ghost {
  background: #fff !important;
  color: #f96b07 !important;
}


#pv-consulta-redec #btn_consultar:hover,
#pv-consulta-redec .pv-btn:hover {
  filter: brightness(.95);
}

#pv-consulta-redec #btn_consultar:focus,
#pv-consulta-redec #btn_consultar:active,
#pv-consulta-redec #btn_consultar:disabled,
#pv-consulta-redec #btn_consultar.pv-btn-loading,
#pv-consulta-redec .pv-btn:focus,
#pv-consulta-redec .pv-btn:active,
#pv-consulta-redec .pv-btn:disabled {
  left: auto !important;
  right: auto !important;
  transform: none !important;
  float: none !important;
  position: relative !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#pv-consulta-redec #btn_consultar:disabled,
#pv-consulta-redec .pv-btn:disabled,
#pv-consulta-redec #btn_consultar[disabled],
#pv-consulta-redec .pv-btn[disabled] {
  opacity: .55 !important;
  cursor: not-allowed !important;
  filter: grayscale(.1);
}

#pv-consulta-redec #btn_consultar.pv-btn-loading {
  opacity: .85 !important;
  pointer-events: none !important;
}

#pv-consulta-redec #pv-consulta-card.pv-card {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  padding: 16px 18px 12px;
}

#pv-consulta-redec .pv-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(231, 231, 234, .85);
}

#pv-consulta-redec .pv-row:last-child {
  border-bottom: none;
}

#pv-consulta-redec .pv-row span {
  font-size: 16px;
  font-weight: 500;
  color: #4B4F54;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 210px;
}

#pv-consulta-redec .pv-row strong {
  font-size: 16px;
  font-weight: 800;
  color: #4B4F54;
  line-height: 1.2;
  text-align: right;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: calc(100% - 210px);
  word-break: break-word;
}

#pv-consulta-redec #row_fterm strong,
#pv-consulta-redec #row_res strong,
#pv-consulta-redec #pv_tipo,
#pv-consulta-redec #pv_fund,
#pv-consulta-redec #row_fund strong {
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

#pv-consulta-redec.pv-consulta-scope {
  position: relative !important;
}

#pv-consulta-redec .pv-consulta-overlay {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, .60);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#pv-consulta-redec .pv-consulta-overlay__box {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
  display: flex;
  align-items: center;
  justify-content: center;
}

#pv-consulta-redec .pv-consulta-spinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 5px solid rgba(0, 0, 0, .12);
  border-top-color: #f96b07;
  animation: pvSpin .9s linear infinite;
}

@keyframes pvSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width:900px) {
  #pv-consulta-redec {
    width: 92vw !important;
    max-width: 120% !important;
    padding: 30px 18px 34px !important;
    border-radius: 22px !important;
    margin-left: -15px !important;
  }

  #pv-consulta-redec .pv-panel-redec__title {
    font-size: 26px !important;
  }

  #pv-consulta-redec input[type="text"],
  #pv-consulta-redec input[type="email"],
  #pv-consulta-redec input[type="tel"],
  #pv-consulta-redec select,
  #pv-consulta-redec textarea {
    font-size: 16px !important;
    padding: 14px 14px !important;
  }

  #pv-consulta-redec #btn_consultar,
  #pv-consulta-redec .pv-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  #pv-consulta-redec .form--default__label,
  #pv-consulta-redec .form--default__group>label {
    left: 12px !important;
    max-width: calc(100% - 24px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #pv-consulta-redec .pv-row {
    flex-direction: column;
    gap: 6px;
    padding: 12px 4px;
  }

  #pv-consulta-redec .pv-row span {
    flex: 0 0 auto;
    white-space: normal;
  }

  #pv-consulta-redec .pv-row strong {
    text-align: left;
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width:700px) {
  #pv-consulta-redec {
    padding: 26px 18px 22px !important;
    border-radius: 22px !important;
  }
}

#pv-consulta-arco.pv-consulta-has-results #btn_consultar,
#pv-consulta-arco.pv-consulta-has-results .pv-btn,
#pv-consulta-redec.pv-consulta-has-results #btn_consultar,
#pv-consulta-redec.pv-consulta-has-results .pv-btn {
  display: none !important;
}