/* Estilos Unity Networks - Tienda */
/* Usar las mismas variables que el header para consistencia */

/* Header de página minimalista */
.header {
  background: var(--unity-gold-gradient, linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%));
  color: var(--unity-primary, #0f1629);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--unity-shadow-primary, 0 10px 30px rgba(0, 0, 0, 0.5));
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.5rem;
}

/* Contenedor para servidores */
.server-selection-container {
  padding: 1rem 0;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contenedor para paquetes */
.packages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Tarjetas Unity - Mismo estilo que el INDEX */
.store-box {
  background: var(--unity-card-bg, #111827);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--unity-text-primary, #ffffff);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--unity-border-color, rgba(251, 191, 36, 0.2));
  box-shadow: var(--unity-shadow-primary, 0 10px 30px rgba(0, 0, 0, 0.5));
}

.store-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--unity-gold-gradient, linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%));
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.store-box:hover::before {
  opacity: 1;
}

.store-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--unity-shadow-hover, 0 20px 60px rgba(29, 78, 216, 0.3));
  border-color: var(--unity-gold, #fbbf24);
}

/* Imagen del paquete/servidor */
.store-box-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--unity-primary, #0f1629);
}

.store-box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.store-box:hover .store-box-image img {
  transform: scale(1.05);
}

/* Contenido superior */
.store-box-upper {
  padding: 1.5rem;
  flex-grow: 1;
}

.store-box-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--unity-text-primary, #ffffff) !important;
  text-align: center;
}

.store-box-credits {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--unity-gold, #fbbf24);
  margin-bottom: 1rem;
  text-align: center;
}

.store-box-price {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--unity-text-secondary, #cbd5e1);
  text-align: center;
}

/* Descripción */
.store-box-description {
  color: var(--unity-text-secondary, #cbd5e1) !important;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  max-height: 150px;
  overflow-y: auto;
}

.store-box-description p,
.store-box-description div,
.store-box-description span {
  color: var(--unity-text-secondary, #cbd5e1) !important;
}

.store-box-description strong,
.store-box-description b {
  color: var(--unity-text-primary, #ffffff) !important;
  font-weight: 600;
}

/* Contenido inferior */
.store-box-lower {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  margin-top: auto;
}

/* Botón de compra Unity - TEXTO BLANCO CON BRILLO - UNIFICADO */
.buy-btn,
.buy-button,
.btn-primary,
.btn-success,
.buy-now,
.package-buy-button,
.modal-footer .btn,
.btn,
form button[type="submit"],
a[href*="purchase"] {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #FFFFFF !important;
  text-align: center;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none !important;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.4);
  cursor: pointer;
  text-decoration: none !important;
  font-size: 0.9rem;
  text-shadow: 0 0 2px rgba(255,255,255,0.5);
}

.buy-btn:hover,
.buy-button:hover,
.btn-primary:hover,
.btn-success:hover,
.buy-now:hover,
.package-buy-button:hover,
.modal-footer .btn:hover,
.btn:hover,
form button[type="submit"]:hover,
a[href*="purchase"]:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  color: #FFFFFF !important;
  text-decoration: none !important;
  text-shadow: 0 0 3px rgba(255,255,255,0.7);
}

/* Asegurar que los iconos dentro del botón también sean blancos */
.buy-btn i, 
.buy-btn span, 
.buy-btn *,
.buy-button i,
.buy-button span,
.buy-button *,
.btn-primary i,
.btn-primary span,
.btn-primary *,
.btn-success i,
.btn-success span,
.btn-success *,
.buy-now i,
.buy-now span,
.buy-now *,
.package-buy-button i,
.package-buy-button span,
.package-buy-button *,
.modal-footer .btn i,
.modal-footer .btn span,
.modal-footer .btn *,
.btn i,
.btn span,
.btn *,
form button[type="submit"] i,
form button[type="submit"] span,
form button[type="submit"] *,
a[href*="purchase"] i,
a[href*="purchase"] span,
a[href*="purchase"] * {
  color: #FFFFFF !important;
  text-shadow: 0 0 2px rgba(255,255,255,0.5);
}

/* Enlaces de servidor */
.server-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.server-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Contenedor de créditos */
.credits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.credit-box {
  background: var(--unity-card-bg, #111827);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--unity-shadow-primary, 0 10px 30px rgba(0, 0, 0, 0.5));
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--unity-border-color, rgba(251, 191, 36, 0.2));
}

.credit-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--unity-shadow-hover, 0 20px 60px rgba(29, 78, 216, 0.3));
}

.credit-box .credit-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--unity-gold, #fbbf24);
  margin-bottom: 0.75rem;
}

.credit-box .credit-title {
  font-size: 1.2rem;
  color: var(--unity-text-primary, #ffffff) !important;
  margin-bottom: 1rem;
}

.credit-box .credit-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--unity-text-secondary, #cbd5e1);
  margin-bottom: 1.5rem;
}

.credit-box .credit-description {
  color: var(--unity-text-secondary, #cbd5e1);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

/* Alertas Unity */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-info {
  background: var(--unity-primary, #0f1629);
  color: var(--unity-text-primary, #ffffff) !important;
  border-left: 4px solid var(--unity-gold, #fbbf24);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--unity-text-primary, #ffffff) !important;
  border-left: 4px solid #f59e0b;
}

.alert a {
  color: var(--unity-gold, #fbbf24) !important;
  font-weight: 600;
}

/* Paquetes globales */
.global-packages-link {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.server-card {
  background: var(--unity-gold-gradient, linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%));
  border-radius: 12px;
  padding: 1.5rem 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--unity-primary, #0f1629) !important;
  transition: all 0.3s ease;
  box-shadow: var(--unity-shadow-primary, 0 10px 30px rgba(0, 0, 0, 0.5));
}

.server-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--unity-shadow-gold, 0 15px 35px rgba(251, 191, 36, 0.3));
  text-decoration: none;
  color: var(--unity-primary, #0f1629) !important;
}

.server-icon {
  margin-right: 1rem;
}

.server-name {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .packages-container,
  .servers-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .credits-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .packages-container,
  .servers-grid,
  .credits-container {
    grid-template-columns: 1fr;
  }
  
  .header {
    padding: 1rem;
    font-size: 1.2rem;
  }
}

/* Override para asegurar colores consistentes */
.content * {
  color: inherit;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  color: var(--unity-text-primary, #ffffff) !important;
}

.content p, .content div, .content span:not(.badge) {
  color: var(--unity-text-secondary, #cbd5e1) !important;
}

.content a {
  color: var(--unity-gold, #fbbf24) !important;
}

.content a:hover {
  color: var(--unity-gold-bright, #f59e0b) !important;
}

/* Estilos generales */
body {
  font-family: 'Poppins', sans-serif;
}

/* Estilo moderno para los paquetes */
.store-box {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: none;
  box-shadow: var(--box-shadow);
}

/* Versión expandida de los store-box para más espacio */
.expanded-box {
  min-height: 500px;
}

.store-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Imagen del paquete */
.store-box-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.store-box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.store-box:hover .store-box-image img {
  transform: scale(1.05);
}

/* Etiqueta premium */
.premium-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Contenido del paquete */
.store-box-upper {
  padding: 20px;
}

.store-box-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.store-box-credits {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.store-box-price {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #aaaaaa;
}

/* Sección de descripción con soporte HTML */
.store-box-description {
  padding: 0 20px;
  color: #bbbbbb;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 220px;
}

.store-box-description .description-content {
  overflow: hidden;
}

/* Preservar los estilos HTML en la descripción */
.store-box-description p,
.store-box-description h3,
.store-box-description h4,
.store-box-description h5,
.store-box-description h6,
.store-box-description ul,
.store-box-description ol {
  margin-bottom: 15px;
  color: inherit;
}

.store-box-description strong,
.store-box-description b {
  font-weight: bold;
  color: white;
}

.store-box-description em,
.store-box-description i {
  font-style: italic;
}

.store-box-description ul,
.store-box-description ol {
  padding-left: 20px;
}

.store-box-description li {
  margin-bottom: 5px;
}

.store-box-description a {
  color: var(--primary-color);
  text-decoration: none;
}

.store-box-description a:hover {
  text-decoration: underline;
}

/* Sección de beneficios */
.store-box-benefits {
  padding: 0;
  margin: 0 0 15px 0;
  list-style-type: none;
}

.store-box-benefits li {
  padding: 8px 0;
  border-bottom: 1px solid #3d3d3d;
  display: flex;
  align-items: center;
}

.store-box-benefits li:before {
  content: "✓";
  color: var(--success-color);
  margin-right: 10px;
  font-weight: bold;
}

.store-box-benefits li:last-child {
  border-bottom: none;
}

/* Paquetes de créditos */
.credits-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.credit-box {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credit-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.credit-box .credit-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.credit-box .credit-title {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 15px;
}

.credit-box .credit-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #bbbbbb;
  margin-bottom: 20px;
}

.credit-box .credit-description {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 20px;
  min-height: 60px;
  overflow: hidden;
}

/* Personalización para tienda y menús */
.nav-link.tienda {
  font-weight: bold;
  color: var(--primary-color) !important;
}

.dropdown-menu-tienda {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  border: none;
  background: var(--card-bg);
}

.dropdown-menu-tienda .dropdown-item {
  color: var(--text-color);
  padding: 12px 20px;
  transition: background-color 0.3s ease;
}

.dropdown-menu-tienda .dropdown-item:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

/* Diseño para formularios y filtros */
.filter-container {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.form-control-modern {
  background-color: #3d3d3d;
  border: none;
  color: white;
  border-radius: 30px;
  padding: 12px 20px;
}

.form-control-modern:focus {
  background-color: #3d3d3d;
  color: white;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.3);
}

/* Categorías de paquetes */
.package-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.category-btn {
  padding: 8px 20px;
  background: #3d3d3d;
  color: white;
  border: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-btn:hover, 
.category-btn.active {
  background: var(--primary-color);
}

/* Banner del servidor */
.server-banner {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.server-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.server-banner-content {
  position: absolute;
  bottom: 20px;
  left: 25px;
  color: white;
  z-index: 1;
}

.server-banner-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.server-banner-subtitle {
  font-size: 1rem;
  opacity: 0.8;
} 