:root {
  --nps-teal: #00bcb4;
  --nps-red: #e62a33;
  --nps-blue: #0089c4;
  --nps-orange: #f26b00;
  --nps-pink: #df1972;
  --nps-ink: #071742;
  --nps-paper: #fffaf0;
  --nps-mint: #dcece3;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

body.nps-page {
  height: 100%;
  min-height: 100svh;
  margin: 0;
  font-family: "SoDo Sans", Poppins, Arial, sans-serif;
  color: var(--nps-ink);
  background: #ffffff;
  overflow: hidden;
}

/* --nps-alto-visible lo pone nps-encuesta.js con visualViewport: con el teclado abierto el alto
   visible es menor que 100svh (iOS no achica la pagina) y los botones quedaban debajo del teclado. */
.nps-page-shell {
  height: var(--nps-alto-visible, 100svh);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.nps-page-shell--inactive {
  padding: clamp(8px, 1.8vh, 18px);
}

.nps-experience-shell,
.nps-unavailable {
  position: relative;
  width: min(100%, 1420px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(7, 23, 66, 0.12);
}

.nps-experience-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 1420px);
  border-radius: 0;
  box-shadow: none;
}

.nps-banner {
  display: block;
  flex: 0 0 clamp(150px, 25svh, 280px);
  width: 100%;
  height: clamp(150px, 25svh, 280px);
  max-height: none;
  aspect-ratio: 1420 / 300;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 10px rgba(7, 23, 66, 0.16);
}

.nps-banner--mobile {
  display: none;
}

body.nps-page--admin-preview .nps-banner {
  flex-basis: clamp(72px, 15svh, 150px);
  height: clamp(72px, 15svh, 150px);
  max-height: none;
  object-fit: cover;
}

.nps-carousel__item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 18px 28px rgba(7, 23, 66, 0.18));
  transform: translateY(18px) scale(0.88) rotate(-4deg);
  transition: opacity 600ms ease, transform 600ms ease;
}

.nps-carousel__item.is-active {
  opacity: 0.9;
  transform: translateY(0) scale(1.02) rotate(0deg);
}

.nps-experience__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(4px, 1vh, 10px);
  flex: 1;
  min-height: 0;
  padding: clamp(8px, 1.5vh, 16px) clamp(32px, 6vw, 82px);
  overflow: hidden;
}

body.nps-survey-active .nps-experience__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

body.nps-survey-active .nps-hero-copy {
  display: block;
}

body.nps-survey-active .nps-hero-copy h1 {
  display: none;
}

.nps-hero-copy {
  position: relative;
  width: 100%;
  min-width: 0;
  max-height: 100%;
  max-width: 680px;
  justify-self: center;
}

.nps-hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  height: auto;
  justify-content: center;
}

.nps-hero-header .nps-carousel {
  margin: 0 !important;
  flex-shrink: 0;
}

.nps-hero-copy h1 {
  max-width: 530px;
  margin: 0;
  color: var(--nps-ink);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.nps-hero-note {
  max-width: 430px;
  margin: 18px 0 0;
  padding: 13px 16px 13px 18px;
  border-left: 5px solid var(--nps-orange);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(7, 23, 66, 0.86);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.35;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(242, 107, 0, 0.14);
}

.nps-panel {
  width: 100%;
  max-width: 680px;
  margin: 0;
}

.nps-store-panel {
  padding-top: clamp(0px, 3vh, 28px);
}

.nps-store-title {
  margin: 0 0 28px;
  color: var(--nps-teal);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  font-weight: 500;
  text-align: center;
  animation: nps-title-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes nps-title-reveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.7) translateY(24px) rotate(-2deg);
    letter-spacing: 0.3em;
  }
  60% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.06) translateY(-4px) rotate(0.5deg);
    letter-spacing: -0.01em;
  }
  80% {
    transform: scale(0.98) translateY(2px) rotate(-0.3deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0) rotate(0deg);
    letter-spacing: 0;
  }
}

.nps-store-instructions {
  margin: 0 0 22px;
  color: var(--nps-ink);
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.35;
  font-weight: 500;
}

.nps-store-instructions span {
  font-weight: 500;
}

.nps-flow {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 100%;
  min-height: 0;
  align-self: start;
  justify-self: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.nps-question-panel--message {
  padding-top: 44px;
}

.nps-hero-copy .nps-carousel {
  position: relative;
  width: min(100%, clamp(140px, 20vw, 220px));
  height: clamp(54px, 8svh, 84px);
  margin: 0 auto 4px !important;
  pointer-events: none;
}

body.nps-survey-active .nps-hero-copy .nps-carousel {
  width: min(100%, clamp(140px, 18vw, 190px));
  height: clamp(48px, 7svh, 72px);
}

.nps-magical-text,
body.nps-survey-active .nps-magical-text {
  display: none;
}

.nps-magical-text {
  max-width: 520px;
  color: var(--nps-ink);
}

.nps-magical-text h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--nps-pink);
  margin: 0 0 10px 0;
}

.nps-magical-text p {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(7, 23, 66, 0.8);
  margin: 0;
}

.nps-slide-exit {
  animation: nps-slide-exit 140ms ease-in both;
  pointer-events: none;
}

.nps-slide-forward {
  animation: nps-slide-forward 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nps-slide-back {
  animation: nps-slide-back 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nps-slide-exit {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}

@keyframes nps-slide-forward {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nps-slide-back {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nps-panel__eyebrow {
  margin: 0 0 12px;
  color: var(--nps-teal);
  font-size: 14px;
  font-weight: 800;
}

.search-box,
.form-input,
.comment-box {
  width: 100%;
  border: 1.5px solid rgba(7, 23, 66, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--nps-ink);
  font: inherit;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.search-box,
.form-input {
  min-height: 50px;
  padding: 12px 15px;
}

.search-box:focus,
.form-input:focus,
.comment-box:focus {
  border-color: var(--nps-teal);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(0, 188, 180, 0.12);
}

.store-list {
  display: grid;
  gap: 8px;
  max-height: min(250px, 32svh);
  margin: 10px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.store-list li {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 23, 66, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.store-list li:hover,
.store-list li.selected {
  border-color: var(--nps-teal);
  color: var(--nps-teal);
  background: rgba(0, 188, 180, 0.1);
}

/* Heladeria cerrada: seleccionable, solo atenuada; al seleccionarla se muestra su horario */
.store-list li.nps-store-closed {
  opacity: 0.72;
}

.store-list li .nps-store-estado {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nps-red, #d64545);
}

/* Pantalla de heladeria cerrada (llegada por QR) */
.nps-closed {
  text-align: center;
}

.nps-closed-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--nps-teal, #00bcb4);
}

.nps-closed-store {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.nps-closed-reason {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--nps-red, #d64545);
}

.nps-closed-next {
  margin: 0 0 18px;
  color: rgba(7, 23, 66, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn[hidden] {
  display: none !important;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.btn-primary {
  width: min(100%, 300px);
  margin: 22px 0 0;
  color: #ffffff;
  background: var(--nps-color);
  box-shadow: 0 12px 24px rgba(0, 160, 150, 0.25);
}

.button-row--horizontal {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  margin-top: 22px;
  width: 100%;
}

.button-row--horizontal .btn {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.btn-secondary {
  color: var(--nps-ink);
  background: rgba(7, 23, 66, 0.08);
}

.progress-bar {
  display: none;
}

.tag {
  display: none;
}

body.nps-survey-active .tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--nps-mint);
  color: var(--nps-teal);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 188, 180, 0.08);
}

.step-question h2,
.nps-data-panel h2 {
  max-width: 610px;
  margin: 0 0 20px;
  color: rgba(7, 23, 66, 0.88);
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.25;
  /* El titulo de la pregunta trae su peso definido por diseno: el admin escribe texto
     plano, sin marcadores ** para negrita. */
  font-weight: 600;
}

.nps-scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.nps-btn {
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  color: var(--nps-ink);
  background: #f3f4f6;
  font: inherit;
  font-size: clamp(15px, 1.6vw, 24px);
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(7, 23, 66, 0.06);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.nps-btn:hover {
  background: #e5e7eb;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(7, 23, 66, 0.1);
}

.nps-btn.selected {
  background: var(--nps-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 188, 180, 0.25);
}

.nps-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(7, 23, 66, 0.1);
  color: var(--nps-teal);
  font-size: 13px;
  font-weight: 700;
}

.nps-labels span:nth-child(1) {
  color: var(--nps-red);
}

.nps-labels span:nth-child(2) {
  color: var(--nps-orange);
  text-align: center;
}

.nps-labels span:nth-child(3) {
  text-align: right;
}

.nps-labels--emoji {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.nps-labels--emoji span:nth-child(2) {
  text-align: right;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 15px;
  border: 1.5px solid rgba(7, 23, 66, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.option-item:hover,
.option-item.selected {
  border-color: var(--nps-teal);
  color: var(--nps-teal);
  background: rgba(0, 188, 180, 0.1);
}

.dot,
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid rgba(7, 23, 66, 0.2);
  background: #ffffff;
}

.dot {
  border-radius: 999px;
}

.check {
  border-radius: 7px;
}

.option-item.selected .dot,
.option-item.selected .check {
  border-color: var(--nps-teal);
  background: var(--nps-teal);
  box-shadow: inset 0 0 0 5px #ffffff;
}

.comment-box {
  min-height: 98px;
  padding: 15px;
  resize: vertical;
}

.emoji-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.emoji-btn {
  display: grid;
  place-items: center;
  min-height: 62px;
  border: 1.5px solid rgba(7, 23, 66, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--nps-orange);
  cursor: pointer;
}

.emoji-btn:nth-child(1) {
  color: #e53935;
}

.emoji-btn:nth-child(2) {
  color: #ef6c00;
}

.emoji-btn:nth-child(3) {
  color: #f9a825;
}

.emoji-btn:nth-child(4) {
  color: #66bb6a;
}

.emoji-btn:nth-child(5) {
  color: #2e7d32;
}

.nps-emoji-icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.emoji-btn.selected,
.emoji-btn:hover {
  border-color: var(--nps-color);
  background: rgba(0, 188, 180, 0.1);
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

/* La fila de botones de la pregunta queda pegada al pie del area con scroll (.nps-flow): en una
   pantalla baja o con el teclado abierto, "Siguiente" quedaba bajo el borde y la franja que asomaba
   la tapaba el relleno del contenedor, asi que tocarlo no avanzaba (reportado 2026-10-14). */
#survey-container .button-row {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 10px 0;
  background: #ffffff;
}

.button-row .btn-primary {
  width: auto;
  flex: 1;
  margin-top: 0;
}

.form-label {
  display: block;
  margin: 12px 0 5px;
  font-size: 13px;
  font-weight: 800;
}

.factura-label-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 5px;
}

.factura-label-row .form-label {
  margin: 0;
  padding-top: 1px;
}

.factura-help {
  display: inline-flex;
  flex: 0 0 auto;
}

.factura-help summary {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--nps-color) 14%, white);
  color: var(--nps-color);
  cursor: pointer;
  list-style: none;
}

.factura-help summary::-webkit-details-marker {
  display: none;
}

.factura-help summary svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.factura-help summary:focus-visible {
  outline: 2px solid var(--nps-color);
  outline-offset: 2px;
}

/* Overlay centrado sobre la pantalla. Como popover absoluto quedaba recortado:
   .nps-flow es el contenedor de scroll de la encuesta (overflow-y:auto) y
   cortaba el ejemplo, que ademas se desplegaba fuera de pantalla por anclarse
   al icono. position:fixed lo saca de ambos problemas y da el mismo resultado
   en desktop y en movil. */
.factura-help__example {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 23, 66, 0.12);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 46px rgba(7, 23, 66, 0.3);
  display: grid;
  grid-template-rows: auto auto;
}

/* Fondo oscurecido. Cuelga del summary a proposito: al ser un pseudo-elemento
   suyo, el clic en el fondo se despacha sobre el summary y el <details> se
   cierra con su toggle nativo, sin alcanzar los controles de abajo. */
.factura-help[open] summary::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(7, 23, 66, 0.45);
}

/* La imagen ya viene recortada al area util del tiquete, asi que se muestra
   con su relacion natural. Antes se forzaba una caja alta y el tiquete
   completo se encogia dentro con object-fit, dejando el numero ilegible. */
.factura-help__frame {
  min-height: 0;
  overflow: hidden;
  background: rgba(7, 23, 66, 0.02);
}

.factura-help__frame picture {
  display: block;
}

.factura-help__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74svh;
  object-fit: contain;
}

.factura-help__example figcaption {
  padding: 7px 10px 8px;
  color: rgba(7, 23, 66, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  color: rgba(7, 23, 66, 0.74);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--nps-teal);
}

.nps-privacy {
  margin: 0 0 12px;
  color: rgba(7, 23, 66, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.error-msg {
  display: none;
  margin-top: 10px;
  color: var(--nps-red);
  font-size: 13px;
  font-weight: 700;
}

.error-msg.show {
  display: block;
}

.thanks {
  text-align: center;
}

.thanks h2 {
  margin: 0 0 8px;
  color: var(--nps-teal);
  font-size: 26px;
}

.nps-unavailable {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 36px);
  padding: 40px 24px;
  text-align: center;
}

.nps-unavailable .nps-banner-logo {
  margin: 0 auto 24px;
}

.nps-unavailable h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.nps-unavailable p {
  margin: 0;
  color: rgba(7, 23, 66, 0.7);
  font-weight: 700;
}

.dhco-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: nps-spin 0.8s linear infinite;
}

@keyframes nps-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nps-slide-exit,
  .nps-slide-forward,
  .nps-slide-back,
  .nps-carousel__item,
  .dhco-spinner {
    animation: none;
    transition: none;
  }

  .nps-carousel__item.is-active {
    opacity: 0.9;
    transform: none;
  }
}

@media (max-width: 920px) {
  .nps-page-shell {
    height: var(--nps-alto-visible, 100svh);
    padding: 0;
  }

  .nps-banner {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 750 / 200;
    max-height: clamp(90px, 20svh, 150px);
    object-fit: cover;
    object-position: center;
  }

  .nps-banner--mobile {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 750 / 200;
    max-height: clamp(90px, 20svh, 150px);
    object-fit: cover;
    object-position: center;
  }

  .nps-banner--desktop {
    display: none;
  }

  .nps-experience-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .nps-unavailable {
    min-height: 100vh;
    border-radius: 0;
  }

  .nps-experience__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
    flex: 1;
    min-height: 0;
    padding: clamp(8px, 1.8svh, 16px) clamp(16px, 4vw, 24px) clamp(8px, 1.5svh, 14px);
    overflow: hidden;
  }



  body.nps-survey-active .nps-experience__content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(16px, 2.5svh, 22px);
  }

  body.nps-survey-active .nps-hero-copy {
    display: block;
  }

  .nps-hero-header {
    align-items: center;
    gap: 0;
    height: auto;
  }

  .nps-hero-copy h1 {
    max-width: 360px;
    margin: 0 auto 12px;
    font-size: 40px;
    text-align: center;
  }

  .nps-hero-note {
    max-width: 310px;
    margin: 10px auto 6px;
    padding: 10px 12px;
    border-left-width: 4px;
    font-size: 13px;
    text-align: left;
  }

  .nps-panel {
    max-width: 100%;
    margin-top: 4px;
  }

  .nps-store-panel {
    padding-top: 0;
  }

  .nps-store-title {
    margin-bottom: 14px;
    font-size: 23px;
    text-align: left;
    transform-origin: left center;
  }

  .nps-store-instructions {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.28;
    text-align: left;
  }

  .nps-flow {
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transform: none;
  }

  .nps-question-panel--message {
    padding-top: 0;
  }

  body.nps-message-compact .nps-experience__content {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  body.nps-message-compact .nps-hero-copy h1 {
    max-width: 280px;
    margin-bottom: 4px;
    font-size: 30px;
    line-height: 1;
  }

  body.nps-message-compact .nps-panel {
    margin-top: 10px;
  }

  body.nps-message-compact .step-question h2 {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.15;
  }

  body.nps-message-compact .option-list {
    gap: 7px;
  }

  body.nps-message-compact .option-item {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 12px;
  }

  body.nps-message-compact .button-row {
    margin-top: 12px;
  }

  .nps-hero-copy .nps-carousel {
    width: min(46vw, 180px);
    height: clamp(48px, 8svh, 72px);
    margin: 0 auto 2px !important;
    opacity: 0.95;
  }

  .nps-magical-text {
    display: none;
  }

  body.nps-survey-active .nps-hero-copy h1 {
    display: none;
  }

  body.nps-survey-active .nps-hero-copy .nps-carousel {
    width: min(30vw, 120px);
    height: clamp(38px, 5.5svh, 52px);
    margin: 0 auto !important;
    opacity: 0.95;
  }

  .search-box,
  .form-input {
    min-height: 44px;
    padding: 8px 12px;
    font-size: clamp(12.5px, 3.4vw, 14px);
  }

  .step-question h2,
  .nps-data-panel h2 {
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
    text-align: center;
  }

  .nps-labels {
    font-size: 11px;
  }

  .btn-primary {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 430px) {
  .nps-experience__content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nps-hero-copy h1 {
    font-size: 35px;
  }

  .nps-scale {
    gap: 4px;
  }

  .nps-btn {
    border-radius: 7px;
    font-size: 13px;
  }

  /* Uno al lado del otro: apilados, "Siguiente" quedaba 60 px mas abajo. */
  .button-row .btn-secondary {
    flex: 0 0 auto;
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* ============================================================
 * NPS MAGIC LOADER — Estado de envío mágico POPS (Fondo blanco y colores de marca)
 * ============================================================ */
.nps-magic-loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nps-magic-loader.is-active {
  opacity: 1;
  pointer-events: auto;
}

.nps-magic-loader__card {
  position: relative;
  width: min(100%, 390px);
  padding: 30px 24px 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px -10px rgba(7, 23, 66, 0.1), 0 1px 3px rgba(7, 23, 66, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--nps-ink);
}

.nps-magic-loader__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Halos eliminados para mantener fondo blanco puro sin degradados artificiales */
.nps-magic-glow {
  display: none !important;
}

/* Header: Logo oficial y Badge sobrio */
.nps-magic-loader__header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.nps-magic-logo-wrap {
  position: relative;
  display: inline-block;
}

.nps-magic-loader__logo {
  height: 38px;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.nps-magic-loader__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 8px;
}

/* Escenario Central: Cono y Órbitas */
.nps-magic-loader__stage {
  position: relative;
  z-index: 2;
  width: 170px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.nps-magic-cone-box {
  position: relative;
  animation: npsConeFloat 3.6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes npsConeFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}

.nps-magic-cone-aura {
  display: none !important;
}

.nps-magic-cone-img {
  position: relative;
  max-height: 155px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(7, 23, 66, 0.12));
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Órbitas de Iconos SVG POPS */
.nps-magic-orbit {
  position: absolute;
  pointer-events: none;
}
.nps-magic-orbit--1 {
  animation: npsOrbit1 5.5s linear infinite;
}
.nps-magic-orbit--2 {
  animation: npsOrbit2 7s linear infinite reverse;
}
.nps-magic-orbit--3 {
  animation: npsOrbit3 8.5s linear infinite;
}

@keyframes npsOrbit1 {
  from { transform: rotate(0deg) translateX(70px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
}
@keyframes npsOrbit2 {
  from { transform: rotate(0deg) translateX(62px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(62px) rotate(-360deg); }
}
@keyframes npsOrbit3 {
  from { transform: rotate(0deg) translateX(78px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(78px) rotate(-360deg); }
}

.nps-svg-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.nps-svg-icon--gold {
  color: #f59e0b;
}
.nps-svg-icon--cyan {
  color: #10b981;
}
.nps-svg-icon--coral {
  color: #e62a33;
}

/* Footer: Progreso de Blanco a Verde (0 a 100) */
.nps-magic-loader__footer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.nps-magic-loader__story {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #071742;
  min-height: 20px;
  transition: opacity 0.25s ease;
}

.nps-magic-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
}

.nps-magic-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #00bcb4;
  transition: width 0.25s ease-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nps-magic-spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  margin-right: 1px;
}

.nps-magic-loader__meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  padding: 0 2px;
}

.nps-magic-loader__percent {
  font-weight: 800;
  color: #0089c4;
  font-family: monospace;
  font-size: 12px;
}
