/* ============================================
   MOVILDOMO - PRODUCT SHOWCASE STYLES
   Ubicación: views/css/showcase.css
   ============================================ */

/* VARIABLES */
:root {
  --movildomo-primary: #00CED1;
  --movildomo-dark: #0A1628;
  --movildomo-light: #FFFFFF;
  --movildomo-gray: #F5F5F5;
}

/* ============================================
   PRODUCT SHOWCASE - GRID
   ============================================ */

.product-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.showcase-grid {
  position: relative;
  width: 100%;
  height: 500px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  perspective: 1000px;
}

/* POSICIONAMIENTO DE ITEMS */
.showcase-main {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  z-index: 10;
}

.showcase-top-left {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  z-index: 5;
}

.showcase-top-right {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  z-index: 5;
}

.showcase-bottom-left {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  z-index: 5;
}

.showcase-bottom-right {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  z-index: 5;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 206, 209, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 206, 209, 0.2);
}

/* PRODUCTO PRINCIPAL (FEATURED) */
.product-card.featured {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid var(--movildomo-primary);
  padding: 30px;
}

.product-card.featured:hover {
  transform: translateY(-15px) scale(1.08);
  box-shadow: 0 15px 40px rgba(0, 206, 209, 0.3);
}

/* BADGE */
.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--movildomo-primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* IMÁGENES */
.product-image {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
}

.product-card.featured .product-image {
  height: 280px;
}

.product-card:not(.featured) .product-image {
  height: 120px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

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

/* INFORMACIÓN DE PRODUCTOS */
.product-info {
  text-align: center;
  width: 100%;
}

.product-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--movildomo-dark);
  margin-bottom: 10px;
}

.product-info .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--movildomo-primary);
  margin: 0;
}

.product-info-mini {
  text-align: center;
  padding: 10px;
}

.product-info-mini span {
  font-size: 13px;
  font-weight: 600;
  color: var(--movildomo-dark);
  display: block;
}

/* Enlaces */
.product-card a {
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================
   ELEMENTOS DECORATIVOS
   ============================================ */

.showcase-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.circle-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 200px;
  height: 200px;
  background: var(--movildomo-primary);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 150px;
  height: 150px;
  background: var(--movildomo-dark);
  bottom: 20%;
  right: 15%;
  animation-delay: 3s;
}

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

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 206, 209, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 206, 209, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

/* ============================================
   ANIMACIONES
   ============================================ */

.animate-enabled .showcase-item {
  animation: scaleIn 0.6s ease-out both;
}

.animate-enabled .showcase-top-left { animation-delay: 0.2s; }
.animate-enabled .showcase-main { animation-delay: 0.4s; }
.animate-enabled .showcase-top-right { animation-delay: 0.6s; }
.animate-enabled .showcase-bottom-left { animation-delay: 0.8s; }
.animate-enabled .showcase-bottom-right { animation-delay: 1s; }

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .showcase-grid {
    height: 450px;
    gap: 15px;
  }
}

@media (max-width: 992px) {
  .showcase-grid {
    height: 400px;
    gap: 10px;
  }
  
  .product-card.featured {
    padding: 20px;
  }
  
  .product-card.featured .product-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .showcase-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 20px;
  }
  
  .showcase-item {
    width: 100%;
  }
  
  .showcase-main {
    order: 1;
  }
  
  .showcase-top-left { order: 2; }
  .showcase-top-right { order: 3; }
  .showcase-bottom-left { order: 4; }
  .showcase-bottom-right { order: 5; }
  
  .product-card {
    padding: 20px;
    flex-direction: row;
    text-align: left;
  }
  
  .product-card.featured {
    flex-direction: column;
    text-align: center;
  }
  
  .product-card:not(.featured) .product-image {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 15px;
  }
  
  .product-info-mini {
    text-align: left;
    padding: 0;
  }
}

@media (max-width: 576px) {
  .product-showcase {
    padding: 10px;
  }
  
  .showcase-grid {
    gap: 15px;
  }
}


.showcase-item.showcase-main .product-card.featured .product-image {
    height: 380px;
}