/* =============================================
   COOKIE BANNER — Mini botón mobile
   ============================================= */

/* Mobile: ocultar banner completo, mostrar mini botón */
@media (max-width: 768px) {
  .cmplz-cookiebanner.cmplz-show {
    transform: translateY(110%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease !important;
  }

  .cmplz-cookiebanner.cmplz-show.anali-cookie-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 999999 !important;
  }
}

/* Mini cookie button (solo visible en mobile) */
.anali-cookie-mini {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 999998;
  display: none;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: none;
  border-radius: 25px;
  padding: 8px 14px 8px 10px;
  cursor: pointer;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(124, 54, 80, 0.08);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-principal, #7C3650);
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: analiCookieEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             analiCookiePulse 2s ease-in-out 1.5s 3;
}

@media (max-width: 768px) {
  .anali-cookie-mini {
    display: flex;
  }
}

.anali-cookie-mini:hover {
  transform: scale(1.05);
  box-shadow:
    0 4px 20px rgba(124, 54, 80, 0.2),
    0 0 0 1px rgba(124, 54, 80, 0.15);
}

.anali-cookie-mini:active {
  transform: scale(0.97);
}

.anali-cookie-mini-icon {
  font-size: 20px;
  line-height: 1;
}

.anali-cookie-mini-text {
  white-space: nowrap;
}

/* Entrance animation */
@keyframes analiCookieEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulse to draw attention */
@keyframes analiCookiePulse {
  0%, 100% { transform: scale(1); }
  50% {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(124, 54, 80, 0.25);
  }
}

/* Overlay behind expanded banner */
.anali-cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.anali-cookie-overlay--active {
  opacity: 1;
  /* pointer-events stays none — overlay is purely visual */
}
