/* ==========================================================================
   DISFRACES PAOLA - ADAPTACIÓN RESPONSIVA Y EXPERIENCIA MÓVIL (MOBILE FIRST)
   ========================================================================== */

/* ==========================================================================
   BARRA DE NAVEGACIÓN INFERIOR PARA DISPOSITIVOS MÓVILES (ESTILO APP NATIVA)
   ========================================================================== */
.bottom-nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 11, 28, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 990;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
  .bottom-nav-mobile {
    display: none; /* En escritorio se usa el header */
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  gap: 3px;
  flex: 1;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover, .bottom-nav-item:active {
  color: var(--text-main);
}

.bottom-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* Botón central destacado para el Probador IA */
.bottom-nav-item.nav-item-tryon {
  color: #fff;
}

.nav-tryon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-magic);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.6);
  margin-top: -16px;
  border: 3px solid #0f0b1c;
  animation: pulseNeon 2.5s infinite;
}

@keyframes pulseNeon {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.6);
  }
  50% {
    box-shadow: 0 4px 25px rgba(168, 85, 247, 0.9);
    transform: scale(1.04);
  }
}

.bottom-nav-badge {
  position: absolute;
  top: 6px;
  right: 25%;
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MEDIA QUERIES Y AJUSTES DE PANTALLA
   ========================================================================== */

/* Dispositivos Móviles Pequeños (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-features-strip {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .costumes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .tryon-modal-header {
    padding: 1rem 1.25rem;
  }

  .tryon-modal-body {
    padding: 1.25rem;
  }

  .comparison-wrapper {
    height: auto;
    max-height: 60vh;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .toast {
    width: 90%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

/* Tablets y Pantallas Medianas (481px a 991px) */
@media (min-width: 481px) and (max-width: 991px) {
  .costumes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-features-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Escritorio (>= 992px) */
@media (min-width: 992px) {
  .header-search {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero-title {
    font-size: 3rem;
  }

  .site-footer {
    padding-bottom: 3.5rem; /* Ya no necesita el margen de la barra inferior */
  }
}

/* Soporte de accesibilidad para movimientos reducidos */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
