/* Custom styles adicionales a Tailwind para NILFIT */

html { scroll-behavior: smooth; }

/* Scrollbar estética (Webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0b0c; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* Animaciones utilitarias */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-marquee .marquee-track {
  animation: marquee 30s linear infinite;
  width: max-content;
  padding-right: 4rem;
}
.logo-marquee:hover .marquee-track { animation-play-state: paused; }

/* Scroll reveal base (clases añadidas en JS) */
.animate-enter { opacity: 1 !important; transform: translateY(0) !important; }

/* Focus visible fallback */
.user-tabbing :focus { outline: 2px solid #d40000; outline-offset: 2px; }

/* Preferencia reduce-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .logo-marquee .marquee-track { animation: none; }
}

/* Utility override para backgrounds blend lujo */
.bg-lux-gradient {
  background: linear-gradient(135deg, rgba(201,166,70,0.12), rgba(212,0,0,0.12));
}

/* Video highlight helpers */
.vh-item .vh-floating { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vh-item video { transition: transform 8s linear, opacity .6s ease; }
.vh-item:hover video { transform: scale(1.05); }
.vh-item h3 { text-shadow: 0 2px 8px rgba(0,0,0,0.6); }

/* Thin scrollbar for includes list */
.scroll-thin::-webkit-scrollbar { width: 6px; }
.scroll-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.scroll-thin::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* Toggle chevron animation */
button[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* ===== GLASSMORPHISM & ANIMATIONS ===== */

/* Glassmorphism effects */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card-strong {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Hover effects for glass cards */
.glass-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-hover:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(212, 0, 0, 0.3);
  box-shadow: 0 20px 50px rgba(212, 0, 0, 0.15);
}

/* Advanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation utility classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Stagger delays for smooth sequential animations */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Initial state for animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Image overlay effects */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(212, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.image-overlay img {
  transition: transform 0.6s ease;
}

.image-overlay:hover img {
  transform: scale(1.05);
}

/* ===== CAROUSEL SYSTEM ===== */

/* Carousel container - MEJORADO */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 0 60px; /* Espacio para botones */
  border-radius: 12px;
}

/* Responsive spacing */
@media (max-width: 768px) {
  .carousel-container {
    margin: 0 50px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    margin: 0 45px;
  }
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

/* 3-slide view for desktop */
@media (min-width: 768px) {
  .carousel-slide {
    min-width: calc(100% / 3);
    padding: 0 0.75rem;
  }
}

/* Carousel dots - MEJORADOS */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.carousel-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #d40000;
  border-color: #d40000;
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(212, 0, 0, 0.5);
}

.carousel-dot.active::before {
  border-color: rgba(212, 0, 0, 0.3);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.15);
}

/* Responsive dots */
@media (max-width: 768px) {
  .carousel-dots {
    gap: 0.5rem;
    margin-top: 2rem;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

/* Carousel navigation arrows - MEJORADOS */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 20;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
}

.carousel-nav:hover {
  background: rgba(212, 0, 0, 0.9);
  border-color: #d40000;
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 8px 30px rgba(212, 0, 0, 0.4);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

/* APPAREL CARDS - Efectos premium */
.apparel-card {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.apparel-card:hover {
  transform: translateY(-8px);
}

/* Glass card effect específico para moda */
.apparel-card .glass-card {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Hover effects para imágenes de productos */
.apparel-card img {
  filter: brightness(0.95) contrast(1.1);
}

.apparel-card:hover img {
  filter: brightness(1.1) contrast(1.2) saturate(1.1);
}

/* Botones de filtro de categorías */
.category-filter {
  position: relative;
  overflow: hidden;
}

.category-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.category-filter:hover::before {
  left: 100%;
}

/* Newsletter signup específico */
#newsletterEmail {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#newsletterEmail:focus {
  outline: none;
  border-color: #d40000;
  box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.1);
}

/* Efectos de glow para productos destacados */
.apparel-card:hover .absolute.-inset-2 {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Responsive carousel navigation */
@media (max-width: 768px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .carousel-nav.prev {
    left: 5px;
  }
  
  .carousel-nav.next {
    right: 5px;
  }
}

/* Hide navigation on very small screens if needed */
@media (max-width: 480px) {
  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* Auto-pause on hover */
.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

/* Testimonial specific styling */
.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 0, 0, 0.3);
  transform: translateY(-4px);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d40000, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 1rem;
}

.testimonial-text {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: #fbbf24;
  font-size: 1.2rem;
}


