:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-hover: #2a2a2a;
	--primary-green: #54cbba; 
	--secondary-green: #4d9770; 
    --text-light: #f0f0f0;
    --text-muted: #ffffff;
}

body {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* ===== NAVBAR MEJORADA ===== */
.navbar {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.6rem;
    background: linear-gradient(45deg, var(--primary-green), #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.nav-link {
    position: relative;
    margin: 0 12px;
    padding: 8px 0 !important;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== SLIDER MEJORADO ===== */
#slider {
    padding: 2rem 0;
}

.carousel-item {
    height: 500px;
    position: relative;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 2rem;
    border-radius: 15px;
    bottom: 20% !important;
}

.carousel-caption h5 {
    color: var(--primary-green);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    border: 2px solid var(--primary-green);
}

/* ===== PRODUCTOS DESTACADOS ===== */
#destacados {
    background: linear-gradient(180deg, rgba(26,26,26,0.8) 0%, rgba(15,15,15,1) 100%);
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #fff;
  padding: 10px;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-title {
    color: var(--primary-green);
    font-weight: 600;
}

.card-text {
    color: var(--text-muted) !important;
}

.lead {
    color: var(--text-muted) !important;
}

.btn-success {
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.btn-outline-success {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* ===== CATEGORÍAS ===== */
#categorias {
    background: var(--bg-dark);
}

.category-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.1);
}

.category-card i {
    background: linear-gradient(45deg, var(--primary-green), #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
}

.category-card h6 {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ===== BANNER SERVICIOS ===== */
.bg-dark {
    background: var(--bg-dark) !important;
}

.bg-dark h5 {
    color: var(--primary-green);
    font-weight: 600;
}

.bg-dark p {
    color: var(--text-muted);
}

.bg-dark .display-6 {
    color: var(--primary-green);
}

/* ===== FOOTER MEJORADO ===== */
footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

footer h5 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

footer a {
    transition: color 0.3s ease;
    color: var(--text-muted) !important;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-green) !important;
}

footer .small {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== PAGINACIÓN PERSONALIZADA ===== */
.pagination .page-link {
    transition: all 0.3s ease;
    background: var(--bg-card);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.pagination .page-link:hover {
    background-color: var(--primary-green) !important;
    color: var(--bg-dark) !important;
    transform: scale(1.05);
}

.pagination .page-item.active .page-link {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--bg-dark);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-card);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--text-muted);
}

/* ===== SEPARADORES DE SECCIONES ===== */
.separador-seccion {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 136, 0.3) 50%, 
        transparent 100%);
    margin: 3rem 0;
    width: 100%;
}

.separador-seccion-grueso {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-green) 50%, 
        transparent 100%);
    margin: 4rem 0;
    width: 80%;
    margin-left: 10%;
    opacity: 0.6;
}

.patron-separador {
    height: 15px;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 5px,
            rgba(0, 255, 136, 0.2) 5px,
            rgba(0, 255, 136, 0.2) 10px
        );
    margin: 3rem 0;
    width: 100%;
}

.separador-icono {
    text-align: center;
    margin: 4rem 0;
    position: relative;
}

.separador-icono::before {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-green), 
        transparent);
    z-index: 1;
}

.separador-icono i {
    color: var(--primary-green);
    font-size: 1.8rem;
    background: var(--bg-dark);
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.separador-icono i:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.separador-texto {
    text-align: center;
    margin: 4rem 0;
    position: relative;
}

.separador-texto::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 136, 0.4), 
        transparent);
}

.separador-texto h6 {
    display: inline-block;
    background: var(--bg-dark);
    padding: 0 2rem;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.separador-onda {
    height: 20px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.3) 0%, transparent 50%);
    margin: 3rem 0;
    opacity: 0.6;
}

/* ===== NOTIFICACIONES TOAST ===== */
.notificacion-toast {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    background: var(--bg-card) !important;
}

.notificacion-toast .bi-check-circle-fill {
    color: var(--primary-green);
}

/* ===== CONTADOR CARRITO ===== */
#contadorCarrito {
    transition: all 0.3s ease;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: var(--bg-dark);
    font-weight: 700;
    border: 2px solid var(--bg-dark);
}

/* Efecto cuando el carrito está vacío */
#contadorCarrito:empty {
    display: none;
}

/* ===== EFECTOS PARA BOTONES CARRITO ===== */
.add-to-cart {
    transition: all 0.3s ease;
    border: none;
}

.add-to-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.add-to-cart:active {
    transform: scale(0.95);
}

/* ===== ETIQUETAS DE PRODUCTOS ===== */
.position-absolute.bg-success {
    background: var(--primary-green) !important;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.7rem;
}

.position-absolute.bg-info {
    background: #17a2b8 !important;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
}

.position-absolute.bg-warning {
    background: #ffc107 !important;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.7rem;
}

.text-decoration-line-through {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

.text-info .bi-tools {
    color: #17a2b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1rem;
        bottom: 10% !important;
    }
    
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .category-card {
        height: 120px;
    }
    
    .category-card i {
        font-size: 2rem;
    }
    
    .separador-seccion-grueso {
        width: 90%;
        margin-left: 5%;
    }
    
    .separador-icono i {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption h5 {
        font-size: 1rem;
    }
    
    .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .category-card {
        height: 100px;
    }
    
    .category-card i {
        font-size: 1.5rem;
    }
    
    .category-card h6 {
        font-size: 0.9rem;
    }
}

/* ===== UTILIDADES ADICIONALES ===== */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.text-success {
    color: var(--primary-green) !important;
}

.border-success {
    border-color: var(--primary-green) !important;
}

.bg-success {
    background: var(--primary-green) !important;
}

/* Smooth transitions para todos los elementos interactivos */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
/* Placeholders blancos para los inputs de precio */
#precioMin::placeholder,
#precioMax::placeholder {
    color: white !important;
    opacity: 0.8;
}

#precioMin::-webkit-input-placeholder,
#precioMax::-webkit-input-placeholder {
    color: white !important;
    opacity: 0.8;
}

#precioMin::-moz-placeholder,
#precioMax::-moz-placeholder {
    color: white !important;
    opacity: 0.8;
}

#precioMin:-ms-input-placeholder,
#precioMax:-ms-input-placeholder {
    color: white !important;
    opacity: 0.8;
}

#precioMin:-moz-placeholder,
#precioMax:-moz-placeholder {
    color: white !important;
    opacity: 0.8;
}
/* ========================================================= */
/* === PÁGINA DETALLE DE PRODUCTO ========================== */
/* ========================================================= */
.product-gallery {
    position: relative;
}
.main-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}
.main-image:hover {
    border-color: var(--primary-green);
    transform: scale(1.02);
}
.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-green);
    transform: scale(1.1);
}
.product-info {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.product-info:hover {
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}
.price-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}
.badge-feature {
    background: var(--bg-hover);
    border: 1px solid var(--primary-green);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    display: inline-block;
    color: var(--text-light);
    font-size: 0.9rem;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}
.quantity-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}
.quantity-btn:hover {
    background: var(--primary-green);
    color: var(--bg-dark);
    transform: scale(1.1);
}
.quantity-input {
    width: 80px;
    text-align: center;
    background: var(--bg-hover);
    border: 2px solid var(--primary-green);
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: bold;
}
.related-products {
    margin-top: 4rem;
}
.stock-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.feature-list li:last-child {
    border-bottom: none;
}
.feature-list .bi-check-circle {
    color: var(--primary-green);
    margin-right: 0.5rem;
}
/* Hacer visible la categoría (texto blanco) */
.product-info p.text-muted {
    color: var(--text-light) !important;
    opacity: 0.9;
}

/* Cambiar color del texto del stock disponible a negro */
.stock-badge.bg-success {
    background: var(--primary-green) !important;
    color: var(--bg-dark) !important;
    font-weight: 600;
}

/* Botón "Agregar al carrito" con texto negro */
.btn-success {
    background: linear-gradient(45deg, #00e676, #00b864); /* menos brillante */
    color: var(--bg-dark) !important;
    font-weight: 700;
}

.btn-success:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* ===== Mejorar visibilidad del precio anterior ===== */
.price-section .text-decoration-line-through {
    color: #D7D7D7 !important; /* Gris muy claro/brillante */
    opacity: 0.9 !important;
    text-decoration-color: #000000 !important; /* Negro para el tachado */
    text-decoration-thickness: 2px !important;
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}

/* Efecto de resplandor al hover */
.price-section .text-decoration-line-through:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Destacar el texto de ahorro */
.price-save {
    color: #00ff88;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}
.confirmation-card {
            border: 2px solid var(--primary-green);
            border-radius: 15px;
            background: rgba(84, 203, 186, 0.05);
        }
        .bank-info-card {
            background: var(--bg-card);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 1rem;
        }
        .step-indicator {
            display: flex;
            justify-content: space-between;
            margin: 2rem 0;
        }
        .step {
            text-align: center;
            flex: 1;
        }
        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #333;
            color: var(--text-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-weight: 600;
        }
        .step.active .step-number {
            background: var(--primary-green);
            color: var(--bg-dark);
        }
        .step-label {
            color: var(--text-light) !important;
            font-weight: 500;
            font-size: 0.9rem;
        }
        .step.active .step-label {
            color: var(--primary-green) !important;
            font-weight: 600;
        }
        .upload-area {
            border: 2px dashed var(--primary-green);
            border-radius: 10px;
            padding: 2rem;
            text-align: center;
            background: rgba(84, 203, 186, 0.05);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .upload-area:hover {
            background: rgba(84, 203, 186, 0.1);
        }
        .upload-area.dragover {
            background: rgba(84, 203, 186, 0.2);
            border-color: var(--primary-green);
        }
        .file-preview {
            max-width: 200px;
            margin: 0 auto;
        }
        .comprobante-subido {
            background: rgba(84, 203, 186, 0.1);
            border: 2px solid var(--primary-green);
            border-radius: 10px;
            padding: 1.5rem;
        }
        .payment-method-option {
            border: 2px solid #333;
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .payment-method-option:hover {
            border-color: var(--primary-green);
            background: rgba(84, 203, 186, 0.05);
        }
        .payment-method-option.selected {
            border-color: var(--primary-green);
            background: rgba(84, 203, 186, 0.1);
        }
        .texto-blanco {
            color: var(--text-light) !important;
        }
        .texto-claro {
            color: var(--text-muted) !important;
        }
        .titulo-seccion {
            color: var(--primary-green) !important;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        .info-destacada {
            color: var(--text-light) !important;
            font-weight: 500;
        }
        .badge-estado {
            background: var(--primary-green);
            color: var(--bg-dark);
            font-weight: 600;
        }