﻿/* PARTYVENTURA - CUSTOM STYLES */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Glassmorphism para header */
.backdrop-blur-sm {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Ocultar scrollbar pero mantener funcionalidad */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Animaciones básicas */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #f97316;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

/* Contenedor de tarjetas con overflow especial */
#cardContainer {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 3rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

/* Asegurar que las tarjetas tengan espacio para la sombra */
#cardContainer article {
  position: relative;
  z-index: 1;
}

#cardContainer article:hover {
  z-index: 10;
}

/* Hover effects para cards */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation effects */
nav a {
  position: relative;
  transition: all 0.3s ease;
}

/* Línea indicadora para navegación desktop activa */
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #f97316;
  transition: width 0.3s ease;
}

/* Mostrar línea en hover (desktop) */
nav a:hover::after {
  width: 100%;
}

/* Línea completa para enlace activo (desktop) */
nav a.text-orange-500::after {
  width: 100%;
}

/* Ocultar línea en móvil */
@media (max-width: 1023px) {
  nav a::after {
    display: none;
  }
}

/* Transiciones suaves para cambios de color */
nav a {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Estilos para enlaces activos en móvil */
.flex-shrink-0.text-orange-500 {
  font-weight: 700;
}

/* Hover para enlaces móviles - solo si NO están activos */
@media (max-width: 1023px) {
  .flex-shrink-0:not(.text-orange-500):not(.bg-orange-50):hover {
    color: #f97316;
    background-color: #fff7ed;
  }
}

/* Asegurar que el estado activo tenga máxima prioridad en móvil */
.flex-shrink-0.text-orange-500.bg-orange-50 {
  color: #f97316 !important;
  background-color: #fff7ed !important;
}

/* ===================================
   GALLERY SLIDESHOW
   =================================== */
.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Indicadores de slide */
.slide-indicator {
  cursor: pointer;
}

.slide-indicator:hover {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive height para el slideshow */
@media (min-width: 768px) {
  #galeria .relative.overflow-hidden {
    height: 450px !important;
  }
}

@media (min-width: 1024px) {
  #galeria .relative.overflow-hidden {
    height: 550px !important;
  }
}

/* =======================================
   ARRASTRE DE TARJETAS DE PRECIOS
   ======================================= */

/* Ocultar scrollbar en desktop manteniendo funcionalidad */
@media (min-width: 1024px) {
  #cardContainer {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  #cardContainer::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
  }
}

/* Estilos para los botones de navegación */
#prevCard, #nextCard {
  transition: all 0.3s ease;
}

#prevCard:hover, #nextCard:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#prevCard:active, #nextCard:active {
  transform: translateY(-50%) scale(0.95);
}

/* Prevenir selección de texto durante el arrastre */
#cardContainer.dragging {
  cursor: grabbing !important;
  user-select: none;
}

#cardContainer.dragging * {
  user-select: none;
  pointer-events: none;
}

/* Dots de indicador de posición */
#dots .dot {
  transition: all 0.3s ease;
}

#dots .dot.scale-110 {
  transform: scale(1.1);
}

#dots .dot:hover {
  transform: scale(1.2);
}
