/* Estilos generales */
body {
  font-family: 'Poppins', sans-serif;
  color: #212121;
  background-color: #FFFFFF;
}

/* Navbar */
.nav_top {
  background-color: #000000;
  padding: 10px 0;
}

.navbar-brand {
  color: #FF6D00 !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #FF6D00, #FF9100);
  padding: 80px 0;
  color: #FFFFFF;
}

.hero-section h1 {
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Botones */
.btn-ingresar {
  background-color: #FF3D00;
  color: #FFFFFF;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-ingresar:hover {
  background-color: #FF9100;
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: #FF3D00;
  color: #FFFFFF;
  border: none;
}

.btn-outline-primary:hover {
  background-color: #FF9100;
}

/* Cards de productos - Versión para 4 columnas */
.product-card {
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: 20px;
  height: 100%; /* Asegura altura uniforme */
  display: flex;
  flex-direction: column;
}

.product-card .card-img-top {
  height: 180px; /* Altura fija para imágenes */
  object-fit: cover; /* Evita deformaciones */
}

.product-card .card-body {
  flex: 1; /* Distribuye el espacio */
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.product-card .card-text {
  flex-grow: 1; /* Empuja el precio/btn hacia abajo */
  margin-bottom: 15px;
  color: #313131; /* Gris para texto descriptivo */
  font-size: 0.9rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(255, 109, 0, 0.1);
  color: #fde8ac;
}

.product-card .card-title {
  color: #FF6D00;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}


.btn-product-buy {
  background-color: #28a745;   /* Verde estilo "Comprar" */
  color: #fff;
  font-weight: bold;
  border-radius: 30px;         /* Botón redondeado */
  padding: 10px 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-product-buy:hover {
 color: rgb(255, 255, 255);
 background-color: #FF6D00;
  
}

.btn-product-download:hover {
 color: rgb(255, 255, 255);
 
  
}


.price {
  color: #000000;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: auto; /* Alinea al fondo del card-body */
}


/* Ajustes para el grid de 4 columnas */
.row {
  margin-left: -8px;
  margin-right: -8px;
}

.col-md-3 {
  padding-left: 8px;
  padding-right: 8px;
}

/* Footer */
.footer {
  background-color: #000000;
  color: #FFFFFF;
  padding: 20px 0;
  margin-top: 40px;
}

/* Efectos especiales */
.carrito-icono {
  position: relative;
  transition: all 0.3s;
}

.carrito-icono:hover {
  transform: scale(1.1);
}

.badge-carrito {
  background-color: #FF3D00;
  position: absolute;
  top: -8px;
  right: -8px;
  border-radius: 50%;
  padding: 5px 8px;
}

/* Buscador */
.search-hero {
  background: linear-gradient(135deg, #FF6D00, #FF9100);
  padding: 10px 0;
  margin-bottom: 30px;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-box {
  position: relative;
}

.search-input {
  height: 55px;
  border-radius: 30px;
  border: none;
  padding-left: 25px;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-btn {
  position: absolute;
  right: 0px;
  top: 0px;
  height: 40px;
  width: 120px;
 
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  transition: all 0.3s;
}

.search-btn:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Sección de filtros */
.filters-section {
  background: #FFFFFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.filter-title {
  color: #000000;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
 
}

.filter-title i {
  margin-right: 10px;
  color: #FF6D00;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: #F5F5F5;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.filter-btn:hover, 
.filter-btn.active {
  background: #FF6D00;
  color: #FFFFFF;
}

.sort-select {
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
  margin-left: 10px;
}

/* Resultados de búsqueda */
.results-container {
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: 25px;
  background: #FFFFFF;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 109, 0, 0.1);
}

.product-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.product-body {
  padding: 15px;
}

.product-title {
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
  height: 40px;
  overflow: hidden;
}

.product-price {
  color: #FF6D00;
  font-weight: 700;
  font-size: 1.2rem;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF6D00;
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* Header de producto */
.product-detail-header {
  background-color: #FFFFFF;
  padding: 15px 0;
  border-bottom: 1px solid #EEEEEE;
}

/* Contenedor principal */
.product-detail-container {
  max-width: 1200px;
  margin: 30px auto;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Galería de imágenes */
.product-gallery-container {
  padding: 20px;
}

.product-main-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
}

.product-thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.product-thumbnail:hover, 
.product-thumbnail.active {
  border-color: #FF6D00;
}

/* Información del producto */
.product-info-container {
  padding: 30px;
}

.product-detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FF6D00;
  margin-bottom: 20px;
}

.product-meta-info {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-meta-item {
  margin-right: 20px;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.product-meta-item i {
  color: #FF6D00;
  margin-right: 5px;
}

.product-full-description {
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Botones de acción */
.product-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.btn-product-buy {
  background-color: #FF3D00;
  color: #FFFFFF;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  flex: 1;
  min-width: 200px;
}

.btn-product-buy:hover {
  background-color: #E53900;
  transform: translateY(-2px);
}

.btn-product-cart {
  background-color: #FF6D00;
  color: #FFFFFF;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  flex: 1;
  min-width: 200px;
}

.btn-product-cart:hover {
  background-color: #E65100;
  transform: translateY(-2px);
}

.btn-product-download {
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  flex: 1;
  min-width: 200px;
}

.btn-product-download:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Detalles técnicos */
.product-tech-details {
  margin-top: 30px;
}

.detail-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000000;
  border-bottom: 2px solid #FF6D00;
  padding-bottom: 5px;
}

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list-item {
  margin-bottom: 10px;
  display: flex;
}

.detail-list-item strong {
  width: 150px;
  display: inline-block;
}

/* Productos relacionados */
.related-products-section {
  margin-top: 50px;
  padding: 0 20px 30px;
}

.related-products-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: #000000;
}

.related-product-card {
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.related-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 109, 0, 0.1);
}




/* Paginación */
.pagination .page-link {
  color: #FF6D00;
}

.pagination .page-item.active .page-link {
  background-color: #FF6D00;
  border-color: #FF6D00;
}


 /* Estilos generales del área de cliente */
    .client-area {
      max-width: 1200px;
      margin: 30px auto;
      background: #FFFFFF;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      overflow: hidden;
    }
    
    /* Pestañas de navegación */
    .client-tabs {
      display: flex;
      border-bottom: 2px solid #EEEEEE;
      background: #F9F9F9;
    }
    
    .client-tab {
      padding: 15px 25px;
      cursor: pointer;
      font-weight: 600;
      color: #555555;
      border-bottom: 3px solid transparent;
      transition: all 0.3s;
      position: relative;
    }
    
    .client-tab:hover {
      color: #FF6D00;
      background: rgba(255, 109, 0, 0.05);
    }
    
    .client-tab.active {
      color: #FF6D00;
      border-bottom-color: #FF6D00;
      background: #FFFFFF;
    }
    
    .client-tab-badge {
      position: absolute;
      top: 5px;
      right: 5px;
      background: #FF3D00;
      color: white;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      font-size: 0.7rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    /* Contenido de las pestañas */
    .tab-content {
      padding: 30px;
    }
    
    .tab-pane {
      display: none;
    }
    
    .tab-pane.active {
      display: block;
      animation: fadeIn 0.5s;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    /* Estilos para los diferentes paneles */
    .profile-header {
      display: flex;
      align-items: center;
      margin-bottom: 30px;
    }
    
    .profile-avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 20px;
      border: 3px solid #FF6D00;
    }
    
    .profile-info h3 {
      margin-bottom: 5px;
      color: #000000;
    }
    
    .profile-info p {
      color: #777777;
      margin-bottom: 10px;
    }
    
    .edit-profile-btn {
      background: #FF6D00;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 5px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .edit-profile-btn:hover {
      background: #FF3D00;
    }
    
    /* Formularios */
    .client-form {
      max-width: 600px;
      margin-top: 20px;
    }
    
    .form-group {
      margin-bottom: 20px;
    }
    
    .form-label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: #333333;
    }
    
    .form-control {
      width: 100%;
      padding: 10px 15px;
      border: 1px solid #DDDDDD;
      border-radius: 5px;
      font-family: 'Poppins', sans-serif;
    }
    
    .form-control:focus {
      border-color: #FF6D00;
      box-shadow: 0 0 0 0.2rem rgba(255, 109, 0, 0.1);
    }
    
    .save-btn {
      background: #FF3D00;
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .save-btn:hover {
      background: #E53900;
    }
    
    /* Tabla de pedidos */
    .orders-table {
      width: 100%;
      border-collapse: collapse;
    }
    
    .orders-table th, 
    .orders-table td {
      padding: 12px 15px;
      text-align: left;
      border-bottom: 1px solid #EEEEEE;
    }
    
    .orders-table th {
      background: #F5F5F5;
      color: #333333;
      font-weight: 600;
    }
    
    .orders-table tr:hover {
      background: rgba(255, 109, 0, 0.03);
    }
    
    .order-status {
      display: inline-block;
      padding: 5px 10px;
      border-radius: 3px;
      font-size: 0.8rem;
      font-weight: 600;
    }
    
    .status-completed {
      background: #E8F5E9;
      color: #2E7D32;
    }
    
    .status-pending {
      background: #FFF8E1;
      color: #FF8F00;
    }
    
    .status-processing {
      background: #E3F2FD;
      color: #1565C0;
    }
    
    .view-order-btn {
      background: #FF6D00;
      color: white;
      border: none;
      padding: 6px 12px;
      border-radius: 3px;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .view-order-btn:hover {
      background: #FF3D00;
    }
    
    /* Lista de descargas */
    .downloads-list {
      list-style: none;
      padding: 0;
    }
    
    .download-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 0;
      border-bottom: 1px solid #EEEEEE;
    }
    
    .download-info h4 {
      margin-bottom: 5px;
      color: #333333;
    }
    
    .download-info p {
      color: #777777;
      font-size: 0.9rem;
    }
    
    .download-btn {
      background: #000000;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 5px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .download-btn:hover {
      background: #333333;
    }

 /*buy*/
   .product-image {
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        
        .checkout-card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 20px;
            background: white;
        }
        
        .section-title {
            border-bottom: 2px solid var(--primary-color);
            padding-bottom: 10px;
            margin-bottom: 20px;
            color: var(--dark-color);
            font-weight: 600;
        }
        
        .payment-option {
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid #dee2e6;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        
        .payment-option:hover, .payment-option.selected {
            border-color: var(--primary-color);
            background-color: rgba(0, 166, 80, 0.05);
        }
        
        .payment-icon {
            font-size: 2rem;
            margin-right: 15px;
            color: var(--primary-color);
        }
        
        .btn-pagar {
            padding: 15px;
            font-weight: 600;
            font-size: 1.1rem;
            border-radius: 10px;
            width: 100%;
           background: #28a745;
            border: none;
            transition: all 0.3s;
            color: white;
        }
        
        .btn-pagar:hover {
            background: #008e46;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 166, 80, 0.3);
        }
        
        .secure-badge {
            background-color: var(--success-color);
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            font-size: 0.9rem;
            display: inline-block;
            margin-top: 15px;
        }
        
        .option-badge {
            background-color: #e9ecef;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.9rem;
            margin-right: 5px;
            margin-bottom: 5px;
            display: inline-block;
        }
        
        .summary-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 5px 0;
        }
        
        .summary-items-container {
            border-top: 1px solid #dee2e6;
            padding-top: 15px;
        }
        
        .total-price {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-color);
            border-top: 2px solid #dee2e6;
            padding-top: 10px;
        }
        

.payment-radio {
            margin-left: 1px;
            padding-right: 10px;
            
        }
        
        .payment-info {
            flex-grow: 1;
             margin-left: 10px;
        }
        
        .payment-logo {
            height: 30px;
            margin-right: 10px;
            
        }

   #alertContainer {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 250px;
    z-index: 9999;
}

.customAlert {
    background-color: #cc3232;
    color: #fff;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.customAlert.show {
    opacity: 1;
    transform: translateY(0);
}



    
/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
.search-hero {
    padding: 30px 0;
  }
  
  .search-input {
    font-size: 1rem;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .sort-select {
    margin: 10px 0;
    width: 100%;
  }
  
  .product-card {
    margin-bottom: 15px;
  }
 
   .client-tabs {
        flex-direction: column;
        border-bottom: none;
      }
      
      .client-tab {
        border-bottom: 1px solid #EEEEEE;
        border-left: 3px solid transparent;
      }
      
      .client-tab.active {
        border-bottom: 1px solid #EEEEEE;
        border-left-color: #FF6D00;
      }
      
      .profile-header {
        flex-direction: column;
        text-align: center;
      }
      
      .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
      }
      
      .orders-table {
        display: block;
        overflow-x: auto;
      }


}


/* Responsive: 1 columna en móviles pequeños */
@media (max-width: 576px) {
 
  .search-btn {
    width: 80px;
    font-size: 0.9rem;
  }
  
  .product-img {
    height: 150px;
  }
}