/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    color: #e0e0e0;
    background-color: #121212;
    overflow-x: hidden;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #1a1a1a; /* Un poco más claro que el negro puro */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid #2d2d2d;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, #3a5fc8, #00c6fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: #6d6666 !important; /* Gris claro para mejor contraste */
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6a8eff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #002258, #044147, #cedce2);
    background-blend-mode: multiply;
    position: relative;
    overflow: hidden;
    color: white;
    border-bottom: none; /* Eliminamos el borde para mejor transición */
}


/* Productos */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: #1e1e1e;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.5s ease;
    background-color: #2a2a2a;
    border-radius: 8px 8px 0 0;
}

/* Ajustamos el hover de las cards para que combine */
.card:hover {
    border-color: #4facfe; /* Mismo azul que los enlaces */
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    font-weight: 600;
    color: #f0f0f0;
}

.card-text {
    color: #ffe1e1;
}

.card-body {
    background-color: #1e1e1e;
}

/* Admin Panel */
#admin-panel {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

#admin-products-table img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background-color: #2a2a2a;
    border-radius: 4px;
}

/* Modal del carrito */
#cartModal .modal-content {
    border-radius: 15px;
    background-color: #1e1e1e;
    border: 1px solid #333;
}

#cartModal .modal-header {
    background: linear-gradient(135deg, #0a1f44, #1a3a6e);
    color: white;
    border-bottom: 1px solid #333;
}

.cart-item {
    transition: background-color 0.3s ease;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.cart-item:hover {
    background-color: #2a2a2a;
}

/* Sección SPEI */
#spei-details {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #333;
}

.bank-details {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.bank-details p {
    margin-bottom: 0.7rem;
    color: #e0e0e0;
}

/* Botones */
.btn-primary {
    background: linear-gradient(45deg, #3a5fc8, #00c6fb);
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(58, 95, 200, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 95, 200, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #5cb85c);
    border: none;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
        font-weight: 700; /* Más grueso */
        background: linear-gradient(45deg, #4facfe, #00f2fe);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra para mejor legibilidad */
    }
    
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    #cartModal .modal-dialog {
        margin: 10px;
    }
}

/* Estilos para el modal de imágenes */
#modalImage {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
}

.modal-content {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

/* Estilos para el icono del carrito */
.cart-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #e0e0e0;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: #6a8eff;
}

.cart-count {
    font-size: 0.7rem;
    background-color: #6a8eff;
}

/* Secciones adicionales */
#featured-products {
    margin-bottom: 3rem;
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
}

#products-grid {
    min-height: 300px;
}

.product-image {
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: contain;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
}

.product-image:hover {
    transform: scale(1.03);
}

/* Textos */
h1,h2 {
    color: #f0f0f0;
}



/* Inputs y formularios */
.form-control {
    background-color: #ffffff;
    border: linear-gradient(45deg, #3a5fc8, #00c6fb);
    color: #e0e0e0;
}

.form-control:focus {
    background-color: #ffffff;
    color: #e0e0e0;
    border-color: #6a8eff;
    box-shadow: 0 0 0 0.25rem rgba(106, 142, 255, 0.25);
}

.form-label{

    color: #424141;
    
}



/* Tablas */
.table {
    color: #e0e0e0;
    background-color: #1e1e1e;
}

.table th {
    background-color: #2a2a2a;
    border-color: #333;
}

.table td {
    border-color: #333;
}

