@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('footer.css');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-family: "Montserrat", sans-serif;
}

html{ scroll-behavior: smooth; }

body{
    background-color: #121212;
    color: #eee;
    overflow-x: hidden;
    position: relative;

    /* padding: 0.8rem; */
}
a{ text-decoration: none; }
li{ list-style: none; }

header{
    /* background-color: aqua; */
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100px;

    .logo{
        display: flex;
        align-items: center;
        gap: 1rem;
        /* background-color: red; */

        img{ width: 100px; border-radius: 15px; }
        p{
            font-size: clamp(1.1rem, 1.4vw, 1.2rem);
            font-weight: 500;
            line-height: 1.1;
        }
    }
    nav{
        ul{
            display: flex;
            justify-content: space-around;
            gap: 1rem;
            /* background-color: blue; */

            .secciones, .barra{
                display: flex;
                align-items: center;
                position: relative;
                font-size: 0.85rem;
                text-decoration: none;
                list-style: none;
                padding: 1rem 1.5rem;
                cursor: pointer;
                font-weight: 600;
                transition: all 0.2s ease-in-out;

                a{ z-index: 1; }
            }

            .secciones::after{ opacity: 0; }
            .barra{ display: none; }
            .productos{ text-shadow: 2px 2px 10px white; }
            .secciones::after{
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                background-color: transparent;
                border-bottom: solid;
                /* opacity: 1; */
                transition: all 0.3s ease-in-out;
            }
            .productos::after{
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                opacity: 1;
                width: 100%;
                height: 100%;
                background-color: transparent;
                border-bottom: solid;
            }
            .secciones:hover::after, .secciones:hover,
            .secciones:active::after, .secciones:focus::after{ opacity: 1;  text-shadow: 2px 2px 10px white;}
        }
        .sidebar{
            position: fixed;
            /* display: flex; */
            display: none;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            top: 0;
            right: 0;
            height: 100vh;
            width: 250px;
            z-index: 999;
            backdrop-filter: blur(8px);
            box-shadow: -10px 0 10px rgba(0, 0, 0, 0.5);
            /* padding: 1rem 0 0 0; */
            .secciones, .cerrar_sidebar{ display: flex; align-items: center; width: 100%; height: 60px; }
            .seecciones a{ width: 100%; }
            .cerrar_sidebar{
                cursor: pointer;
                z-index: 1000;
                padding: 1rem 1.5rem;
            }
        }
    }
}

.carrusel_productos{
    padding: 2rem 0 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: solid 1px;
    gap: 1rem;

    .productos_header{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-bottom: 2rem;

        h2{ font-size: 2.8rem; text-align: center; }
        p{ font-size: 1.2rem; }
    }
    h2{ text-align: center; font-size: clamp(2rem, 2vw, 2.2rem); padding: 1rem 0; }

    .paquetes{
        padding: 2rem 0;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;

        h1{ 
            text-align: center; 
            font-size: clamp(2.2rem, 2vw, 2.4rem);
            padding: 1rem 0 2rem 0;
            background: linear-gradient(135deg, #d4a373 0%, #f5e6d3 50%, #d4a373 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .div_paquetes{
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            padding: 1rem;
            
            .paquete{
                display: flex;
                flex-direction: column;
                gap: 1rem;
                padding: 2rem;
                align-items: flex-start;
                justify-content: space-between;
                border-radius: 20px;
                background: linear-gradient(145deg, #1d1d1d, #252525);
                border: 1px solid #333;
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
                transition: all 0.3s ease;
                min-height: 350px;

                h2{ 
                    font-size: 1.5rem; 
                    text-align: center;
                    width: 100%;
                    color: #d4a373;
                    border-bottom: 2px solid #d4a373;
                    padding-bottom: 0.8rem;
                    margin-bottom: 0.5rem;
                }
                
                ul{
                    display: flex;
                    flex-direction: column;
                    gap: 0.5rem;
                    width: 100%;
                    flex-grow: 1;
                    
                    li{ 
                        list-style: none;
                        position: relative;
                        padding-left: 1.5rem;
                        font-size: 0.95rem;
                        line-height: 1.5;
                    }
                    
                    li::before{
                        content: '✓';
                        position: absolute;
                        left: 0;
                        color: #d4a373;
                        font-weight: bold;
                        font-size: 1.1rem;
                    }
                }
                
                .precio{
                    width: 100%;
                    
                    span{
                        display: flex;
                        justify-content: center;
                        color: #d4a373;
                        font-size: 1.5rem;
                        font-weight: 700;
                    }
                }

                p{ 
                    text-align: center; 
                    width: 100%;
                    margin-top: auto;
                    padding-top: 1rem;
                    border-top: 1px solid #333;
                    color: #aaa;
                    font-size: 0.9rem;
                    font-style: italic;
                }

                .agregar_carrusel{
                    margin-top: 0.5rem;
                    width: 100%;
                    background-color: #2A2A2A;
                    color: #fff;
                    border: none;
                    padding: 1rem 2rem;
                    font-size: clamp(0.8rem, 4vw, 0.9rem);
                    border-radius: 50px;
                    cursor: pointer;
                    box-shadow: 0 0 0 rgba(255, 255, 255, 0.8);
                    transition: transform 0.2s, background-color 0.2s;
                }
                .agregar_carrusel:hover, .agregar_carrusel:active{
                    transform: scale(1.05); 
                    transform: translateY(-3px);
                    background-color: #2a2a2a;
                    box-shadow: 0 0px 8px 1px rgba(255, 255, 255, 0.6);
                }
            }
            
            .paquete:hover{
                transform: translateY(-5px);
                box-shadow: 0 12px 30px rgba(212, 163, 115, 0.3);
                border-color: #d4a373;
            }
        }
    }
}

.div_cortes_carne, .div_carne_argentina, .div_mariscos{ position: relative; }

.carrusel_viewport{
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    text-align: center;
    margin: 0 auto;

    h2{ font-size: clamp(1.5rem, 4vw, 1.7rem); padding: 0.8rem 0; text-align: center; }
}

.carrusel_track{
    display: flex;
    gap: 2.1rem;
    transition: transform 0.3s ease;
    padding: 1rem 0;
    will-change: transform;
}

.corte{
    min-width: 300px;
    max-width: 300px;
    background: #1d1d1d;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 1rem;
    flex-shrink: 0;

    .corte_info{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    img{
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 12px;
    }
    h3{ font-size: 1rem; }
    p{
        font-size: 0.9rem;
        color: #d4a373;
        font-weight: bold;
    }
    button{
        margin-top: 0.5rem;
        width: 100%;
        background-color: #2A2A2A;
        color: #fff;
        border: none;
        padding: 1rem 2rem;
        font-size: clamp(0.8rem, 4vw, 0.9rem);
        border-radius: 50px;
        cursor: pointer;
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.8);
        transition: transform 0.2s, background-color 0.2s;

    }
    button:hover, button:active{
        transform: scale(1.05); 
        transform: translateY(-3px);
        background-color: #2a2a2a;
        box-shadow: 0 0px 8px 1px rgba(255, 255, 255, 0.6);
    }
}


/* Botones */
.btn_productos{
    top: 50%;
    width: 50px;
    height: 50px;
    background: #1d1d1d;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.btn_productos:hover, .btn_productos:active{
    box-shadow: 0 0 10px 2px rgba(100, 100, 100, 0.8);
}
.btn_marisco{ top: 40%; }

.btn_carne, .btn_carne_clasico, .btn_marisco, .btn_carne_argentina{ position: absolute; }
.btn_left_carne, .btn_left_carne_clasico, .btn_left_marisco, .btn_left_carne_argentina{ left: -10%; }
.btn_right_carne, .btn_right_carne_clasico, .btn_right_marisco, .btn_right_carne_argentina{ right: -10%; }

.btn_carrito{
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    padding: 0.9rem 1rem;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    background: #ffffff;
    color: #121212;
    z-index: 10;
    transition: 0.3s;

    background: #1f1f1f;
    color: #fff;
}
.btn_carrito:hover{ scale: 1.1; transform: translate(-8px, -8px); }

.carrito{
    position: fixed;
    top: 0;
    right: -100%;
    width: 30%;
    height: 100vh;
    background: #151515;
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 20;

    .carrito_header{
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #222;

        h3{ font-size: 1.5rem; }
        #cerrar_carrito{ cursor: pointer; }
    }
    .carrito_items{
        flex: 1;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        overflow-y: auto;
    }
    .carrito_footer{
        padding: 1rem;
        border-top: 1px solid;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
        
        .p_envio_gratis{
            font-size: 0.8rem;
            color: #d4a373;
        }
        .btn_whats_carrito{
            display: flex;
            justify-content: space-around;

            .est1, .est2{
                width: 45%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 0.5rem;

                p{ font-size: 0.9rem; }
                a{ 
                    width: 100%;
                    text-align: center;

                    button{ width: 100%; }
                }
            }
        }
        button{
            padding: 0.7rem;
            border-radius: 999px;
            border: none;
            cursor: pointer;
            background: #ffffff;
            /* background: #8b1e1e; */
            color: #000;
            font-weight: bold;
            transition: all 0.3s ease-in-out;
        }
        button:hover, button:active{ 
            transform: scale(1.02);
            background: #1f1f1f;
            color: white;
            box-shadow: 1px 1px 10px 1px rgba(255, 255, 255, 0.6);
        }
        .pedir_whatsapp:hover{ background-color: #25D366; color: white; }
        strong{
            color: #d4a373;
            font-size: 1.2rem;
        }
    }
}
.carrito.activo{ right: 0; }
.item{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.item_controles{
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.item_controles button{
    background: #1f1f1f;
    border: 1px solid #2a2a2a;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    height: 25px;
}
.item_controles button:hover{
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
}
.vaciar{
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
}

.popup_confirmar{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* opacity: 1; */
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;

    .popup_contenido{
        background: #151515;
        border-radius: 20px;
        padding: 2rem;
        width: 90%;
        max-width: 380px;
        text-align: center;
        box-shadow: 0 25px 60px rgba(0,0,0,0.8);
        animation: popupIn 0.35s ease;
        display: flex;
        flex-direction: column;
        gap: 1rem;

        h3{ font-size: 1.5rem; margin-bottom: 0.5rem; }
        .popup_resumen{
            max-height: 220px;
            overflow-y: auto;
            margin: 1.2rem 0;
            padding: 0.5rem 0;
            border-top: 1px solid #222;
            border-bottom: 1px solid #222;
        }
        p{ font-size: 0.95rem; color: #ccc; }
        .popup_total{
            /* margin: 1rem 0 1.5rem 0; */
            font-size: 1.05rem;
            color: #d4a373;
            font-weight: bold;
        }
        .aviso_envio{
            text-align: center;
            display: flex;
            justify-content: center;
            gap: 1rem;
            padding: 0.5rem 0;
            align-items: center;
            font-size: 0.8rem;  
        }
        .popup_botones{
            display: flex;
            gap: 1rem;

            button{
                flex: 1;
                padding: 0.7rem;
                border-radius: 999px;
                border: none;
                cursor: pointer;
                font-weight: bold;
                transition: all 0.25s ease;
            }
            .cancelar{ background: transparent; border: 1px solid #333; color: #ccc; }
            .confirmar{ background: #ffffff; color: #121212; }
            button:hover{ transform: scale(1.05); }
        }
    }
}
.popup_confirmar.activo{ opacity: 1; pointer-events: auto; }

/* ITEM DEL PEDIDO */
.popup_item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.9rem;

    span{ color: #ddd; }
}

@keyframes popupIn{
    from{ transform: scale(0.9); opacity: 0; }
    to{ transform: scale(1); opacity: 1; }
}


@media (max-width: 800px){
    #menu{ display: none; }
    header nav ul .barra{ display: block; }

    .carrito{
        width: 50%;
        .carrito_items{ span{ font-size: 1.1rem; } }
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px){
    .carrito{ width: 40%; }

}

/* Teléfonos (general) */
@media (max-width: 768px){
    body{ width: 100%; overflow-x: hidden; }

    header{
        .logo{ gap: 0.5rem; }
        nav{ ul{ gap: 0.5rem; .secciones:active, .secciones:active::after{ opacity: 1;  text-shadow: 2px 2px 10px white; } } }
    }

    .carrito{
        width: 45%;

        .carrito_header{ h3{ font-size: 1.2rem; } }
        .carrito_items{ span{ font-size: 0.9rem; } }
    }

}

@media (max-width: 500px){
    .carrito{
        width: 100%;

        .carrito_header{ h3{ font-size: 1.2rem; } }
        .carrito_items{ span{ font-size: 0.9rem; } }
    }
}

/* Teléfonos pequeños */
@media (max-width: 480px){

    header{
        width: 100%;
        height: 80px;
        .logo{
            gap: 0.5rem;
            img{ width: 70px; }
            p{ font-size: 0.9rem; }
        }
        nav{
            ul{ .barra{ font-size: 0.1rem; padding: 0; } }
            .sidebar{
                width: 50%;
                height: 200vh;
                position: fixed;
                .secciones, .cerrar_sidebar{ height: 50px; padding: 0 1rem; }
                .cerrar_sidebar{ padding: 2rem 1rem; }
            }
        }
    }
}

/* RESPONSIVE PARA PAQUETES */

    /* Tablets grandes (2 columnas) */
    @media (min-width: 769px) and (max-width: 1024px){
        .paquetes{
            .div_paquetes{
                grid-template-columns: repeat(2, 1fr);
                gap: 1.2rem;
                
                .paquete{
                    padding: 1.5rem;
                    min-height: 320px;
                    
                    h2{ font-size: 1.4rem; }
                    ul li{ font-size: 0.9rem; }
                }
            }
        }
    }

    /* Tablets pequeñas (2 columnas) */
    @media (min-width: 601px) and (max-width: 768px){
        .paquetes{
            h1{ font-size: 2.2rem; }
            
            .div_paquetes{
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
                padding: 0.5rem;
                
                .paquete{
                    padding: 1.5rem;
                    min-height: 300px;
                    
                    h2{ font-size: 1.3rem; }
                    ul li{ font-size: 0.85rem; }
                    p{ font-size: 0.85rem; }
                }
            }
        }
    }

    /* Móviles (1 columna) */
    @media (max-width: 600px){
        .paquetes{
            padding: 1.5rem 0;
            
            h1{ 
                font-size: 1.8rem; 
                padding: 1rem 0 1.5rem 0;
            }
            
            .div_paquetes{
                grid-template-columns: 1fr;
                gap: 1rem;
                padding: 0 1rem;
                
                .paquete{
                    padding: 1.5rem;
                    min-height: auto;
                    
                    h2{ 
                        font-size: 1.4rem; 
                        padding-bottom: 0.6rem;
                    }
                    
                    ul{
                        gap: 0.4rem;
                        
                        li{ 
                            font-size: 0.9rem; 
                            padding-left: 1.3rem;
                        }
                    }
                    
                    p{ 
                        font-size: 0.85rem; 
                        padding-top: 0.8rem;
                    }
                }
            }
        }
    }

    /* Móviles muy pequeños */
    @media (max-width: 400px){
        .paquetes{
            h1{ font-size: 1.6rem; }
            
            .div_paquetes{
                .paquete{
                    padding: 1.2rem;
                    
                    h2{ font-size: 1.2rem; }
                    ul li{ font-size: 0.85rem; }
                    p{ font-size: 0.8rem; }
                }
            }
        }
    }

@media (max-width: 400px){
    .carrusel_productos{
        .productos_header{
            h2{ font-size: 2.2rem; }
            p{ font-size: 0.8rem; }
        }
    }

    .carrusel_viewport{ 
        max-width: 300px;
        h2{ font-size: 2rem; }
    }

    .btn_productos{
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }

    .btn_marisco{ top: 42.5%; }
    .btn_carne_argentina{ top: 55%; }

    .btn_left_carne, .btn_left_carne_clasico, .btn_left_marisco, .btn_left_carne_argentina{ left: -15%; }
    .btn_right_carne, .btn_right_carne_clasico, .btn_right_marisco, .btn_right_carne_argentina{ right: -15%; }
}

@media (min-width: 401px) and (max-width: 600px){
    .carrusel_productos{
        .productos_header{
            h2{ font-size: 2.2rem; }
            p{ font-size: 0.8rem; }
        }
    }

    .carrusel_viewport{ 
        max-width: 300px;
        h2{ font-size: 2rem; }
    }


    .btn_productos{
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }

    .btn_marisco{ top: 42.5%; }
    .btn_carne_argentina{ top: 55%; }

    .btn_left_carne, .btn_left_carne_clasico, .btn_left_marisco, .btn_left_carne_argentina{ left: -18%; }
    .btn_right_carne, .btn_right_carne_clasico, .btn_right_marisco, .btn_right_carne_argentina{ right: -18%; }
}

@media (min-width: 601px) and (max-width: 800px){
    .carrusel_productos{
        .productos_header{
            h2{ font-size: 2.2rem; }
            p{ font-size: 0.8rem; }
        }
    }

    .carrusel_viewport{ 
        max-width: 300px;
        h2{ font-size: 2rem; }
    }

    .btn_marisco{ top: 42.5%; }
    .btn_carne_argentina{ top: 55%; }

    .btn_left_carne, .btn_left_carne_clasico, .btn_left_marisco, .btn_left_carne_argentina{ left: -25%; }
    .btn_right_carne, .btn_right_carne_clasico, .btn_right_marisco, .btn_right_carne_argentina{ right: -25%; }
}

@media (min-width: 801px) and (max-width: 1099px){
    .carrusel_productos{
        .productos_header{
            h2{ font-size: 2.2rem; }
            p{ font-size: 0.8rem; }
        }
    }

    .carrusel_viewport{ 
        max-width: 650px;
    }

    .corte{ width: 300px; }
    
    .btn_left_carne, .btn_left_carne_clasico, .btn_left_marisco, .btn_left_carne_argentina{ left: -10%; }
    .btn_right_carne, .btn_right_carne_clasico, .btn_right_marisco, .btn_right_carne_argentina{ right: -10%; }
}

@media (min-width: 1100px){
    .carrusel_productos{
        .productos_header{
            h2{ font-size: 2.2rem; }
            p{ font-size: 0.8rem; }
        }
    }

    .carrusel_viewport{ 
        max-width: 970px;
    }

    .corte{ width: 300px; }
}