/* Reset y configuraci�n general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #8d171e 0%, #3e3d16 100%);
    min-height: 100vh;
    color: #fff;
}

/* Header */
.header-menu {
    background: linear-gradient(180deg, #8d171e 50%, #e9e100 130%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Banner de fondo para el header (usa ../imagenes/banner.jpg por defecto) */
.header-menu.header-banner {
    /* background image on top of a subtle gradient fallback */
    background: linear-gradient(180deg, rgba(141, 23, 30, 0.6) 0%, rgba(233, 225, 0, 0.6) 100%), url('../imagenes/Banner.jpg') center/cover no-repeat;
    min-height: 100px;
    display: flex;
    align-items: center;
}

.header-menu.header-banner::before {
    /* overlay para mejorar legibilidad */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
    z-index: 0;
}

.header-menu.header-banner .container-fluid {
    position: relative;
    z-index: 1;
    /* contenido por encima del overlay */
}

.text-gradient {
    background: linear-gradient(135deg, #8d171e 0%, #3e3d16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Secci�n de categor�a */
.categoria-section {
    margin-bottom: 3rem;
}

.categoria-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.categoria-badge {
    background: linear-gradient(135deg, #8d171e 0%, #cfc805 100%);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    display: inline-block;
    position: relative;
}

.categoria-badge::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #8d171e 0%, #3e3d16 100%);
    border-radius: 50px;
    opacity: 0.3;
    z-index: -1;
    filter: blur(10px);
}

/* Tarjeta de producto */
.producto-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.producto-card:hover::before {
    left: 100%;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.producto-card.destacado {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.badge-destacado {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 10;
}

/* Imagen del producto */
.producto-imagen {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.1);
}

/* Informaci�n del producto */
.producto-info {
    text-align: center;
}

.producto-nombre {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.producto-descripcion {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    min-height: 3rem;
    line-height: 1.5;
}

.producto-precio {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.precio-simbolo {
    font-size: 1.5rem;
    vertical-align: super;
}

.precio-valor {
    display: inline-block;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .categoria-title {
        font-size: 2rem;
    }

    .producto-nombre {
        font-size: 1.25rem;
    }

    .producto-precio {
        font-size: 2rem;
    }

    .producto-descripcion {
        font-size: 0.85rem;
        min-height: auto;
    }

    .producto-imagen {
        height: 150px;
    }
}

@media (min-width: 1920px) {

    /* Estilos para pantallas grandes */
    .categoria-title {
        font-size: 3.5rem;
    }

    .producto-nombre {
        font-size: 1.8rem;
    }

    .producto-descripcion {
        font-size: 1.1rem;
    }

    .producto-precio {
        font-size: 3rem;
    }

    .producto-card {
        padding: 2rem;
    }

    .producto-imagen {
        height: 250px;
    }
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading spinner */
.spinner-border {
    border-width: 4px;
}

.category-carousel {
    background-color: #f8f9fa;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-inner::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex: 0 0 auto;
    margin: 0 8px;
    padding: 10px 20px;
    border-radius: 25px;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    background-color: white;
    color: #495057;
}

.category-btn:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.category-btn.active {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-control-btn {
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-control-btn:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.carousel-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-control-btn:disabled:hover {
    background-color: white;
    color: #495057;
    border-color: #dee2e6;
}