/* Página QR — Coca-Cola DESIGN */

.status-app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  padding: 0;
  min-height: 100dvh;
}

.status-panel {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.status-shell {
  --status-vibe-h: 14vh;
  position: relative;
  flex: 1;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cc-red);
  padding: env(safe-area-inset-top, 0) 1.25rem 0;
}

.status-shell__head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(24px, 6vw, 40px);
  text-align: center;
  position: relative;
  z-index: 2;
}

.status-logo {
  width: min(52vw, 220px);
  height: auto;
  display: block;
  margin: 0 auto clamp(12px, 3vw, 20px);
}

.status-vibe {
  position: absolute;
  top: 80%;
  left: 0;
  right: 0;
  transform: translateY(-40%);
  width: 100%;
  height: auto;
  max-height: var(--status-vibe-h);
  object-position: center;
  pointer-events: none;
  z-index: 1;
}

/* —— Loading —— */
.status-panel--loading {
  position: relative;
  padding-bottom: calc(var(--status-vibe-h) + env(safe-area-inset-bottom, 0));
}

.status-message--loading-title {
  margin: 0 0 clamp(16px, 4vw, 28px);
  padding: 0 0.5rem;
  max-width: 92%;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--cc-white);
}

.status-loading-stage {
  position: relative;
  z-index: 2;
  width: min(78vw, 340px);
  margin: clamp(8px, 3vw, 24px) auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-loading-hero {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.status-loading-hero:not([src]),
.status-loading-hero[src=""] {
  display: none;
}

.status-message--loading {
  position: relative;
  z-index: 2;
  margin: clamp(12px, 3vw, 20px) 0;
  padding: 0 0.5rem calc(var(--status-vibe-h) * 0.25);
  max-width: 92%;
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-white);
}

.status-panel--loading .status-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: var(--cc-white);
  z-index: 2;
}

.status-panel--loading .status-spinner.hidden {
  display: none;
}

/* —— Ready —— */
.status-panel--ready {
  position: relative;
}

.status-shell--ready {
  gap: clamp(12px, 3vw, 20px);
  padding-bottom: calc(var(--status-vibe-h) + env(safe-area-inset-bottom, 0));
}

.status-ready-ui {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 4vw, 24px);
  position: relative;
  z-index: 2;
  flex: 1;
}

.status-ready-ui.is-locked {
  pointer-events: none;
}

.status-message--ready {
  margin: 0;
  width: 100%;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cc-white);
}

.status-panel--ready .status-preview-wrap {
  width: min(92vw, 420px);
  margin: 0;
  background: transparent;
}

.status-preview-frame {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.status-preview-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.status-actions {
  width: 100%;
  max-width: 420px;
  margin-top: 0;
  padding: 4px 0 clamp(8px, 2vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-actions .btn--pill-white {
  width: 100%;
  background: var(--cc-white);
  color: var(--cc-red);
  min-height: 52px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
}

.status-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* —— Celebración overlay —— */
.status-celebrate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.status-celebrate__particles {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.status-celebrate__logo {
  position: relative;
  z-index: 2;
  width: min(75vw, 320px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.status-celebrate-particle--confetti {
  position: absolute;
  border-radius: 2px;
  will-change: transform, opacity;
}

.status-celebrate-particle--streamer {
  position: absolute;
  border-radius: 999px;
  will-change: transform, opacity;
}

.status-celebrate-particle--confetti-star {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.status-celebrate-particle--confetti-dot {
  border-radius: 50%;
}

.status-celebrate-particle--confetti-curl {
  border-radius: 42% 58% 63% 37% / 39% 42% 58% 61%;
}

/* —— Error —— */
.status-shell--error {
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.status-panel--error .status-message {
  color: var(--cc-white);
  font-weight: 800;
  text-transform: uppercase;
}

.btn-icon {
  width: 22px;
  height: 22px;
}
