/* Reset básico */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #212529;
    color: #fff;
}

header .nav-link {
    color: #fff;
    transition: color 0.3s;
}

header .nav-link:hover {
    color: #ffc107;
}

header img {
    vertical-align: middle;
}

/* Footer */
footer {
    background-color: #212529;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* Carrusel */
.carousel {
    max-width: 100%;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
}

.carousel-item img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
}

/* Menú lateral */
.list-group-item {
    font-weight: 500;
}

.list-group-item:hover {
    background-color: #1f3c88;
    color: white;
}

/* Main content */
main {
    margin-top: 20px;
}

/* Cards de productos */
.card {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.03);
}

.card-img-top {
    max-height: 200px;
    object-fit: contain;
    background-color: #fff;
}

.card-body {
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item img {
        max-height: 250px;
    }
    .card-img-top {
        max-height: 150px;
    }
}

.admin-header {
    background-color: #343a40;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-header a.logout {
    color: #fff;
    background-color: #dc3545;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
}

.admin-header a.logout:hover {
    background-color: #c82333;
}

/* Nombre del producto */
.card .nombre-producto {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    min-height: 48px;
    margin-bottom: 8px;
}

/* Precio en efectivo */
.card .precio-efectivo {
    font-size: 1.15rem;
    color: #198754;
    font-weight: bold;
}

/* Precio con tarjeta */
.card .precio-tarjeta {
    font-size: 1.05rem;
    color: #dc3545;
    font-weight: 600;
}

/* Stock disponible */
.card .stock {
    font-size: 0.95rem;
    font-weight: 500;
    color: #198754;
}

/* Stock agotado */
.card .stock.sin-stock {
    color: #dc3545;
    font-weight: 600;
}

