/**
 * Vitrina Plus - Diseño Ultra-Moderno
 * Características: Glassmorphism, Gradientes Animados, Hover 3D, Micro-animaciones
 */

/* ================================
   VARIABLES MODERNAS
   ================================ */
:root {
  /* Colores principales */
  --vp-primary: #667eea;
  --vp-primary-light: #764ba2;
  --vp-accent: #f093fb;
  --vp-success: #4facfe;
  --vp-warning: #fa709a;
  
  /* Gradientes únicos */
  --vp-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --vp-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --vp-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --vp-gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* Colores neutrales */
  --vp-bg-primary: #ffffff;
  --vp-bg-secondary: #f8fafc;
  --vp-bg-tertiary: #f1f5f9;
  --vp-text-primary: #0f172a;
  --vp-text-secondary: #475569;
  --vp-text-tertiary: #94a3b8;
  --vp-border: #e2e8f0;
  
  /* Glassmorphism */
  --vp-glass-bg: rgba(255, 255, 255, 0.7);
  --vp-glass-border: rgba(255, 255, 255, 0.18);
  --vp-glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  
  /* Sombras modernas */
  --vp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --vp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --vp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --vp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --vp-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Animaciones */
  --vp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --vp-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --vp-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET Y BASE
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.vitrina-modern {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--vp-bg-secondary);
  color: var(--vp-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================
   BOTONES FLOTANTES SUPERIORES
   ================================ */
.vp-floating-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.vp-floating-nav button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
  background: #f8fafc !important;
}

/* ================================
   HERO SECTION ULTRA-MODERNO
   ================================ */
.vp-hero-modern {
  position: relative;
  min-height: 600px;
  background: var(--vp-gradient-hero);
  overflow: hidden;
  animation: gradientShift 15s ease infinite;
  padding: 100px 20px 80px 20px;
  /* Sin parallax - se queda fijo */
  /* Padding top extra para botones flotantes */
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.vp-hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.vp-hero-modern__banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.vp-hero-modern__content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
}

/* Logo flotante con glassmorphism */
.vp-logo-float {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  background: var(--vp-glass-bg);
  box-shadow: var(--vp-glass-shadow), var(--vp-shadow-2xl);
  object-fit: cover;
  margin-bottom: 32px;
  animation: logoFloat 3s ease-in-out infinite;
  transition: var(--vp-transition);
}

.vp-logo-float:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.vp-hero-modern__title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.8s ease;
}

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

.vp-verified-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--vp-gradient-3);
  border-radius: 50%;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(79, 172, 254, 0); }
}

.vp-hero-modern__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.vp-hero-modern__description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* ================================
   BOTONES MODERNOS
   ================================ */
.vp-actions-modern {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.vp-btn-modern {
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--vp-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.vp-btn-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.vp-btn-modern:hover::before {
  width: 300px;
  height: 300px;
}

.vp-btn-primary {
  background: white;
  color: var(--vp-primary);
  box-shadow: var(--vp-shadow-lg);
}

.vp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--vp-shadow-xl);
}

.vp-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.vp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ================================
   TABS MODERNOS
   ================================ */
.vp-tabs-modern {
  position: sticky;
  top: 0;
  background: var(--vp-glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--vp-border);
  z-index: 100;
  box-shadow: var(--vp-shadow-md);
}

.vp-tabs-modern__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vp-tabs-modern__container::-webkit-scrollbar {
  display: none;
}

.vp-tab-modern {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--vp-text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vp-transition);
  white-space: nowrap;
  position: relative;
}

.vp-tab-modern:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--vp-primary);
}

.vp-tab-modern.active {
  background: var(--vp-gradient-1);
  color: white;
  box-shadow: var(--vp-shadow-md);
}

.vp-tab-modern.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--vp-primary);
}

/* ================================
   CONTENEDOR PRINCIPAL
   ================================ */
.vp-container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Espaciado entre secciones */
#vp-products-section,
#vp-about-section,
#vp-videos-section {
  margin-bottom: 64px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--vp-border);
}

#vp-products-section:first-child {
  padding-top: 0;
}

#vp-videos-section:last-child {
  border-bottom: none;
}

/* ================================
   GRID DE PRODUCTOS 3D
   ================================ */
.vp-products-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.vp-product-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--vp-shadow-md);
  transition: var(--vp-transition);
  cursor: pointer;
  position: relative;
}

.vp-product-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--vp-gradient-1);
  opacity: 0;
  transition: var(--vp-transition);
  z-index: 1;
}

.vp-product-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--vp-shadow-2xl);
}

.vp-product-card-modern:hover::before {
  opacity: 0.05;
}

.vp-product-card-modern__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--vp-transition);
}

.vp-product-card-modern:hover .vp-product-card-modern__image {
  transform: scale(1.1);
}

.vp-product-card-modern__content {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.vp-product-card-modern__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vp-text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vp-product-card-modern__price {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--vp-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.vp-product-card-modern__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--vp-gradient-2);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--vp-shadow-lg);
  z-index: 3;
}

/* ================================
   SECCIÓN SOBRE NOSOTROS
   ================================ */
.vp-about-modern {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--vp-shadow-lg);
  margin-top: 32px;
}

.vp-about-modern__title {
  font-size: 2rem;
  font-weight: 800;
  background: var(--vp-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.vp-about-modern__content {
  color: var(--vp-text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.vp-about-modern__content p {
  margin-bottom: 16px;
}

.vp-about-modern__content strong {
  color: var(--vp-text-primary);
  font-weight: 700;
}

/* ================================
   REDES SOCIALES FLOTANTES
   ================================ */
.vp-social-modern {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.vp-social-modern__link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vp-glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: var(--vp-transition);
  box-shadow: var(--vp-shadow-md);
}

.vp-social-modern__link:hover {
  transform: translateY(-4px) rotate(360deg);
  box-shadow: var(--vp-shadow-xl);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  /* Botones flotantes más compactos en móvil */
  .vp-floating-nav {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
  }
  
  .vp-floating-nav a,
  .vp-floating-nav button {
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
  }
  
  .vp-floating-nav a span,
  .vp-floating-nav button span {
    display: none !important;
  }
  
  .vp-floating-nav a i,
  .vp-floating-nav button svg {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
  }
  
  .vp-hero-modern {
    min-height: 500px;
    padding: 70px 20px 60px 20px;
  }
  
  .vp-logo-float {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
  }
  
  .vp-hero-modern__title {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  
  .vp-hero-modern__meta {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  
  .vp-hero-modern__description {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  
  .vp-products-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .vp-about-modern {
    padding: 32px 24px;
  }
  
  .vp-tabs-modern__container {
    padding: 8px 12px;
  }
  
  .vp-container-modern {
    padding: 24px 16px;
  }
}

/* ================================
   ANIMACIONES DE ENTRADA
   ================================ */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vp-animate-in {
  animation: slideInFromBottom 0.6s ease both;
}

.vp-animate-in:nth-child(1) { animation-delay: 0.1s; }
.vp-animate-in:nth-child(2) { animation-delay: 0.2s; }
.vp-animate-in:nth-child(3) { animation-delay: 0.3s; }
.vp-animate-in:nth-child(4) { animation-delay: 0.4s; }
.vp-animate-in:nth-child(5) { animation-delay: 0.5s; }
.vp-animate-in:nth-child(6) { animation-delay: 0.6s; }

/* ================================
   LOADING SKELETON MODERNO
   ================================ */
.vp-skeleton-modern {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ================================
   EFECTOS DE SCROLL
   ================================ */
.vp-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ================================
   UTILIDADES
   ================================ */
.vp-hidden {
  display: none !important;
}

.vp-visible {
  display: block !important;
}
