/**
 * ================================================================
 * HOME ARTÍSTICO - MOTOPARTES TRICICLO
 * Diseño único y premium para página principal
 * Armonía con header artístico
 * ================================================================
 */

/* ========== VARIABLES (Sincronizadas con header) ========== */
:root {
  --color-primary: #FF6B35;
  --color-secondary: #004E89;
  --color-accent: #FFD23F;
  --color-dark: #1A1A2E;
  --color-light: #F7F7F7;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Space Grotesk', sans-serif;
}

/* ========== HERO SLIDER ARTÍSTICO ========== */
.section-slide {
  position: relative;
  overflow: hidden;
}

.item-slick1 {
  position: relative;
  height: 85vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.item-slick1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(26, 26, 46, 0.85) 0%, 
    rgba(0, 78, 137, 0.75) 50%,
    rgba(255, 107, 53, 0.65) 100%
  );
  z-index: 1;
}

.item-slick1::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 210, 63, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%);
  z-index: 1;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.item-slick1 .container {
  position: relative;
  z-index: 2;
}

.layer-slick1 {
  opacity: 0;
  transform: translateY(30px);
}

.layer-slick1.animated {
  animation: slideUpFade 1s ease forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Texto del Hero */
.ltext-101 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow: 0 2px 10px rgba(255, 210, 63, 0.3);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 210, 63, 0.1);
  border-radius: 50px;
  border: 2px solid rgba(255, 210, 63, 0.3);
  backdrop-filter: blur(10px);
}

.ltext-201 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: white;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 107, 53, 0.3);
  margin: 2rem 0;
  position: relative;
}

.ltext-201::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Botón Hero Artístico */
.size-101 {
  padding: 1.25rem 3rem !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  font-family: var(--font-body) !important;
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a) !important;
  border: 3px solid white !important;
  border-radius: 50px !important;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 8px 25px rgba(255, 107, 53, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  position: relative;
  overflow: hidden;
}

.size-101::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;
}

.size-101:hover::before {
  width: 300px;
  height: 300px;
}

.size-101:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 
    0 15px 40px rgba(255, 107, 53, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-color: var(--color-accent) !important;
}

.size-101 i {
  transition: transform 0.3s ease;
}

.size-101:hover i {
  transform: translateX(5px);
}

/* ========== SECCIÓN DE CATEGORÍAS ARTÍSTICA ========== */
.sec-banner {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
  position: relative;
  overflow: hidden;
}

.sec-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 78, 137, 0.03) 0%, transparent 50%);
  animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5%); }
}

.section-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-secondary);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards de Categorías Artísticas */
.block1 {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 450px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.block1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(26, 26, 46, 0.7) 0%, 
    rgba(255, 107, 53, 0.6) 100%
  );
  z-index: 1;
  transition: opacity 0.5s ease;
}

.block1:hover::before {
  opacity: 0.9;
}

.block1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.block1:hover img {
  transform: scale(1.15) rotate(2deg);
}

.block1:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.25);
}

.block1-txt {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.block1-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.block1:hover .block1-name {
  transform: translateY(-10px);
}

.block1-info {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.block1-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--color-primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.block1:hover .block1-link {
  transform: translateY(0);
  opacity: 1;
}

.block1-link:hover {
  background: var(--color-primary);
  color: white;
  transform: translateX(10px);
}

/* ========== PRODUCTOS DESTACADOS ARTÍSTICOS ========== */
.featured-products {
  padding: 6rem 0;
  background: white;
  position: relative;
}

.featured-products::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

/* Grid de Productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card-artistic {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

.product-card-artistic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.product-card-artistic:hover::before {
  transform: scaleX(1);
}

.product-card-artistic:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(255, 107, 53, 0.2);
}

.product-image-wrapper {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--color-light);
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card-artistic:hover .product-image-wrapper img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  z-index: 2;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.price-current {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-old {
  font-size: 1.25rem;
  color: var(--color-secondary);
  text-decoration: line-through;
  opacity: 0.6;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-add-cart {
  flex: 1;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-add-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-quick-view {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-quick-view:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(15deg) scale(1.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .ltext-201 {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .item-slick1 {
    height: 70vh;
    min-height: 500px;
  }
  
  .ltext-201 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .block1 {
    height: 350px;
  }
  
  .block1-name {
    font-size: 2rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .ltext-201 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .size-101 {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}
