/* =================================== */
/* ==== ESTILOS ORIGINALES (BASE) ==== */
/* =================================== */

.banner {
    position: relative;
    width: 100%;
    height: 300px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide span {
    position: relative;
    z-index: 2;
}

.carrusel-container {
    width: 90%;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
}

.carrusel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.tarjeta {
    flex: 0 0 250px;
    margin: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s;
}

h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-top: 25px;
}

.tarjeta:hover {
    transform: scale(1.05);
}

.tarjeta img {
    width: 90%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.tarjeta h3 {
    font-size: 1.1rem;
    margin: 10px 0 5px;
}

.tarjeta p {
    font-size: 1rem;
    font-weight: bold;
    color: #7C170D;
}

/* Botones del carrusel */
.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.btn:hover {
    background: rgba(0,0,0,0.8);
}

.btn.left {
    left: 10px;
}

.btn.right {
    right: 10px;
}

.categorias-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    max-width: 1300px;
    margin: auto;
    gap: 50px;
}

.categorias-titulo {
    flex: 1;
    text-align: right;
    font-size: 3rem;
    font-weight: bold;
    color: #222;
}

.categorias-grid {
    flex: 4;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.categoria-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.categoria-card:hover {
    transform: scale(1.05);
}

.categoria-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.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;
}

.btn-acceder {
    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: 992px) {
    .categorias-section {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }
    .categorias-titulo {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 250px;
    }
    
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .slide span {
        font-size: 1.5rem;
        padding: 0 10px;
        text-align: center;
    }
    h2 {
        font-size: 1.4rem;
    }

    .carrusel-container {
        width: 100%;
        overflow-x: auto;
        -ms-overflow-style: none; 
        scrollbar-width: none; 
    }
    .carrusel-container::-webkit-scrollbar {
        display: none; 
    }
    
    .carrusel {
        transition: none;
        padding: 0 15px; 
    }


    .carrusel-container .btn {
        display: none;
    }

    .tarjeta {
        flex: 0 0 220px;
        padding: 10px;
    }
    .tarjeta img {
        height: 150px;
    }
    .tarjeta h3 {
        font-size: 1rem;
    }
    .tarjeta p {
        font-size: 0.9rem;
    }
    
    .categorias-titulo {
        font-size: 2rem;
    }
    .categorias-grid {
        gap: 15px;
    }
}