/* Formulario original de Encuesta, aislado de los estilos editoriales globales. */
.ch-encuesta-stage,
.ch-encuesta-stage *,
.ch-encuesta-stage *::before,
.ch-encuesta-stage *::after {
  box-sizing: border-box;
}

.ch-encuesta-stage {
  --enc-blue: #0076ce;
  --enc-orange: #f37021;
  position: relative;
  min-height: 100vh;
  padding: clamp(7rem, 9vw, 9rem) clamp(8rem, 12vw, 14rem) 7rem;
  overflow: hidden;
  background: #fbf9ef;
  color: #1f2937;
  font-family: Arial, Helvetica, sans-serif;
}

.ch-encuesta-orb {
  position: absolute;
  z-index: 0;
  width: min(34rem, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .12;
  filter: blur(90px);
  pointer-events: none;
}

.ch-encuesta-orb--blue {
  top: -12rem;
  left: 8%;
  background: var(--enc-blue);
}

.ch-encuesta-orb--orange {
  right: 8%;
  bottom: -12rem;
  background: var(--enc-orange);
}

.ch-encuesta-card {
  position: relative;
  z-index: 1;
  width: min(100%, 672px);
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 65px rgba(15, 23, 42, .14);
}

.ch-encuesta-progress {
  height: .375rem;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  background: #f1f5f9;
}

.ch-encuesta-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--enc-blue), var(--enc-orange));
  transition: width .35s ease;
}

.ch-encuesta-header {
  padding: 2rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.ch-encuesta-logo {
  display: block;
  width: 12rem;
  height: 8.5rem;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.ch-encuesta-header h1 {
  margin: 0 !important;
  color: #1f2937 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ch-encuesta-header p {
  max-width: 35rem;
  margin: .5rem auto 0 !important;
  color: #4b5563 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .875rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: none !important;
}

.ch-encuesta-form {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 2rem !important;
}

.ch-encuesta-fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ch-encuesta-field {
  display: block;
  min-width: 0;
}

.ch-encuesta-field label,
.ch-encuesta-question-title {
  display: block;
  margin: 0 0 .375rem !important;
  color: #374151 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}

.ch-encuesta-control {
  display: block !important;
  width: 100% !important;
  min-width: 0;
  min-height: 2.75rem !important;
  margin: 0 !important;
  padding: .625rem 1rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: .5rem !important;
  outline: 0 !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04) !important;
  color: #111827 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .875rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ch-encuesta-control::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.ch-encuesta-control:focus {
  border-color: var(--enc-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 118, 206, .13) !important;
}

.ch-encuesta-stage textarea.ch-encuesta-control {
  min-height: 6.5rem !important;
  resize: vertical;
}

.ch-encuesta-select {
  position: relative;
}

.ch-encuesta-select-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  color: #6b7280 !important;
  cursor: pointer;
}

.ch-encuesta-select-trigger svg {
  width: 1rem;
  height: 1rem;
  color: var(--enc-orange);
  transition: transform .2s ease;
}

.ch-encuesta-select.is-open .ch-encuesta-select-trigger svg {
  transform: rotate(180deg);
}

.ch-encuesta-options {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  left: 0;
  z-index: 50;
  display: none;
  max-height: 15rem;
  margin: 0 !important;
  padding: .35rem !important;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, .16);
  list-style: none !important;
}

.ch-encuesta-select.is-open .ch-encuesta-options {
  display: block;
}

.ch-encuesta-options li {
  margin: 0 !important;
  padding: .7rem .8rem !important;
  border-radius: .45rem;
  color: #374151 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-transform: none !important;
  cursor: pointer;
}

.ch-encuesta-options li:hover,
.ch-encuesta-options li:focus {
  outline: 0;
  background: var(--enc-blue);
  color: #fff !important;
}

.ch-encuesta-divider {
  width: 100%;
  height: 1px;
  margin: 2rem 0 !important;
  border: 0 !important;
  background: #e5e7eb;
}

.ch-encuesta-questions {
  display: grid !important;
  gap: 1.5rem;
}

.ch-encuesta-question {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ch-encuesta-question-title {
  margin-bottom: .75rem !important;
  color: #1f2937 !important;
}

.ch-encuesta-rating {
  display: flex !important;
  width: min(100%, 24rem);
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.ch-encuesta-rating button {
  display: grid !important;
  width: 3rem !important;
  height: 3rem !important;
  min-width: 3rem !important;
  min-height: 3rem !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border: 2px solid #e5e7eb !important;
  border-radius: 50% !important;
  outline: 0;
  background: #fff !important;
  box-shadow: 0 4px 0 #cbd5e1 !important;
  color: #6b7280 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.ch-encuesta-rating button:hover,
.ch-encuesta-rating button:focus-visible {
  border-color: var(--enc-orange) !important;
  color: var(--enc-orange) !important;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #cbd5e1 !important;
}

.ch-encuesta-rating button.is-selected {
  border-color: var(--enc-orange) !important;
  background: var(--enc-orange) !important;
  box-shadow: 0 7px 15px rgba(243, 112, 33, .3) !important;
  color: #fff !important;
  transform: translateY(3px) scale(1.06);
}

.ch-encuesta-rating-labels {
  display: flex !important;
  width: min(100%, 24rem);
  justify-content: space-between;
  margin-top: .6rem;
  padding: 0 .15rem;
  color: #9ca3af !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .64rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
}

.ch-encuesta-comment {
  margin-top: 2rem;
}

.ch-encuesta-note {
  margin: .4rem 0 0 !important;
  color: #9ca3af !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-transform: none !important;
}

.ch-encuesta-score {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1rem !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: .75rem !important;
  background: #f8fafc !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .08) !important;
  color: #374151 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.ch-encuesta-score strong {
  color: var(--enc-blue) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

.ch-encuesta-score small {
  color: #9ca3af !important;
  font-size: .875rem !important;
  font-weight: 400 !important;
}

.ch-encuesta-error {
  display: none;
  margin: 1rem 0 0 !important;
  color: #ef4444 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

.ch-encuesta-error.is-visible {
  display: block;
}

.ch-encuesta-submit,
.ch-encuesta-again {
  display: flex !important;
  width: 100% !important;
  min-height: 3.5rem !important;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 2rem 0 0 !important;
  padding: 1rem 1.5rem !important;
  border: 0 !important;
  border-radius: .75rem !important;
  outline: 0;
  background: var(--enc-blue) !important;
  box-shadow: 0 10px 20px rgba(0, 118, 206, .3) !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: none !important;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ch-encuesta-submit:hover,
.ch-encuesta-submit:focus-visible,
.ch-encuesta-again:hover,
.ch-encuesta-again:focus-visible {
  background: #0566b2 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 118, 206, .34) !important;
}

.ch-encuesta-submit:disabled {
  cursor: wait;
  opacity: .75;
}

.ch-encuesta-submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ch-encuesta-privacy {
  margin: 1rem 0 0 !important;
  color: #9ca3af !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  text-transform: none !important;
}

.ch-encuesta-success {
  display: none !important;
  min-height: 25rem;
  align-items: center;
  justify-content: center;
  padding: 3rem !important;
  text-align: center;
}

.ch-encuesta-success.is-visible {
  display: flex !important;
}

.ch-encuesta-success-icon {
  display: grid;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  box-shadow: 0 0 40px rgba(34, 197, 94, .25);
  color: #22c55e;
  font-size: 3rem;
  font-weight: 700;
}

.ch-encuesta-success h2 {
  margin: 0 !important;
  color: #1f2937 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ch-encuesta-success p {
  max-width: 30rem;
  margin: 1rem auto 0 !important;
  color: #4b5563 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

.ch-encuesta-again {
  width: auto !important;
  margin: 2rem auto 0 !important;
}

.ch-encuesta-stage [hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .ch-encuesta-stage {
    padding-right: 7rem;
    padding-left: 7rem;
  }
}

@media (max-width: 767px) {
  .ch-encuesta-stage {
    padding: 6rem 1rem 5rem;
  }

  .ch-encuesta-card {
    width: min(100%, 31rem);
  }

  .ch-encuesta-header,
  .ch-encuesta-form {
    padding: 1.25rem !important;
  }

  .ch-encuesta-logo {
    width: 9rem;
    height: 6.5rem;
    margin-bottom: .75rem;
  }

  .ch-encuesta-header h1 {
    font-size: 1.25rem !important;
  }

  .ch-encuesta-header p {
    font-size: .75rem !important;
  }

  .ch-encuesta-fields {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ch-encuesta-divider {
    margin: 1.5rem 0 !important;
  }

  .ch-encuesta-questions {
    gap: 1.35rem;
  }

  .ch-encuesta-rating,
  .ch-encuesta-rating-labels {
    width: min(100%, 19.5rem);
  }

  .ch-encuesta-rating button {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    font-size: .875rem !important;
  }

  .ch-encuesta-question-title,
  .ch-encuesta-field label {
    font-size: .78rem !important;
  }

  .ch-encuesta-submit {
    font-size: .875rem !important;
  }
}

@media (max-width: 390px) {
  .ch-encuesta-rating {
    gap: .45rem;
  }

  .ch-encuesta-rating button {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    min-height: 2.25rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ch-encuesta-stage *,
  .ch-encuesta-stage *::before,
  .ch-encuesta-stage *::after {
    transition-duration: .01ms !important;
  }
}
