/* ================================================
   AMMORIA — Notice: Envío Local Querétaro
   Glassmorphism + colores de marca
   Compact horizontal layout
   ================================================ */

.amm-notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 470px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: ammNoticeIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  pointer-events: none;
}

.amm-notice.is-hiding {
  animation: ammNoticeOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) both;
}

@keyframes ammNoticeIn {
  from {
    opacity: 0;
    transform: translateX(-20px) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes ammNoticeOut {
  from {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px) translateY(20px);
  }
}

.amm-notice__card {
  pointer-events: all;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow:
    0 8px 28px rgba(115, 29, 32, 0.1),
    0 2px 6px rgba(115, 29, 32, 0.05),
    0 0 0 1px rgba(115, 29, 32, 0.04) inset;
  position: relative;
}

.amm-notice__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  animation: ammRocketWiggle 2s ease-in-out infinite;
}

@keyframes ammRocketWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-4px) rotate(-3deg); }
  75%  { transform: translateY(-2px) rotate(3deg); }
}

.amm-notice__content {
  flex: 0 1 auto;
  min-width: 0;
}

.amm-notice__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d3d3d;
  line-height: 1.3;
  white-space: nowrap;
}

.amm-notice__title strong {
  color: #731d20;
}

.amm-notice__body {
  margin: 0;
  font-size: 0.74rem;
  color: #6d6d6d;
  line-height: 1.4;
  white-space: nowrap;
}

.amm-notice__body strong {
  color: #6dab3c;
  font-weight: 700;
}

.amm-notice__platforms {
  flex-shrink: 0;
  max-width: 72px;
  height: auto;
  opacity: 0.85;
  align-self: center;
}

.amm-notice__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(115, 29, 32, 0.06);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #731d20;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.amm-notice__close:hover {
  background: rgba(115, 29, 32, 0.15);
  transform: scale(1.1);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 480px) {
  .amm-notice {
    bottom: 16px;
    left: 12px;
    width: calc(100% - 24px);
  }

  .amm-notice__card {
    padding: 12px 14px;
    gap: 8px;
    border-radius: 16px;
  }

  .amm-notice__icon {
    font-size: 1.3rem;
  }

  .amm-notice__title {
    font-size: 0.76rem;
  }

  .amm-notice__body {
    font-size: 0.7rem;
  }

  .amm-notice__platforms {
    max-width: 60px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .amm-notice,
  .amm-notice.is-hiding {
    animation: none !important;
  }
  .amm-notice__icon {
    animation: none !important;
  }
}