/* =========================================================================
   ESTILOS DEL MODO DEMO (Versión de Prueba — Caché Local)
   ========================================================================= */

.demo-mode-ribbon {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23, 30, 20, 0.92);
  color: #FAF7F2;
  border: 1px solid rgba(201, 160, 80, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.74rem;
  line-height: 1.3;
}

.demo-ribbon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D4B074;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(212, 176, 116, 0.25);
}

.demo-ribbon-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-ribbon-text strong {
  color: #E8C988;
  letter-spacing: 0.06em;
}

.demo-ribbon-reset {
  flex-shrink: 0;
  border: 1px solid rgba(232, 201, 136, 0.55);
  background: rgba(212, 176, 116, 0.16);
  color: #FAF7F2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.demo-ribbon-reset:hover {
  background: rgba(212, 176, 116, 0.32);
}

.demo-ribbon-reset:active {
  transform: scale(0.97);
}

/* Banner de aviso en páginas clave (Cámara, Login, Galería) */
.demo-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 160, 80, 0.12), rgba(74, 88, 66, 0.08));
  border: 1px solid rgba(184, 147, 90, 0.42);
  color: #2E352B;
  text-align: left;
}

.demo-notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(184, 147, 90, 0.18);
  color: #8A6832;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.demo-notice-body h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #1F1D1B;
}

.demo-notice-body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4A5246;
}

.demo-credentials-box {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(184, 147, 90, 0.12);
  border: 1px dashed rgba(184, 147, 90, 0.55);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #3A352F;
  text-align: left;
}

.demo-credentials-box strong {
  color: #1F1D1B;
}

.demo-credentials-box code {
  background: rgba(31, 29, 27, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 600;
}

/* Estado visual deshabilitado en las tarjetas de cámara */
.camera-option-card.is-demo-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.camera-option-card.is-demo-disabled:hover {
  transform: none;
}

@media (max-width: 600px) {
  .demo-mode-ribbon {
    width: calc(100vw - 20px);
    justify-content: space-between;
    padding: 7px 11px;
    font-size: 0.69rem;
  }
}

@media print {
  .demo-mode-ribbon {
    display: none !important;
  }
}
