@import url('https://fonts.googleapis.com/css2?family=Pirata+One&display=swap');
body {
    background-image: url('../images/Fondo8.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    overflow-x: hidden;
    /* 👈 Aquí lo agregas */
}

.productos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.producto {
    background: linear-gradient(135deg, #f5f7fa, #dcc6a2);
    border-radius: 25px;
    margin: 20px;
    padding: 25px;
    height: 600px;
    width: 330px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    margin-top: 120px;
}

.producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 25px;
    border: 5px solid #2c130d;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
    padding: 0;
}

.producto img:hover {
    transform: scale(1.08);
}

.producto h2 {
    font-size: 1.6em;
    margin: 20px 0 10px;
    color: #2c130d;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Pirata One', cursive;
}

.producto p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.producto.grande {
    width: 100%;
    height: 700px;
    background: linear-gradient(135deg, #f5f7fa, #dcc6a2);
    border-radius: 25px;
    margin: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.producto.grande img {
    width: 60%;
    height: auto;
    border-radius: 25px;
    border: 5px solid #2c130d;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
}

.producto.grande h2 {
    font-size: 1.8em;
    margin: 10px 0 5px;
    color: #2c130d;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Pirata One', cursive;
}

.precio-anterior {
    font-size: 1.1em;
    color: #555;
    text-decoration: line-through;
    margin-right: 10px;
}

.precio {
    font-size: 1.6em;
    color: #2c130d;
    margin: 10px 0;
    font-weight: bold;
}

.descuento {
    position: absolute;
    top: 15px;
    left: -45px;
    background-color: #2c130d;
    color: #fff;
    padding: 10px 60px;
    font-size: 1.1em;
    font-weight: bold;
    transform: rotate(-45deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.descuentoG {
    position: absolute;
    top: 15px;
    left: -45px;
    background-color: #8B0000;
    color: #fff;
    padding: 10px 60px;
    font-size: 1.1em;
    font-weight: bold;
    transform: rotate(-45deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.comprar {
    background-color: #2c130d;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
}

.comprar:hover {
    background-color: #2c130d;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.titulo-grupo {
    font-size: 2em;
    color: #fff;
    background-color: #2c130d;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 50px;
    font-family: 'Pirata One', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    width: 40%;
    margin-left: 500px;
}

.grupo-productos {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-grupo::before,
.titulo-grupo::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: #fff;
    top: 50%;
    width: 50px;
}

.titulo-grupo::before {
    left: 10px;
}

.titulo-grupo::after {
    right: 10px;
}

.titulo-grupo-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.oferta-del-dia h4 {
    background-color: #8B0000;
    color: #fff;
    font-size: 1.8em;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Pirata One', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto 20px auto;
    width: fit-content;
}

.ofertas h4 {
    background-color: #2c130d;
    color: white;
    font-size: 1.5em;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-family: 'Pirata One', cursive;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-inner .row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 120px;
    /* 👈 Aquí defines el espacio entre las cartas */
    margin: 0;
}


/* 🌟 Estabiliza la altura del carrusel */

.carousel-item {
    min-height: 500px;
    /* o 450px si lo necesitas más alto */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -30px;
    padding-bottom: 60px;
    /* Aumenta el espacio inferior dentro del item */
}

.carousel-item .row {
    width: 100%;
    margin: 0;
    justify-content: center;
}

.col-md-4 {
    padding: 0 15px;
}


/* ✅ SELECT ESTILIZADO CON FLECHITA PERSONALIZADA */

.select-container {
    position: relative;
    width: 100%;
}

.select-container select {
    appearance: none;
    background-color: #ffffff;
    border: 2px solid #2c130d;
    border-radius: 10px;
    padding: 5px 45px 5px 15px;
    font-size: 1em;
    color: #2c130d;
    font-family: 'Pirata One', cursive;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-container select:hover,
.select-container select:focus {
    background-color: #dcc6a2;
    border-color: #8B0000;
    outline: none;
}

.select-container::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    color: #2c130d;
    pointer-events: none;
}

.select-container select option {
    background-color: #fff;
    color: #2c130d;
    font-size: 1em;
    padding: 10px;
}

.select-container select option:checked {
    background-color: #8B0000;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .producto {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 12px;
        width: 95%;
        height: auto !important;
        min-height: unset !important;
        /* 🔧 Cancela cualquier min-height heredado */
        max-width: 100%;
        margin: 8px auto !important;
        /* 🔧 Menor separación entre tarjetas */
        text-align: left;
        gap: 12px;
        border-radius: 15px;
        position: relative;
        overflow-x: clip;
    }
    .producto img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 15px;
        border: 3px solid #2c130d;
        flex-shrink: 0;
    }
    .producto .contenido-producto {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }
    .producto h2 {
        font-size: 1em;
        margin: 0;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        font-family: 'Pirata One', cursive;
    }
    .producto p {
        font-size: 0.9em;
        margin: 3px 0;
        line-height: 1.3;
    }
    .producto .precio-anterior {
        font-size: 0.85em;
        margin-right: 5px;
    }
    .producto .precio {
        font-size: 1em;
        font-weight: bold;
    }
    .producto .select-container {
        margin-top: 5px;
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    .select-container select {
        appearance: none;
        background-color: #ffffff;
        border: 2px solid #2c130d;
        border-radius: 10px;
        padding: 8px 35px 8px 12px;
        font-size: 0.95em;
        color: #2c130d;
        font-family: 'Pirata One', cursive;
        width: 100%;
        max-width: 100%;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
        direction: ltr;
    }
    .select-container select option {
        font-size: 0.95em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }
    .select-container::after {
        content: "\f078";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.9em;
        color: #2c130d;
        pointer-events: none;
    }
    .producto .comprar {
        font-size: 0.9em;
        padding: 6px;
        margin-top: 5px;
        width: 100%;
    }
    .descuento {
        top: 8px;
        left: -30px;
        font-size: 0.8em;
        padding: 5px 40px;
    }
    /* 🎯 OFERTA DEL DÍA AJUSTADA */
    .producto.grande {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        height: auto;
        margin: auto;
        width: 80%;
        margin-bottom: 10%;
    }
    .producto.grande img {
        width: 90%;
        max-width: 250px;
        margin-bottom: 15px;
    }
    .producto.grande h2 {
        font-size: 1.2em;
        text-align: center;
        white-space: normal;
    }
    .oferta-del-dia h4 {
        font-size: 1.3em;
        padding: 10px 15px;
    }
    .titulo-grupo {
        width: 90%;
        margin: 20px auto;
        font-size: 1.5em;
        padding: 10px;
    }
    .producto:hover {
        transform: none;
        box-shadow: none;
    }
    .carousel-indicators {
        margin-bottom: -40px;
        /* Puedes ajustar el valor según cuánto quieras bajarlo */
        z-index: 1;
        /* Asegúrate de que no se encimen sobre el contenido */
    }
    .carousel-inner .row {
        gap: 10px !important;
        /* 🔧 reduce separación horizontal y vertical */
        margin-left: 30px;
    }
    .carousel-item {
        min-height: unset !important;
        /* ❌ evita forzar altura en móvil */
        padding-bottom: 0;
    }
}