:root {
    --titulos: 'Montserrat', sans-serif;
    --texto: : 'Open Sans', sans-serif;
    --colorFondo: #FBFFF1;
    --colorTitulos: #2D3142;
    --colorBoton: #E2A021;
    --colorSeleccion: #c98a1d;
    --colorContenedores: #0F4C5C;

}

* {
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('../img/Fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
}

body {
    background-color: #FBFFF1;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    flex-direction: column;
    height: 23vh;
    align-items: center;
}

header .volver-logo {
    background-color: rgba(15, 76, 92, 0.85);
    display: flex;
    align-items: center;
    width: 100%;
}

header img {
    height: 15vh;
    margin: 0 auto;
}

.btn-volver {
    position: absolute;
    left: 0.5rem;
    color: var(--colorFondo);
    font-family: var(--titulos);
    font-weight: 900;
    font-size: 1.2rem;
    background-color: transparent;
    text-decoration: none;
}

.btn-volver:hover {
    color: var(--colorBoton);
    transform: scale(1.1);
}

header .estado {
    width: 100%;
    display: flex;
    justify-content: center;
    color: var(--colorTitulos);
    font-family: var(--titulos);
    font-weight: lighter;
    font-size: 0.7rem;
    background: linear-gradient(to right, var(--colorContenedores), var(--colorFondo), var(--colorContenedores));
}

.menu-toggle {
    display: none;
}

.opciones {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    background-color: var(--colorContenedores);
}

.opciones .menu {
    display: flex;
    gap: clamp(0.8rem, 2vw, 2.5rem);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.opciones .menu a {
    text-decoration: none;
    color: var(--colorFondo);
    font-family: var(--titulos);
    font-weight: lighter;
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    white-space: nowrap;
}

.opciones .menu a:hover {
    color: var(--colorBoton);
    border-bottom: 0.5px solid var(--colorBoton);
    transform: scale(1.1);
}


.search {
    position: absolute;
    right: 0.5rem;
    color: var(--colorFondo);
    font-family: var(--titulos);
    font-weight: 900;
    font-size: 1.2rem;
    background-color: transparent;
    text-decoration: none;
}

.search {
    position: absolute;
    right: 0.5rem;

    display: flex;
    align-items: center;

    background-color: var(--colorFondo);
    border-radius: 25px;

    padding: 5px 15px;
    width: 13vw;
    border: solid var(--colorContenedores);
}

.search input {
    border: none;
    outline: none;
    background: transparent;

    font-family: var(--titulos);
    font-size: 1rem;
    color: var(--colorTitulos);

    width: 100%;
}

.search button {
    border: none;
    background: var(--colorBoton);
    color: var(--colorTitulos);

    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;

    transition: 0.3s;
}

.search button:hover {
    background: var(--colorSeleccion);
    transform: scale(1.1);
    color: var(--colorFondo);
}

main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem;
}

main .plato {
    all: unset;
    display: flex;
    position: relative;

    background-color: var(--colorContenedores);
    height: 18vh;

    border-radius: 12px;
    overflow: visible;

    cursor: pointer;
    border-radius: 20px;
}

main .plato img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

main .plato .info {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
    gap: 1rem;
    width: 100%; 
}

main .plato h2 {
    margin: 0;
    font-family: var(--titulos);
    font-size: 1rem;
    color: var(--colorFondo);
}

main .plato p {
    margin: 0;

    color: var(--colorFondo);
    font-family: var(--texto);
    font-size: 1rem;

    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.btn-add {
    position: absolute;
    top: 0;
    right: 0;

    transform: translate(50%, -50%);

    width: 2rem;
    height: 2rem;

    border-radius: 50%;

    background: var(--colorBoton);
    color: var(--colorFondo);
    font-family: var(--titulos);
    font-size: 1rem;


    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}

main .plato button:hover {
    color: var(--colorFondo);
    box-shadow: 0 0 20px rgba(119, 104, 255, 0.6);
    background-color: var(--colorSeleccion);

}

.plato:hover {
    color: var(--colorFondo);
    box-shadow: 0 0 20px rgba(119, 104, 255, 0.6);
    background-color: var(--colorSeleccion);
    scale: 1.05;
}

.precio {
    margin-top: auto;
    margin-left: auto; 

    font-family: var(--titulos);
    font-size: 1rem;
    font-weight: 900;

    padding: 0.2rem 0.6rem;
    border-radius: 10px;

    background: var(--colorBoton);
    color: var(--colorFondo);
}

.modal{
    display:none;
    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100vh;

    background:rgba(0,0,0,.6);

    overflow-y:auto;

    padding:25px;

    z-index:9999;
}

.modal-content{

    background:var(--colorFondo);

    width:100%;
    max-width:550px;

    margin:30px auto;

    border-radius:20px;

    padding:20px;

    max-height:calc(100vh - 60px);

    overflow-y:auto;

    overflow-x:hidden;

    position:relative;
}

.modal-content img {
    width: 100%;
    border-radius: 15px;
}

.modal-content h2{
    margin: 18px 0 10px;
}

.modal-content p{
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-content h3{
    margin: 20px 0 12px;
    font-size: 20px;
}

.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

#extras {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0 25px;
}
#extras label{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 16px;
}

#observaciones{
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #000;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-size: 15px;
    resize: vertical;
}

#observaciones:focus{
    outline: none;
    border-color: var(--colorBoton);
}


.footer-modal button{
    background: var(--colorBoton);
    color: var(--colorFondo);

    padding: .9rem 2rem;

    border-radius: .8rem;

    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 700;

    cursor: pointer;

    transition: .25s;
}

.footer-modal button:hover{
    background: var(--colorSeleccion);
    transform: scale(1.04);
}

.footer-modal{
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 1.5rem;
    padding-top: 1rem;

    border-top: 0.12rem solid #ddd;
}

#modal-precio{
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    font-family: var(--titulos);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 900;
    color: var(--colorContenedores);
}

#modal-precio::before{
    content: "TOTAL";
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08rem;
    color: #777;
}






/* ===== BOTÓN FLOTANTE ===== */
.btn-carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background: var(--colorBoton);
    color: white;

    padding: 1rem;
    border-radius: 50%;

    font-size: 1.5rem;
    cursor: pointer;

    display: none;
    z-index: 2000;
}

#contador-carrito {
    position: absolute;
    top: -5px;
    right: -5px;

    background: red;
    color: white;

    font-size: 0.7rem;
    border-radius: 50%;
    padding: 2px 6px;
}

/* ===== PANEL ===== */
.panel-carrito {
    position: fixed;
    right: -400px;
    top: 0;

    width: 350px;
    height: 100vh;

    background: #E9E6D8;
    border-left: 4px solid var(--colorBoton);

    padding: 1rem;
    transition: 0.3s;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}

#carrito-items{

    flex:1;

    overflow-y:auto;

    overflow-x:hidden;

    min-height:0;

    padding-right:.3rem;

    padding-bottom:100px;
}

.panel-carrito.active {
    right: 0;
}

.panel-carrito h2 {
    font-family: var(--titulos);
    margin-bottom: 1rem;
}

.total{

    margin-top:10px;

    padding:10px;

    background:#E9E6D8;

    position:sticky;

    bottom:70px;

    font-size:18px;

    font-weight:bold;

    z-index:99;
}


.btn-pedido{

    width:100%;

    padding:18px;

    background:var(--colorBoton);

    color:white;

    font-size:18px;

    font-weight:bold;

    border-radius:15px;

    cursor:pointer;

    position:sticky;

    bottom:0;

    z-index:100;

    margin-top:10px;
}

/* ITEM */
.item-carrito {
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

/*==============================
    ACCIONES DEL CARRITO
===============================*/

.acciones{

    display:flex;

    align-items:center;

    gap:12px;

    margin-top:12px;
}

.btn-cantidad{

    width:48px;

    height:48px;

    border-radius:50%;

    background:var(--colorBoton);

    color:white;

    font-size:28px;

    font-weight:bold;

    cursor:pointer;

    transition:.2s;
}

.btn-cantidad:hover{

    background:var(--colorSeleccion);

    transform:scale(1.08);
}

.btn-eliminar{

    width:48px;

    height:48px;

    border-radius:12px;

    background:#d9534f;

    color:white;

    font-size:22px;

    font-weight:bold;

    cursor:pointer;

    transition:.2s;
}

.btn-eliminar:hover{

    background:#c9302c;

    transform:scale(1.08);
}

.cantidad{

    min-width:35px;

    text-align:center;

    font-size:22px;

    font-weight:bold;

    color:var(--colorContenedores);
}


.form-pedido {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-pedido input,
.form-pedido select,
.form-pedido textarea{

    width: 100%;

    padding: .6rem;

    border: 1px solid #ccc;

    border-radius: 10px;

    background: #fff;

    color: #333;

    font-family: inherit;

    font-size: 1rem;
}

.form-pedido textarea{

    min-height: 6rem;

    resize: vertical;
}

.form-pedido textarea::placeholder{

    color: #777;

    opacity: 1;
}

.form-pedido textarea:focus{

    outline: none;

    border-color: var(--colorBoton);
}

#datosOtraPersona{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: .8rem;
}

#modal-checkout label{

    display: flex;
    align-items: center;
    gap: .6rem;

    margin: .8rem 0;

    font-weight: 600;

    cursor: pointer;
}

#modal-checkout input[type="checkbox"]{

    width: auto;

    margin: 0;

    accent-color: var(--colorBoton);

    cursor: pointer;
}

#pagoQR {
    text-align: center;
}

.item-carrito small {
    display: block;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    text-overflow: ellipsis;
}

.checkout{
    max-width: 900px;
    margin: auto;
    padding: 2rem;
}

.item-checkout{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--colorContenedores);
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.item-checkout img{
    border-radius: 10px;
}

.item-checkout .desc{
    font-size: 0.8rem;
    opacity: 0.8;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carrito-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.cerrar-carrito{
    background:none;
    border:none;
    color:white;
    font-size:20px;
    cursor:pointer;
}

.btn-datos{
    width:100%;
    padding:10px;
    border:none;
    border-radius:10px;
    margin-bottom:15px;
    background:#7768FF;
    color:white;
    font-weight:bold;
    cursor:pointer;
}

.btn-datos.activo{
    background: #22c55e;
    color: white;
}

.plato.agotado {
    opacity: 0.4;
    filter: grayscale(100%);
    cursor: not-allowed;
    position: relative;
}

.plato.agotado::after {
    content: "AGOTADO";
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 5px;
    font-weight: bold;
}

#modal-checkout .modal-content{

    max-height:90vh;

    overflow-y:auto;

    overflow-x:hidden;

    padding-right:15px;
}

/*=============================
    CATEGORÍAS
==============================*/

.categoria{
    grid-column: 1 / -1;
}


.titulo-categoria{

    font-family:var(--titulos);
    color:var(--colorContenedores);

    font-size:2rem;

    margin-bottom:35px;

    border-left:8px solid var(--colorBoton);

    padding-left:15px;
}

.categoria-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:2rem;
}



/*==============================
    ALERTA PERSONALIZADA
===============================*/

.modal-alerta{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.55);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:99999;
}

.alerta-box{

    width:min(90%,24rem);

    background:var(--colorFondo);

    border-radius:1rem;

    padding:2rem;

    text-align:center;

    box-shadow:0 .5rem 2rem rgba(0,0,0,.25);
}

.alerta-icono{

    font-size:3rem;

    margin-bottom:1rem;
}

.alerta-box h2{

    color:var(--colorContenedores);

    margin-bottom:.8rem;

    font-family:var(--titulos);
}

.alerta-box p{

    margin-bottom:1.5rem;
}

.alerta-box button{

    width:100%;

    padding:.9rem;

    border-radius:.8rem;

    background:var(--colorBoton);

    color:white;

    cursor:pointer;

    font-weight:bold;
}

.alerta-box button:hover{

    background:var(--colorSeleccion);
}

/*==============================
    BOTÓN ENVIAR PEDIDO
===============================*/

.btn-enviar-pedido{

    width:100%;

    margin-top:20px;

    padding:16px;

    border:none;
    border-radius:14px;

    background:linear-gradient(135deg,
        var(--colorBoton),
        #f6b73c);

    color:#fff;

    font-family:var(--titulos);
    font-size:1.05rem;
    font-weight:700;

    cursor:pointer;

    transition:.25s;

    box-shadow:0 8px 20px rgba(226,160,33,.35);
}

.btn-enviar-pedido:hover{

    transform:translateY(-2px);

    background:linear-gradient(135deg,
        #f6b73c,
        var(--colorSeleccion));

    box-shadow:0 12px 28px rgba(226,160,33,.45);
}

.btn-enviar-pedido:active{

    transform:scale(.98);
}

.btn-enviar-pedido:disabled{

    opacity:.6;
    cursor:not-allowed;
    transform:none;
}

/*==============================
    MODAL ÉXITO
===============================*/

.modal-content.modal-exito{

    width:90%;
    max-width:340px !important;

    margin:auto;

    padding:25px !important;

    text-align:center;

    border-radius:18px;

    max-height:none !important;
}

.modal-exito h2{

    font-size:1.4rem;
    margin-bottom:15px;
}

.modal-exito p{

    font-size:.95rem;
    margin-bottom:12px;
    line-height:1.4;
}

.modal-exito a{

    display:block;

    width:100%;

    padding:12px;

    margin:18px 0;

    border-radius:12px;

    background:#25D366;

    color:white;

    text-decoration:none;

    font-weight:700;

    transition:.25s;
}

.modal-exito a:hover{

    transform:scale(1.03);
}

.modal-exito button{

    width:100%;

    padding:12px;

    border-radius:12px;

    background:var(--colorBoton);

    color:white;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;
}

.modal-exito button:hover{

    background:var(--colorSeleccion);
}


/*==================================
    MIS PEDIDOS
==================================*/

.contenedor-pedidos{

    max-width:1000px;

    margin:2rem auto;

    padding:0 1.5rem;
}

.titulo-pedidos{

    font-family:var(--titulos);

    color:var(--colorContenedores);

    font-size:2rem;

    margin-bottom:2rem;

    border-left:8px solid var(--colorBoton);

    padding-left:15px;
}


/*==============================
    BUSCADOR
==============================*/

.buscar-pedidos{

    background:white;

    border-radius:20px;

    padding:25px;

    margin-bottom:35px;

    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.input-busqueda{

    width:100%;

    padding:15px;

    border:2px solid #ddd;

    border-radius:12px;

    font-size:1rem;

    margin-bottom:15px;

    transition:.3s;
}

.input-busqueda:focus{

    outline:none;

    border-color:var(--colorBoton);
}

.btn-buscar{

    background:var(--colorBoton);

    color:white;

    padding:14px 25px;

    border-radius:12px;

    font-family:var(--titulos);

    font-weight:bold;

    cursor:pointer;

    transition:.25s;
}

.btn-buscar:hover{

    background:var(--colorSeleccion);

    transform:translateY(-2px);
}


/*==============================
    TARJETA PEDIDO
==============================*/

.pedido-card{

    background:var(--colorContenedores);

    color:white;

    border-radius:20px;

    padding:25px;

    margin-bottom:35px;

    box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.pedido-card h2{

    font-family:var(--titulos);

    margin-bottom:20px;
}

.pedido-card p{

    margin-bottom:10px;

    line-height:1.6;
}

.linea-pedido{

    margin:25px 0;

    border:none;

    border-top:1px solid rgba(255,255,255,.25);
}


/*==============================
    PRODUCTOS
==============================*/

.producto-card{

    background:rgba(255,255,255,.08);

    border-radius:15px;

    padding:18px;

    margin-bottom:15px;
}

.producto-card p{

    margin:6px 0;
}


/*==============================
    TOTAL
==============================*/

.total-pedido{

    margin-top:25px;

    background:var(--colorBoton);

    color:white;

    padding:15px;

    border-radius:12px;

    text-align:center;

    font-size:1.3rem;

    font-family:var(--titulos);

    font-weight:bold;
}


/*==============================
    SIN PEDIDOS
==============================*/

.sin-pedidos{

    background:white;

    border-radius:20px;

    padding:40px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.sin-pedidos h2{

    color:var(--colorContenedores);

    font-family:var(--titulos);

    margin:15px 0;
}

main.contenedor-pedidos{

    display:block;

    max-width:1000px;

    margin:2rem auto;

    padding:0 1.5rem;

}

/* BOTÓN WHATSAPP */

.btn-whatsapp{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
    z-index: 999;
    transition: .3s;
}

.btn-whatsapp img{
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.btn-whatsapp:hover{
    transform: scale(1.08);
}

.acciones-carrito{
    display:flex;
    align-items:center;
    gap:10px;
}

.minimizar-carrito{
    width:35px;
    height:35px;
    border:none;
    border-radius:50%;
    background:#f5f5f5;
    cursor:pointer;
    font-size:22px;
    font-weight:bold;
    transition:.2s;
}

.llave-pago{
    margin:25px 0;
    padding:22px;
    background:linear-gradient(135deg,var(--colorContenedores),#186579);
    border-radius:18px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.titulo-llave{
    display:block;
    color:#fff;
    font-family:var(--titulos);
    font-size:1rem;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
    opacity:.9;
}

.valor-llave{
    display:block;
    margin-top:8px;
    color:var(--colorBoton);
    font-family:var(--titulos);
    font-size:2.8rem;
    font-weight:900;
    letter-spacing:2px;
}

.minimizar-carrito:hover{
    background:#ddd;
}
.llave-pago{
    cursor:pointer;
    user-select:none;
}

.llave-pago small{
    display:block;
    margin-top:8px;
    color:#fff;
    opacity:.8;
}

.btn-whatsapp{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
    z-index: 999;
}
.llave-pago:hover{
    transform:scale(1.02);
}

.toast{
    position:fixed;
    bottom:30px;
    left:50%;
    transform:translateX(-50%) translateY(20px);

    background:var(--colorContenedores);
    color:#fff;

    padding:12px 22px;
    border-radius:30px;

    font-family:var(--texto);
    font-weight:bold;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

    opacity:0;
    visibility:hidden;

    transition:.3s;
    z-index:9999;
}

.toast.mostrar{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
}

.usuario-logueado {
    color: var(--colorBoton);
    font-family: var(--titulos);
    font-weight: 900;
    font-size: clamp(0.7rem, 1vw, 1rem);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*==============================
    RESPONSIVE
==============================*/
/* ==================================
   RESPONSIVE - PORTÁTIL
================================== */

@media (min-width: 769px) and (max-width: 1200px) {

    header {
        height: auto;
    }

    header img {
        height: 12vh;
    }

    .opciones {
        min-height: 55px;
        padding: 0.5rem 1rem;
    }

    .opciones .menu {
        gap: 0.8rem;
    }

    .opciones .menu a {
        font-size: 0.8rem;
    }

    .usuario-logueado {
        font-size: 0.75rem;
        max-width: 160px;
    }

    .search {
        width: 150px;
    }

    .search input {
        font-size: 0.75rem;
    }
}

@media(max-width:768px){

    .contenedor-pedidos{

        padding:0 1rem;
    }

    .pedido-card{

        padding:18px;
    }

    .buscar-pedidos{

        padding:18px;
    }

    .titulo-pedidos{

        font-size:1.6rem;
    }

    .total-pedido{

        font-size:1.1rem;
    }

}

@media (max-width: 768px) {

    .categoria-grid{

        grid-template-columns:1fr;

    }

    /* ===== GRID PRINCIPAL ===== */
    main {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    /* ===== HEADER ===== */
    header {
        height: auto;
    }

    header img {
        height: 10vh;
    }

    /* ===== CONTENEDOR OPCIONES ===== */
    .opciones {
        width: 100%;
        height: auto;

        display: flex;
        justify-content: space-between;
        align-items: center;

        background-color: var(--colorContenedores);
        padding: 0.5rem 1rem;

        position: relative;
    }

    /* ===== SEARCH (IZQUIERDA) ===== */
    .search {
        display: flex;
        align-items: center;

        background-color: var(--colorFondo);
        border-radius: 25px;

        padding: 5px 10px;
        width: 60%;

        border: solid var(--colorContenedores);
    }

    .search input {
        font-size: 0.8rem;
    }

  .opciones .menu {
    display: none;

    flex-direction: column;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    background-color: var(--colorContenedores);

    padding: 1rem;

    gap: 0.8rem;

    text-align: center;

    z-index: 1000;

    box-shadow: 0 8px 15px rgba(0,0,0,.2);
}

.opciones .menu.active {
    display: flex;
}
.usuario-logueado {
    font-size: 0.8rem;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.opciones .menu a {
    font-size: 0.95rem;
    padding: 0.5rem;
}
    .opciones .menu.active {
        display: flex;
    }

    .opciones .menu a {
        font-size: 1rem;
    }

    /* ===== BOTÓN HAMBURGUESA ===== */
    .menu-toggle {
        display: block;

        font-size: 2rem;
        background: none;
        border: none;

        cursor: pointer;
        color: var(--colorFondo);
    }

    /* ===== PLATOS ===== */
    main .plato {
        height: 10rem;
    }

    main .plato h2 {
        font-size: 0.9rem;
    }

    main .plato p {
        font-size: 0.8rem;
        -webkit-line-clamp: 5;
    }

    .btn-add {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }

    .panel-carrito{

    width:100%;

    right:-100%;

    border-left:none;
}

.panel-carrito.active{

    right:0;
}

.item-carrito{

    padding:15px;
}

.item-carrito img{

    width:70px !important;

    height:70px;

    object-fit:cover;
}

.btn-pedido{

    padding:20px;

    font-size:20px;
}



.acciones{

    display:flex;

    align-items:center;

    gap:12px;

    margin-top:10px;
}

.btn-cantidad{

    width:45px;

    height:45px;

    border-radius:50%;

    background:var(--colorBoton);

    color:white;

    font-size:24px;

    font-weight:bold;

    cursor:pointer;
}

.cantidad{

    min-width:30px;

    text-align:center;

    font-size:20px;

    font-weight:bold;
}

.btn-eliminar{

    width:45px;

    height:45px;

    border-radius:12px;

    background:#d9534f;

    color:white;

    font-size:20px;

    cursor:pointer;
}

}