/* ============================================================================
   Microinteracciones y animaciones que Tailwind (play CDN) no cubre.
   ============================================================================ */

html, body {
  height: 100%;
}

/* --- Transición entre pantallas del embudo -------------------------------- */
.screen {
  animation: screenIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Estrellas -------------------------------------------------------------- */
.star-btn {
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease, filter 0.15s ease;
}

.star-btn:active {
  transform: scale(0.85);
}

.star-btn.is-filled {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.45));
}

.star-btn.pop {
  animation: starPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* --- Tags de mejora (Ruta A) ------------------------------------------------ */
.tag-chip {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.tag-chip:active {
  transform: scale(0.96);
}

.tag-chip.is-selected {
  background-color: rgba(29, 158, 117, 0.15);
  border-color: rgb(29, 158, 117);
  color: rgb(63, 185, 142);
}

/* --- Tarjetas de interés (Ruta B) ------------------------------------------- */
.interest-card {
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.12s ease;
}

.interest-card:active {
  transform: scale(0.98);
}

.interest-card.is-selected {
  border-color: rgb(29, 158, 117);
  background-color: rgba(29, 158, 117, 0.08);
  box-shadow: 0 0 0 1px rgba(29, 158, 117, 0.4), 0 8px 24px -8px rgba(29, 158, 117, 0.35);
}

/* --- Botón primario: leve "respiración" al aparecer ------------------------- */
.btn-primary {
  animation: btnIn 0.3s ease both;
}

@keyframes btnIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Confeti ----------------------------------------------------------------- */
.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  will-change: transform, opacity;
  animation-name: confettiFall;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(540deg);
    opacity: 0;
  }
}

/* --- Scrollbar discreto (webkit) -------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #2a3742;
  border-radius: 999px;
}

/* --- Utilidad: ocultar sin afectar el flujo de animación -------------------- */
.hidden {
  display: none !important;
}
