/* =================================== */
/* ==== ESTILOS ORIGINALES (BASE) ==== */
/* =================================== */

.slider-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.categoria-circle {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.categoria-circle:hover {
    transform: scale(1.1);
}

.categoria-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones */
.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    z-index: 10;
}

.btn:hover {
    background: rgba(0,0,0,0.9);
}

.btn.left {
    left: 10px;
}

.btn.right {
    right: 10px;
}

h2 {
    text-align: center;
    margin: 30px 0 10px;
    font-size: 2rem;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.tarjeta {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tarjeta:hover {
    transform: scale(1.05);
}

.tarjeta img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.tarjeta h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.tarjeta p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #7C170D;
}

.btn-agregar {
    margin-top: 15px;
    padding: 12px 20px;
    background: #141A45;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* ============================================ */
/* ==== 📱 MEDIA QUERIES RESPONSIVAS 📱 ==== */
/* ============================================ */

@media (max-width: 768px) {
    /* HABILITAR SCROLL TÁCTIL Y OCULTAR BARRA */
    .slider-container {
        overflow-x: auto;
        -ms-overflow-style: none; /* IE y Edge */
        scrollbar-width: none; /* Firefox */
    }
    .slider-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari y Opera */
    }

    .slider {
        transition: none; /* Scroll natural */
        padding: 0 15px; /* Evita que los elementos se peguen a los bordes */
    }
    
    /* OCULTAR BOTONES EN MÓVIL */
    .slider-container .btn {
        display: none;
    }

    .grid-productos {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    .tarjeta {
        padding: 15px;
    }
    .tarjeta img {
        height: 200px;
        object-fit: contain;
        background-color: #f9f9f9;
    }
}

@media (max-width: 480px) {
    .grid-productos {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .tarjeta img {
        height: 160px;
    }
    .tarjeta h3 {
        font-size: 1rem;
    }
    .tarjeta p {
        font-size: 1.1rem;
    }
}