.calc-spinner-overlay {
  position: absolute;
  inset: 0;
  /* top/right/bottom/left: 0 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 20;
  transition: opacity 0.2s ease;
}

.calc-spinner-overlay[hidden] {
  display: none;
}

.calc-spinner--loading>*:not(.calc-spinner-overlay):not(.calc-reveal__hint) {
  pointer-events: none;
  user-select: none;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

/* Anillo animado */
.calc-spinner__ring {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--color-primary, #2563eb);
  border-radius: 50%;
  animation: calc-spin 0.75s linear infinite;
}

@keyframes calc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tamaño más pequeño para secciones compactas */
.calc-spinner--sm .calc-spinner__ring {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* Asegura posicionamiento para el hint y el pseudo-elemento */
.calc-reveal--locked,
.calc-reveal--unlocked {
  position: relative;
}

.calc-reveal--locked::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.089);
  border-radius: inherit;
  z-index: 4;
  pointer-events: none;
  transition:
    opacity 0.55s ease,
    backdrop-filter 0.55s ease;
  opacity: 1;
}

.calc-reveal--unlocked::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: transparent;
  border-radius: inherit;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.55s ease,
    backdrop-filter 0.55s ease;
}

/* Atenúa el contenido real (no el hint) mientras está bloqueado */
.calc-reveal--locked>*:not(.calc-reveal__hint) {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.55s ease;
}

.calc-reveal--unlocked>*:not(.calc-reveal__hint) {
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
  transition: opacity 0.55s ease;
}

/* Hint — contenedor centrado */
.calc-reveal__hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Nombre de la web con efecto escáner */
.calc-reveal__brand {
  position: relative;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1e3a5f;
  overflow: hidden;
  line-height: 1;
}

/* Punto de color en el nombre (Caculi·com) */
.calc-reveal__brand-dot {
  color: var(--accent-color);
}

/* Línea de escaneo que recorre el texto */
.calc-reveal__brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.72) 50%,
      transparent 100%);
  animation: calc-scan 2.4s ease-in-out infinite;
}

@keyframes calc-scan {
  0% {
    left: -60%;
  }

  100% {
    left: 120%;
  }
}

/* Texto indicativo debajo del nombre */
.calc-reveal__hint-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Ocultar hint una vez revelado */
.calc-reveal--unlocked .calc-reveal__hint {
  opacity: 0;
  pointer-events: none;
}

#resultsSection .calc-reveal__hint-icon {
  font-size: 2.4rem;
  opacity: 0.6;
}

#resultsSection .calc-reveal__hint-text {
  font-size: 1rem;
  color: #4b5563;
  max-width: 220px;
  line-height: 1.5;
}