/**
 * Store page styles
 * Estilos específicos para la página de productos /store
 */

/* ===================================
   STORE PAGE - CATEGORÍAS
   =================================== */

/* Espacio entre título principal y primera categoría */
.pricing-section h2 {
  margin-bottom: 3rem;
}

.pricing-category {
  margin-bottom: 4rem;
}

/* Primera categoría tiene más espacio arriba */
.pricing-category:first-of-type {
  margin-top: 3rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.category-icon {
  font-size: 2.5rem;
}

.category-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.section-divider {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary-color) 20%,
    var(--primary-color) 80%,
    transparent
  );
  margin: 4rem auto;
  max-width: 80%;
  position: relative;
}

.section-divider::after {
  content: '●';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: var(--primary-color);
  font-size: 1.2rem;
  padding: 0 1rem;
}

.no-products {
  text-align: center;
  padding: 3rem;
  background: var(--bg-light);
  border-radius: 12px;
  margin-top: 2rem;
}

.no-products p {
  font-size: 1.2rem;
  color: var(--text-gray);
}

/* ===================================
   GRID CENTERING - Para items impares
   =================================== */

/* Contenedor para centrar grids con items impares */
.pricing-category .pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-xl);
  margin: var(--spacing-2xl) auto;
  max-width: 1200px;
}

/* Cada plan ocupa un tamaño fijo */
.pricing-category .pricing-plan {
  flex: 0 0 calc(33.333% - var(--spacing-xl));
  min-width: 280px;
  max-width: 380px;
}

/* ===================================
   PRICING PLANS - ENHANCEMENTS
   =================================== */

/* Ajustes para diferentes tipos de planes */
.pricing-plan {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Diferenciar visualmente suscripciones de paquetes */
.pricing-category:first-of-type .pricing-plan {
  border-top: 4px solid var(--primary-color);
}

.pricing-category:last-of-type .pricing-plan {
  border-top: 4px solid var(--secondary-color);
}

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

@media (max-width: 1024px) {
  /* 2 columnas en tablets */
  .pricing-category .pricing-plan {
    flex: 0 0 calc(50% - var(--spacing-xl));
  }
}

@media (max-width: 768px) {
  /* Ajustar espaciado en móvil */
  .pricing-section h2 {
    margin-bottom: 2rem;
  }

  .pricing-category:first-of-type {
    margin-top: 2rem;
  }

  .category-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .category-icon {
    font-size: 2rem;
  }

  .category-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .section-divider {
    margin: 3rem auto;
  }

  .pricing-category {
    margin-bottom: 3rem;
  }
  
  /* 1 columna en móvil */
  .pricing-category .pricing-plan {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .category-title {
    font-size: 1.3rem;
  }

  .category-icon {
    font-size: 1.8rem;
  }

  .category-description {
    font-size: 0.95rem;
  }
  
  .pricing-category .pricing-plan {
    min-width: unset;
  }
}