:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
}

.navbar-brand {
    color: white !important;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    color: white !important;
    margin: 0 10px;
}

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/hero/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-card h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-card .text-muted {
    margin-bottom: 0.5rem;
}

.product-card form {
    margin-top: auto;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

.alert {
    margin-bottom: 0;
    border-radius: 0;
}

/* Estilos para el carrito */
.carrito-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.carrito-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 4px;
}

.carrito-item-info {
    flex-grow: 1;
}

.carrito-item-precio {
    font-weight: bold;
    color: var(--primary-color);
}

.carrito-total {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: right;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }

    .product-card {
        margin-bottom: 15px;
    }
}

.product-card .no-image {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.product-card .no-image i {
    margin-bottom: 0.5rem;
}

.product-card .no-image p {
    margin: 0;
    font-size: 0.9rem;
}

/* Estilos para el Modal de Imagen */
#imageModal .modal-content {
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semi-transparente */
}

#imageModal .modal-header {
    border-bottom: none;
}

#imageModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); /* Hace el icono blanco */
}

#imageModal .modal-body {
    padding: 0;
}

#modalImage {
    max-width: 100%;
    max-height: 90vh; /* Limita la altura de la imagen al 90% del viewport */
    object-fit: contain; /* Asegura que la imagen se ajuste sin recortarse */
}