/* Estilos generales */
   body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f8f9fa;
        margin: 0;
        padding: 0;
    }



.navbar {
  display: flex;
  align-items: center;
}

/* HEADER CON ANCHO FIJO */
.header-fixed-width {
  background-color: inherit; /* Mantiene el color del navbar */
}

.header-fixed-width .navbar > .container {
  max-width: 1200px; /* Ancho fijo para el header */
  margin: 0 auto;
  width: 100%;
}

/* CONTENIDO CON ANCHO COMPLETO */
.full-width-content {
  width: 100%;
  max-width: 100%;
}

/* Estilos específicos para el header */
.search-container {
  flex: 1 1 auto;
  min-width: 0;
}

/* Dropdown de categorías */
.categories-dropdown {
  border-radius: 4px 0 0 4px !important;
  border: 2px solid #f0c14b !important;
  background-color: #f8f9fa !important;
  color: #333 !important;
  font-weight: 500;
  padding: 10px 15px;
  height: 46px;
  min-width: 160px;
  border-right: 1px solid #dee2e6 !important;
  transition: all 0.2s ease;
}

.categories-dropdown:hover {
  background-color: #e9ecef !important;
}

.categories-dropdown:focus {
  box-shadow: none !important;
}

/* Campo de búsqueda */
.search-input {
  border: 2px solid #f0c14b !important;
  border-radius: 4px 0 0 4px !important;
  border-right: none !important;
  padding: 10px 20px;
  font-size: 16px;
  height: 46px;
  width: 100%;
}

.search-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(240, 193, 75, 0.25);
  border-color: #f0c14b !important;
  outline: none;
}

/* Botón de búsqueda */
.search-button {
  border-radius: 0 4px 4px 0 !important;
  border: 2px solid #f0c14b !important;
  background-color: #f0c14b !important;
  color: #111;
  padding: 10px 25px;
  height: 46px;
  min-width: 60px;
  transition: all 0.2s ease;
}

.search-button:hover {
  background-color: #f7ca00 !important;
  border-color: #f7ca00 !important;
}

/* Dropdown de categorías */
.dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
}

.category-option {
  padding: 8px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.category-option:hover {
  background-color: #f8f9fa;
}

/* Asegurar que el logo y los íconos se mantengan en su lugar */
.navbar-brand {
  flex-shrink: 0;
}
















    
/* 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;
}



/* 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);
}



        .cart-header {
           background: transparent;
            color: #2d3436;
            padding: 30px 0 20px 0;
            margin-bottom: 10px;
            text-align: center;
            border-bottom: 1px solid #e9ecef;
        }
        .cart-item {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 15px;
            padding: 15px;
            transition: transform 0.3s ease;
        }
        .cart-item:hover {
            transform: translateY(-5px);
        }
        .product-image {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
        }
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .quantity-btn {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
        }
        .empty-cart {
            text-align: center;
            padding: 50px 20px;
        }
        .empty-cart-icon {
            font-size: 5rem;
            color: #dee2e6;
            margin-bottom: 20px;
        }
        .checkout-btn {
            background: #FF3D00;
            border: none;
            padding: 12px 30px;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
            color: white;
        }
        .checkout-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .continue-shopping {
            background-color: #f1f2f6;
            color: #2d3436;
            border: none;
            padding: 12px 30px;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        .continue-shopping:hover {
            background-color: #dfe4ea;
        }
        .remove-btn {
            background-color: #ff7675;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 15px;
            transition: all 0.3s ease;
        }
        .remove-btn:hover {
            background-color: #d63031;
        }
        .product-name {
            font-weight: 600;
            color: #2d3436;
        }
        .product-price {
            font-weight: 600;
            color: #6c5ce7;
        }
        .action-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

        .cart-item .d-flex {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
}






/* Botones + y − */
.cart-item .btn-minus,
.cart-item .btn-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: white;
    color: #333;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease-in-out;
}

.cart-item .btn-minus:hover,
.cart-item .btn-plus:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    transform: scale(1.1);
}


.cart-item .quantity {
    display: inline-block;
    width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    user-select: none;
}


.cart-item .btn-minus:active,
.cart-item .btn-plus:active {
    transform: scale(0.95);
}


.carro-total {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding-right: 20px;
}

.carro-total h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.steps-simple {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 14px;
  }

  .steps-simple .step {
    color: #6c757d;
    font-weight: 500;
  }

  .steps-simple .step.active {
    color: #0d6efd;
    font-weight: 600;
  }

  .steps-simple .separator {
    margin: 0 8px;
    color: #adb5bd;
  }


 /* Estilos específicos para la sección de home */
    .home-products-section {
        
        background-color: #f8f9fa;
    }

    .section-title {
        color: #333;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 30px;
        text-align: center;
        position: relative;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        margin: 10px auto 0;
        border-radius: 2px;
    }

    /* Grid de productos para home - 5 columnas */
    .home-products-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }

    /* Tarjeta de producto para home - MÍNIMA */
    .home-product-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        border: 1px solid #eee;
        text-decoration: none !important;
        color: inherit;
    }

    .home-product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        text-decoration: none;
        color: inherit;
    }

    .home-product-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 2px solid transparent;
        border-radius: 8px;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .home-product-card:hover::after {
        border-color: #667eea;
    }

    /* Contenedor de imagen - MÁXIMO TAMAÑO */
    .home-image-container {
        position: relative;
        width: 100%;
        padding-top: 100%; /* Cuadrado 1:1 */
        overflow: hidden;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .home-product-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .home-product-card:hover .home-product-image {
        transform: scale(1.05);
    }

    /* Información del producto - MÍNIMA */
    .home-product-info {
        padding: 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .home-product-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: #333;
        line-height: 1.4;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.8em;
        text-decoration: none;
    }

    .home-product-price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #667eea;
        margin-top: auto;
    }

    /* Badges minimalistas para home */
    .home-product-badges {
        position: absolute;
        top: 8px;
        left: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        z-index: 2;
    }

    .home-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
        font-weight: 600;
        border-radius: 3px;
    }

    .home-badge-new {
        background: rgba(220, 53, 69, 0.95);
        color: white;
    }

    .home-badge-popular {
        background: rgba(255, 193, 7, 0.95);
        color: #333;
    }

    /* Botón ver más */
    .view-more-btn {
        display: block;
        width: 200px;
        margin: 40px auto 0;
        padding: 12px 25px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 5px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .view-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        color: white;
        text-decoration: none;
    }


/* search*/

  /* Main container */
    .search-results-container {
        max-width: 100%;
        margin: 30px 0;
        padding: 0 15px;
    }

    /* Filtros sidebar */
    .filters-sidebar {
        background: white;
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        height: fit-content;
        position: sticky;
        top: 20px;
    }

    .filters-sidebar h5 {
        color: #333;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #667eea;
    }

    .filter-section {
        margin-bottom: 25px;
    }

    .filter-section h6 {
        color: #555;
        font-weight: 600;
        margin-bottom: 15px;
        font-size: 1rem;
    }

    /* Checkboxes y radios personalizados */
    .custom-checkbox .custom-control-label::before {
        border-radius: 3px;
        border: 2px solid #ddd;
    }

    .custom-checkbox .custom-control-input:checked~.custom-control-label::before {
        background-color: #667eea;
        border-color: #667eea;
    }

    .custom-radio .custom-control-label::before {
        border: 2px solid #ddd;
    }

    .custom-radio .custom-control-input:checked~.custom-control-label::before {
        background-color: #667eea;
        border-color: #667eea;
    }

    /* Slider de precios */
    .price-slider {
        width: 100%;
        margin: 15px 0;
    }

    .price-range {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        font-size: 0.9rem;
        color: #666;
    }

    /* Tipo de archivo */
    .file-type-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .file-type-option {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid #e0e0e0;
    }

    .file-type-option:hover {
        background-color: #f0f4ff;
        border-color: #667eea;
    }

    .file-type-option.active {
        background-color: #667eea;
        color: white;
        border-color: #667eea;
    }

    .file-icon {
        margin-right: 10px;
        font-size: 1.2rem;
    }

    /* Botón aplicar filtros */
    .apply-filters-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 5px;
        width: 100%;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .apply-filters-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    /* Header de resultados */
    .results-header {
        background: white;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 25px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .results-count {
        color: #666;
        margin-bottom: 0;
    }

    .sort-options {
        min-width: 200px;
    }



    /* Grid de productos */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    /* Tarjeta de producto digital - SÓLO IMAGEN, TÍTULO Y PRECIO */
    .product-card-simple {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        border: 1px solid #eee;
         position: relative;
    }

    .product-card-simple:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    /* Contenedor de imagen - MÁXIMO TAMAÑO */
    .image-container {
         position: relative;
        width: 100%;
        aspect-ratio: 1 / 1; /* Cuadrado 1:1 */
        overflow: hidden;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .product-image-simple {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .product-card-simple:hover .product-image-simple {
        transform: scale(1.05);
    }

    /* Información del producto - MÍNIMA */
    .product-info-simple {
        padding: 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-title-simple {
        font-size: 0.9rem;
        font-weight: 600;
        color: #333;
        line-height: 1.4;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.8em;
    }

    .product-price-simple {
        font-size: 1.1rem;
        font-weight: 700;
        color: #667eea;
        margin-top: auto;
    }

    .original-price-simple {
        font-size: 0.85rem;
        color: #999;
        text-decoration: line-through;
        margin-left: 6px;
    }

    .free-price {
        color: #28a745;
        font-weight: 700;
    }

    /* Badges minimalistas */
    .product-badges-simple {
        position: absolute;
        top: 8px;
        left: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        z-index: 2;
    }

    .badge-simple {
        padding: 3px 8px;
        font-size: 0.7rem;
        font-weight: 600;
        border-radius: 3px;
    }

    .badge-premium {
        background: rgba(255, 193, 7, 0.95);
        color: #333;
    }

    .badge-free {
        background: rgba(40, 167, 69, 0.95);
        color: white;
    }

    .badge-new {
        background: rgba(220, 53, 69, 0.95);
        color: white;
    }

 /* Breadcrumb */
    .breadcrumb {
        background: none;
        padding: 0;
        margin-bottom: 20px;
    }

    .breadcrumb-item a {
        color: #667eea;
        text-decoration: none;
    }

    /* Contador de productos en filtros */
    .filter-count {
        color: #999;
        font-size: 0.85rem;
        margin-left: 5px;
    }

    /* Producto en hover - efecto sutil */
    .product-card-simple::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 2px solid transparent;
        border-radius: 8px;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .product-card-simple:hover::after {
        border-color: #667eea;
    }



    /* Paginación */
    .pagination-container {
        margin-top: 40px;
    }

    .page-link {
        color: #667eea;
        border: 1px solid #dee2e6;
        padding: 8px 16px;
    }

    .page-item.active .page-link {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
    }


 .category { list-style-type: none; padding: 0; }
 .category    li { margin: 8px 0; }
 .category  a { color: #007bff; text-decoration: none; font-size: 1.1em; }
 .category  a:hover { text-decoration: underline; }

.green {
  color: #359b3a;
  font-weight: bold;
}



 .subscription-card {
            border: none;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            overflow: hidden;
            max-width: 400px;
            width: 100%;
        }
        .card-header-bg {
            background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
            color: white;
            padding: 2rem 1rem;
            text-align: center;
        }
        .price-display {
            font-size: 3.5rem;
            font-weight: 800;
            color: #333;
            transition: all 0.3s ease;
        }
        .period-text {
            color: #6c757d;
            font-size: 1.1rem;
        }
        .save-badge {
            background-color: #d1e7dd;
            color: #0f5132;
            padding: 5px 10px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: bold;
            display: none; /* Oculto por defecto */
        }

.mobile-menu{
display:none;
background:white;
border-bottom:1px solid #ddd;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.mobile-menu ul{
list-style:none;
margin:0;
padding:0;
}

.mobile-menu li a{
display:block;
padding:14px 20px;
color:#333;
text-decoration:none;
border-bottom:1px solid #eee;
font-weight:500;
}

.mobile-menu li a:hover{
background:#f5f5f5;
}

.home-products-grid {
  position: relative;
}

.btn-mostrar-filtros{
    display:none;
    background:#333;
    color:white;
    border:none;
    padding:10px 15px;
    margin-bottom:10px;
    border-radius:6px;
}
    

 .zoom-modal {
    display: none;
    position: fixed;   /* 🔥 CLAVE */
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    
    background-color: rgba(0,0,0,0.9);

    justify-content: center;  /* centra horizontal */
    align-items: center;      /* centra vertical */
}

.zoom-content {
    max-width: 90%;
    max-height: 90%;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}



/* Responsive */

  /* Responsive */
    @media (max-width: 1400px) {
       .home-products-grid, .products-grid {
            grid-template-columns: repeat(5, 1fr);
            gap: 12px;
        }
    }

    @media (max-width: 1200px) {
      .home-products-grid,  .products-grid {
            grid-template-columns: repeat(4, 1fr);
        }
        .header-fixed-width .navbar > .container {
          padding-left: 20px;
          padding-right: 20px;
        }
    }

    @media (max-width: 992px) {
        .home-products-grid,.products-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .results-header {
            flex-direction: column;
            gap: 15px;
        }
        
        .image-container {
            padding-top: 100%; /* Mantener cuadrado */
        }

        
         .header-fixed-width .navbar > .container {
         flex-wrap: nowrap; }

                .navbar-brand {
          margin-right: 15px;
          font-size: 1.2rem;
        }
  
        .search-container {
          order: 2;
          flex: 1 1 auto;
          margin: 0 10px;
        }
        
        .navbar-toggler {
          order: 3;
          flex-shrink: 0;
        }
        
        #navbarContent {
          order: 4;
          width: 100%;
          margin-top: 15px;
          justify-content: flex-end;
        }
        
        .categories-dropdown {
          min-width: 130px;
          padding: 8px 10px;
          height: 40px;
          font-size: 14px;
        }
        
        .search-input {
          padding: 8px 15px;
          height: 40px;
          font-size: 14px;
        }
        
        .search-button {
          height: 40px;
          padding: 8px 15px;
          min-width: 50px;
        }

        .navbar .container{
        display:flex;
        align-items:center;
        justify-content:space-between;
        }

       
        

}


@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;
  }
  
    .categories-dropdown {
    min-width: 110px;
    font-size: 13px;
    padding: 6px 8px;
  }
  
  .categories-dropdown span {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }


  .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;
      }

        .home-products-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .home-product-title {
            font-size: 0.85rem;
        }
        
        .home-product-price {
            font-size: 1rem;
        }
        
        .home-products-section {
            padding: 0px 1px;
        }

         .btn-mostrar-filtros{
        display:block;
    }

    .filters-sidebar{
        display:none;
        width:100%;
        background:white;
        padding:15px;
        border-radius:8px;
        box-shadow:0 5px 20px rgba(0,0,0,0.1);
        margin-bottom:15px;
    }

    .filters-sidebar.mostrar{
        display:block;
    }

}


/* Responsive: 1 columna en móviles pequeños */
@media (max-width: 576px) {
 
 
  
  .product-img {
    height: 150px;
  }

     .home-products-grid,.products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .home-product-info {
            padding: 10px;
        }
        
        .home-product-title {
            font-size: 0.8rem;
            min-height: 2.4em;
        }
        
        .section-title {
            font-size: 1.4rem;
        }
        
        .search-results-container {
            padding: 0 10px;
            margin-top: 0px;
        }
        
        .product-info-simple {
            padding: 10px;
        }
        
        .product-title-simple {
            font-size: 0.8rem;
            min-height: 2.4em;
        }



          .header-fixed-width .navbar > .container {
          padding-left: 15px;
          padding-right: 15px;
        }
        
        .search-container {
          margin: 0 8px;
        }
        
        .navbar-brand {
          font-size: 1.1rem;
          margin-right: 8px;
        }
        
        .categories-dropdown {
          min-width: 90px;
          font-size: 12px;
        }
        
        .search-input {
          font-size: 13px;
          padding: 6px 10px;
        }
        
        .search-button {
          padding: 6px 12px;
        }

}

 @media (max-width: 300px) {
        .home-products-grid,.products-grid {
            grid-template-columns: 1fr;
        }
    }
