/*
==================================================
CHURRERÍA NONINÁ
STYLE.CSS
Versión 1.0
==================================================
*/

/*=========================
RESET
=========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    background:#f6f6f6;
    color:#222;
}


/*=========================
VARIABLES
=========================*/

:root{

    --rojo:#c41212;
    --rojoHover:#9e0000;

    --amarillo:#ffc400;

    --gris:#eeeeee;

    --gris2:#666;

    --verde:#25D366;

    --blanco:#ffffff;

    --radio:18px;

}


/*=========================
HEADER
=========================*/

.header{

    background:white;

    padding:18px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    position:sticky;

    top:0;

    z-index:1000;

    box-shadow:0 3px 15px rgba(0,0,0,.08);

}

.logo img{

    width:90px;

}

.empresa{

    flex:1;

    padding-left:20px;

}

.empresa h1{

    font-size:28px;

    color:var(--rojo);

}

.empresa p{

    color:#777;

}


/*=========================
BOTÓN CARRITO
=========================*/

.boton-carrito{

    width:65px;

    height:65px;

    border:none;

    border-radius:50%;

    background:var(--rojo);

    color:white;

    cursor:pointer;

    font-size:26px;

    position:relative;

    transition:.25s;

}

.boton-carrito:hover{

    transform:scale(1.08);

}

#contador{

    position:absolute;

    right:-6px;

    top:-6px;

    width:28px;

    height:28px;

    border-radius:50%;

    background:var(--amarillo);

    color:#111;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:bold;

}


/*=========================
HERO
=========================*/

.hero{

    background:linear-gradient(135deg,#c41212,#ff4747);

    color:white;

    text-align:center;

    padding:70px 25px;

}

.hero h2{

    font-size:42px;

    margin-bottom:15px;

}

.hero p{

    font-size:18px;

    opacity:.95;

}

.boton-principal{

    display:inline-block;

    margin-top:30px;

    padding:15px 35px;

    background:white;

    color:var(--rojo);

    border-radius:35px;

    text-decoration:none;

    font-weight:600;

    transition:.25s;

}

.boton-principal:hover{

    transform:translateY(-3px);

}


/*=========================
BUSCADOR
=========================*/

.buscador{

    padding:25px;

    background:white;

}

.buscador input{

    width:100%;

    padding:18px;

    border:2px solid #ddd;

    border-radius:40px;

    font-size:17px;

}


/*=========================
CATEGORÍAS
=========================*/

.categorias{

    display:flex;

    gap:12px;

    overflow-x:auto;

    padding:20px;

    background:white;

}

.categorias button{

    white-space:nowrap;

    border:none;

    padding:12px 22px;

    border-radius:30px;

    background:#ececec;

    cursor:pointer;

    transition:.25s;

    font-weight:600;

}

.categorias button.activo{

    background:var(--rojo);

    color:white;

}


/*=========================
GRID
=========================*/

.grid-productos{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(290px,1fr));

    gap:28px;

    padding:30px;

}


/*=========================
TARJETAS
=========================*/

.tarjeta-producto{

    background:white;

    border-radius:var(--radio);

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.3s;

}

.tarjeta-producto:hover{

    transform:translateY(-8px);

}

.imagen-producto img{

    width:100%;

    height:240px;

    object-fit:cover;

}

.contenido-producto{

    padding:22px;

}

.contenido-producto h3{

    font-size:24px;

    margin-bottom:10px;

}

.ingredientes{

    margin:15px 0;

    padding-left:18px;

    color:#666;

}

.precio{

    font-size:28px;

    color:var(--rojo);

    font-weight:bold;

}

.pie-producto{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:25px;

}

.agregar{

    background:var(--rojo);

    color:white;

    border:none;

    border-radius:40px;

    padding:13px 25px;

    cursor:pointer;

    transition:.25s;

}

.agregar:hover{

    background:var(--rojoHover);

}


/*=========================
DESTACADO
=========================*/

.etiqueta-destacado{

    position:absolute;

    margin:15px;

    background:#ffc400;

    color:#111;

    padding:8px 14px;

    border-radius:20px;

    font-size:13px;

    font-weight:bold;

}


/*=========================
PANEL CARRITO
=========================*/

.panel-carrito{

    position:fixed;

    right:-430px;

    top:0;

    width:420px;

    max-width:100%;

    height:100vh;

    background:white;

    transition:.35s;

    box-shadow:-5px 0 25px rgba(0,0,0,.2);

    z-index:9999;

    display:flex;

    flex-direction:column;

}

.panel-carrito.visible{

    right:0;

}

.cabecera-carrito{

    padding:25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-bottom:1px solid #ddd;

}

#listaCarrito{

    flex:1;

    overflow:auto;

    padding:20px;

}

.total-carrito{

    padding:25px;

    border-top:1px solid #ddd;

    display:flex;

    justify-content:space-between;

    font-size:22px;

    font-weight:bold;

}

.acciones-carrito{

    display:flex;

    gap:10px;

    padding:20px;

}

.acciones-carrito button{

    flex:1;

    border:none;

    padding:15px;

    border-radius:12px;

    cursor:pointer;

}

#tramitarPedido{

    background:var(--verde);

    color:white;

}


/*=========================
OVERLAY
=========================*/

#overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    display:none;

    z-index:9000;

}

#overlay.visible{

    display:block;

}


/*=========================
FORMULARIO
=========================*/

#formularioPedido{

    display:none;

}

#formularioPedido.visible{

    display:block;

}