/*==================================
RESET
==================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#0d0d0d;

    color:#fff;

    min-height:100vh;

}

/*==================================
APP
==================================*/

.app{

    max-width:430px;

    min-height:100vh;

    margin:auto;

    background:#111;

    position:relative;

    overflow:hidden;

    padding-bottom:90px;

}
/*==================================
HEADER
==================================*/

.header{

    position:sticky;
    top:0;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px;

    background:#111;

    border-bottom:2px solid #c8102e;

    z-index:100;

}

.logo{

    width:90px;

}

.menu-btn,
.contacto-btn{

    background:#d60b32;

    border:none;

    border-radius:16px;

    color:#fff;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.admin-btn{

    width:44px;

    height:44px;

    border:none;

    border-radius:50%;

    background:#1f1f1f;

    color:#fff;

    font-size:24px;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.3s;

}

.admin-btn i{

    font-size:24px;

}

.admin-btn:hover{

    background:#C8102E;

    transform:scale(1.08);

}

.menu-btn{

    width:56px;

    height:46px;

    font-size:24px;

}

.contacto-btn{

    width:110px;

    height:46px;

    font-size:16px;

    letter-spacing:.5px;

}

.menu-btn:hover,
.contacto-btn:hover{

    background:#b9082b;

    transform:scale(1.03);

}
.cart-count{

    position:absolute;

    top:-6px;
    right:-6px;

    width:22px;
    height:22px;

    border-radius:50%;

    background:#ffd400;

    color:#000;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:12px;
    font-weight:bold;

}

/*==================================
BANNER
==================================*/

.banner{

    padding:15px;

}

.banner img{

    width:100%;

    border-radius:20px;

    display:block;

}

/*==================================
BUSCADOR
==================================*/

.search{

    padding:0 15px 15px;

}

.search input{

    width:100%;

    padding:15px;

    border:none;

    border-radius:15px;

    background:#1d1d1d;

    color:#fff;

    font-size:15px;

    outline:none;

}

.search input::placeholder{

    color:#888;

}

/*==================================
CATEGORIAS
==================================*/

.categorias{

    display:flex;

    gap:10px;

    overflow-x:auto;

    padding:0 15px 20px;

    scrollbar-width:none;

}

.categorias::-webkit-scrollbar{

    display:none;

}

.categorias button{

    border:none;

    background:#1f1f1f;

    color:#fff;

    padding:10px 18px;

    border-radius:30px;

    white-space:nowrap;

    cursor:pointer;

    transition:.3s;

    font-size:14px;

}

.categorias button:hover{

    background:#c8102e;

}

.categorias .activo{

    background:#c8102e;

}

/*==================================
PRODUCTOS
==================================*/

.productos{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

    padding:10px;

}

/*==================================
CARRITO
==================================*/

.carrito{

    position:fixed;

    bottom:0;

    left:50%;

    transform:translateX(-50%);

    width:100%;

    max-width:430px;

    background:#151515;

    border-top:2px solid #c8102e;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px;

    z-index:1000;

}

.carrito strong{

    display:block;

    font-size:16px;

}

.carrito span{

    color:#ffd400;

    font-size:18px;

    font-weight:bold;

}

.carrito button{

    border:none;

    background:#c8102e;

    color:#fff;

    padding:14px 22px;

    border-radius:15px;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;

}

.carrito button:hover{

    background:#e31837;

}

/*==================================
VERSIÓN ESCRITORIO
==================================*/

@media (min-width:768px){

    body{

        display:flex;

        justify-content:center;

        align-items:center;

        padding:40px;

        background-image:url("../img/fondo.jpg");

        background-size:cover;

        background-position:center;

        background-repeat:no-repeat;

        background-attachment:fixed;

        position:relative;

    }

    body::before{

        content:"";

        position:fixed;

        inset:0;

        backdrop-filter:blur(10px);

        background:rgba(0,0,0,.65);

    }

    .app{

        position:relative;

        z-index:2;

        border-radius:35px;

        overflow:hidden;

        box-shadow:
        0 0 60px rgba(0,0,0,.8),
        0 0 20px rgba(255,255,255,.08);

        border:2px solid #2b2b2b;

    }

}

/*==================================
TARJETAS
==================================*/

.card{

    position:relative;

    background:#1b1b1b;

    border-radius:22px;

    overflow:hidden;

    transition:.35s;

    box-shadow:0 8px 20px rgba(0,0,0,.35);

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:0 20px 35px rgba(0,0,0,.45);

}

.card img{

    width:100%;

    height:170px;

    object-fit:cover;

    transition:.4s;

}

.card:hover img{

    transform:scale(1.08);

}

.badge{

    position:absolute;

    top:12px;

    left:12px;

    background:#c8102e;

    color:#fff;

    font-size:11px;

    font-weight:700;

    padding:6px 10px;

    border-radius:30px;

    z-index:5;

}

.info{

    display:flex;

    flex-direction:column;

    height:100%;

}

.info h3{

    font-size:18px;

    margin-bottom:6px;

}

.info p{

    color:#9b9b9b;

    font-size:13px;

    margin-bottom:18px;

}

.precio{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.precio small{

    display:block;

    color:#888;

    font-size:12px;

    margin-bottom:2px;

}

.precio span{

    color:#FFD54A;

    font-size:25px;

    font-weight:700;

}

.agregar-btn{

    min-width: 90px;

    height: 40px;

    border: none;

    border-radius: 20px;

    background: #C8102E;

    color: #fff;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 0 16px;

    cursor: pointer;

    transition: .25s;

}

.agregar-btn span{

    display: block;

    font-size: 14px;

    font-weight: 700;

    line-height: 1;

    transform: none;

}

.agregar-btn:hover{

    background: #e31b3d;

    transform: scale(1.05);

}

/*==================================
MODAL DEL PRODUCTO
==================================*/

.modal{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.78);

    display:none;
    justify-content:center;
    align-items:flex-end;

    padding:15px;

    z-index:2000;

}

.modal.activo{

    display:flex;

}

.modal-contenido{

    width:100%;
    max-width:430px;
    max-height:92vh;

    background:#181818;

    border-radius:25px 25px 0 0;

    padding:18px;

    overflow-y:auto;

    position:relative;

    animation:subirModal .3s ease;

}

@keyframes subirModal{

    from{
        transform:translateY(100%);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}

.cerrar-modal{

    position:absolute;
    top:12px;
    right:12px;

    width:38px;
    height:38px;

    border:none;
    border-radius:50%;

    background:#c8102e;
    color:#fff;

    font-size:18px;
    cursor:pointer;

    z-index:5;

}

.modal-imagen{

    width:100%;
    height:220px;

    object-fit:cover;

    border-radius:18px;

    margin-bottom:15px;

}

.modal-contenido h2{

    font-size:23px;
    margin-bottom:5px;

}

.modal-descripcion{

    color:#aaa;
    font-size:14px;

    margin-bottom:8px;

}

.modal-precio{

    display:block;

    color:#ffd54a;

    font-size:27px;
    font-weight:700;

    margin-bottom:20px;

}

.opciones-salsa{

    display:flex;
    flex-direction:column;
    gap:10px;

    margin-bottom:20px;

}

.opciones-salsa h3,
.cantidad h3{

    font-size:16px;
    margin-bottom:5px;

}

.opciones-salsa label{

    display:flex;

    align-items:center;

    gap:8px;

    width:100%;

    margin:8px 0;

}

.opciones-salsa{

    display:flex;

    flex-direction:column;

    gap:6px;

}

.opciones-salsa input{

    margin-right:8px;

    accent-color:#c8102e;

}

.cantidad{

    margin-bottom:20px;

}

.cantidad-controles{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;

    margin-top:12px;

}

.cantidad-controles button{

    width:44px;
    height:44px;

    border:none;
    border-radius:50%;

    background:#c8102e;
    color:#fff;

    font-size:25px;
    cursor:pointer;

}

.cantidad-controles span{

    min-width:30px;

    text-align:center;

    font-size:22px;
    font-weight:700;

}

.observaciones-producto{

    margin-bottom:20px;

}

.observaciones-producto label{

    display:block;

    font-size:16px;
    font-weight:600;

    margin-bottom:8px;

}

.observaciones-producto textarea{

    width:100%;
    min-height:90px;

    border:none;
    border-radius:14px;

    background:#242424;
    color:#fff;

    padding:13px;

    font-family:inherit;

    resize:none;
    outline:none;

}

.confirmar-producto{

    width:100%;

    border:none;
    border-radius:15px;

    background:#c8102e;
    color:#fff;

    padding:15px;

    font-size:16px;
    font-weight:700;

    cursor:pointer;

}

@media (min-width:768px){

    .modal{

        align-items:center;

    }

    .modal-contenido{

        border-radius:25px;

    }

}

/* =========================
FORMULARIO FINAL DEL PEDIDO
========================= */

.datos-cliente {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.datos-cliente label {
    display: block;
    font-weight: 600;
    color: #ffffff;
}

.datos-cliente input[type="text"],
.datos-cliente input[type="tel"],
.datos-cliente textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background: #292929;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    outline: none;
}

.datos-cliente input::placeholder,
.datos-cliente textarea::placeholder {
    color: #9a9a9a;
}

.datos-cliente input:focus,
.datos-cliente textarea:focus {
    border-color: #df0a35;
}

.datos-cliente textarea {
    min-height: 85px;
    resize: vertical;
}

.datos-cliente h3 {
    margin-top: 8px;
    margin-bottom: 0;
}

/*=========================
PANEL CONTACTO
=========================*/

.panel-contacto{

    position:fixed;

    top:0;
    right:-100%;

    width:100%;
    max-width:380px;

    height:100vh;

    background:#fff;

    box-shadow:-5px 0 20px rgba(0,0,0,.25);

    transition:.35s;

    z-index:9999;

    overflow:hidden;

}

.panel-contacto.activo{

    right:0;

}

.panel-contacto-contenido{

    height:100vh;

    padding:30px;

    padding-bottom:40px;

    overflow-y:auto;

}

.info-contacto{

    display:flex;

flex-direction:column;

gap:10px;

    margin-top:20px;

    color:#222;

}

.info-contacto h3{

    margin-top:25px;
    margin-bottom:8px;

    font-size:18px;

    color:#d60b32;

}

.info-contacto p{

    margin:0;

    line-height:1.7;

    color:#444;

    font-size:15px;

}

.btn-whatsapp{

    width:100%;

    margin-top:18px;

    padding:14px;

    border:none;

    border-radius:12px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    background:#25D366;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

}

.btn-maps{

    background:#d60b32;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

}

.card-contacto{

    background:#f8f8f8;

    border-radius:18px;

    padding:12px;

    margin-bottom:10px;

    box-shadow:0 8px 18px rgba(0,0,0,.08);

}

.card-contacto h3{

    color:#d60b32;

    margin-bottom:8px;

}

.card-contacto p{

    color:#444;

    line-height:1.6;

}

/*=========================
HEADER PANEL CONTACTO
=========================*/

.contacto-header{

    

    background:linear-gradient(135deg,#d60b32,#b9082b);

    margin:-30px -30px 30px;

    padding:12px 18px 14px;

    border-radius:0 0 25px 25px;

    text-align:center;

}

.contacto-header img{

    width:70px;

    margin-bottom:6px;

}

.contacto-header h2{

    color:#fff;

    font-size:17px;

    font-weight:700;

    margin:0;

}

/*=========================
TÍTULO MENÚ
=========================*/

.titulo-menu{

    padding:12px 16px 6px;

}

.titulo-menu h2{

    color:#fff;

    font-size:22px;

    font-weight:700;

    margin:0;

}

.linea-menu{

    width:90px;

    height:4px;

    background:#d60b32;

    border-radius:10px;

    margin-top:8px;

}

.logo-header{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

}

.logo-header img{

    width:90px;

    display:block;

}

.eliminar-producto{

    width:100%;

    margin-top:10px;

    padding:10px 14px;

    border:none;

    border-radius:10px;

    background:#C8102E;

    color:#fff;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

}

/*=========================
HORARIO
=========================*/

.horario{

    padding:12px 15px 0;

}

.horario-card{

    background:#1b1b1b;

    border:2px solid #C8102E;

    border-radius:18px;

    padding:14px;

    display:flex;

    align-items:center;

    gap:14px;

}

.horario-card i{

    font-size:30px;

    color:#FFD54A;

}

.horario-card strong{

    display:block;

    color:#fff;

    font-size:16px;

    margin-bottom:4px;

}

.horario-card p{

    color:#FFD54A;

    font-size:18px;

    font-weight:700;

}

.modal-contenido {
    position: relative;

    width: 100%;
    max-width: 430px;

    height: 90vh;
    max-height: 760px;

    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.modal-imagen {
    width: 100%;
    height: 220px;

    object-fit: cover;

    flex-shrink: 0;
}

.modal-cuerpo {
    flex: 1;

    overflow-y: auto;

    padding: 20px;

    scrollbar-width: thin;
}

.modal-cuerpo::-webkit-scrollbar {
    width: 5px;
}

.modal-cuerpo::-webkit-scrollbar-thumb {
    background: #C8102E;
    border-radius: 10px;
}
.modal {
    position: fixed;
    inset: 0;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.75);

    z-index: 2000;
    overflow: hidden;
}

.modal.activo {
    display: flex;
}
/*==================================
IMAGEN FIJA EN MODAL
==================================*/

.modal-contenido {
    width: 100%;
    max-width: 430px;
    height: 92vh;

    background: #181818;

    border-radius: 25px 25px 0 0;

    position: relative;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    animation: subirModal .3s ease;
}
.modal-imagen-fija {
    flex-shrink: 0;

    padding: 18px 18px 0;
}

.modal-imagen {
    width: 100%;
    height: 220px;

    object-fit: cover;

    border-radius: 18px;

    display: block;
}

.modal-cuerpo {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 15px 18px 18px;
}

.modal-cuerpo::-webkit-scrollbar {
    width: 5px;
}

.modal-cuerpo::-webkit-scrollbar-thumb {
    background: #c8102e;
    border-radius: 10px;
}
