/* ============================================================
   RESET
============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ============================================================
   BODY
============================================================ */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
    padding-bottom: 90px;
}


/* ============================================================
   ENCABEZADO
============================================================ */

/* ============================================================
   ENCABEZADO
============================================================ */

.encabezado {
    width: 100%;
    background: #111;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 10px;

    margin-bottom: 20px;

    overflow: hidden;
}


/* ============================================================
   LOGO DON ELIO
============================================================ */

.logo-don-elio {
    display: block;

    width: 300px;
    height: 300px;

    max-width: 80vw;

    object-fit: contain;
}

/* ============================================================
   CARTA
============================================================ */

main {
    width: 100%;
    max-width: 900px;

    margin: auto;

    padding: 0 15px;
}


/* ============================================================
   CATEGORÍA
============================================================ */

.categoria {
    margin-bottom: 30px;
}


.categoria h2 {
    font-size: 24px;

    margin-bottom: 15px;

    border-bottom: 2px solid #ddd;

    padding-bottom: 8px;
}


/* ============================================================
   PRODUCTO
============================================================ */

.producto {
    background: white;

    border-radius: 12px;

    padding: 15px;

    margin-bottom: 12px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   IMAGEN PRODUCTO
============================================================ */

.producto-imagen {
    width: 90px;
    height: 90px;

    flex-shrink: 0;

    margin-right: 5px;

    overflow: hidden;

    border-radius: 10px;
}


.producto-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* ============================================================
   INFORMACIÓN PRODUCTO
============================================================ */

.producto-info {
    flex: 1;
    min-width: 0;
}


.producto-nombre {
    font-size: 18px;

    font-weight: bold;

    margin-bottom: 6px;

    overflow-wrap: break-word;
}


.producto-precio {
    font-size: 18px;

    font-weight: bold;

    color: #d35400;
}


/* ============================================================
   BOTÓN +
============================================================ */

.btn-agregar {
    background: #25d366;

    color: white;

    border: none;

    border-radius: 50%;

    width: 45px;
    height: 45px;

    min-width: 45px;

    font-size: 25px;

    cursor: pointer;

    flex-shrink: 0;
}


.btn-agregar:active {
    transform: scale(0.9);
}


/* ============================================================
   CARRITO FIJO
============================================================ */

#carrito-barra {
    position: fixed;

    bottom: 0;
    left: 0;
    right: 0;

    background: #111;

    color: white;

    padding: 12px 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    z-index: 1000;
}


#carrito-barra button {
    background: #25d366;

    border: none;

    color: white;

    padding: 10px 15px;

    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;
}


/* ============================================================
   MODAL
============================================================ */

.modal {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    z-index: 2000;

    padding: 15px;
}


.modal-contenido {
    background: white;

    width: 100%;

    max-width: 500px;

    margin: 20px auto;

    padding: 20px;

    border-radius: 15px;

    max-height: 92vh;

    overflow-y: auto;

    position: relative;
}


/* ============================================================
   CERRAR MODAL
============================================================ */

.cerrar {
    position: absolute;

    right: 15px;
    top: 15px;

    border: none;

    background: none;

    font-size: 25px;

    cursor: pointer;
}


/* ============================================================
   ITEM CARRITO
============================================================ */

.item-carrito {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    padding: 12px 0;

    border-bottom: 1px solid #ddd;
}


.controles {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


.controles button {
    width: 30px;
    height: 30px;

    border: none;

    border-radius: 5px;

    background: #ddd;

    cursor: pointer;
}


/* ============================================================
   TOTAL
============================================================ */

.total-final {
    font-size: 22px;

    padding: 20px 0;

    text-align: right;
}


/* ============================================================
   WHATSAPP
============================================================ */

.btn-whatsapp {
    width: 100%;

    background: #25d366;

    color: white;

    border: none;

    padding: 15px;

    border-radius: 10px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}


/* ============================================================
   CARGANDO
============================================================ */

#cargando {
    text-align: center;

    padding: 40px;

    color: #777;
}


/* ============================================================
   FORMULARIO PEDIDO
============================================================ */

#formulario-pedido {
    width: 100%;

    margin-top: 20px;
}


.datos-pedido {
    border-top: 1px solid #ddd;

    padding-top: 20px;

    width: 100%;
}


/* ============================================================
   TÍTULOS DEL FORMULARIO
============================================================ */

.datos-pedido h3 {
    display: block;

    width: 100%;

    font-size: 18px;

    margin: 20px 0 12px;
}


.datos-pedido h3:first-child {
    margin-top: 0;
}


/* ============================================================
   LABEL + INPUT
   CADA UNO EN SU PROPIO RENGLÓN
============================================================ */

.datos-pedido label {
    display: block;

    width: 100%;

    font-size: 14px;

    font-weight: bold;

    margin-bottom: 5px;
}


.datos-pedido input[type="text"],
.datos-pedido input[type="tel"],
.datos-pedido input[type="number"] {
    display: block;

    width: 100%;

    height: 44px;

    padding: 10px 12px;

    margin: 0 0 14px 0;

    border: 1px solid #ccc;

    border-radius: 8px;

    font-size: 16px;

    background: white;
}


/* ============================================================
   MEDIOS DE PAGO
============================================================ */

.medios-pago {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 10px;
}


.medio-opcion {
    display: flex !important;

    flex-direction: row !important;

    align-items: center;

    gap: 8px;

    width: 100%;

    padding: 11px;

    background: #f5f5f5;

    border-radius: 8px;

    font-weight: normal !important;

    margin: 0 !important;
}


.medio-opcion input {
    width: auto !important;

    height: auto !important;

    margin: 0 !important;

    flex-shrink: 0;
}


/* ============================================================
   DETALLES DE PAGO
============================================================ */

.detalle-efectivo,
.detalle-transferencia,
.detalle-mercadopago {
    width: 100%;

    margin-top: 12px;

    padding: 12px;

    background: #f7f7f7;

    border-radius: 8px;
}


/* ============================================================
   ALIAS
============================================================ */

.alias-transferencia {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin: 10px 0;

    padding: 10px;

    background: white;

    border-radius: 8px;

    overflow: hidden;
}


.alias-transferencia span {
    font-weight: bold;

    overflow-wrap: anywhere;
}


.alias-transferencia button {
    border: none;

    background: #111;

    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    cursor: pointer;

    flex-shrink: 0;
}


/* ============================================================
   CELULAR
============================================================ */




    /* CARTA */

    main {
        padding: 0 10px;
    }


    .categoria h2 {
        font-size: 22px;
    }


    /* PRODUCTOS */

    .producto {
        padding: 12px;

        gap: 8px;
    }


    .producto-imagen {
        width: 75px;
        height: 75px;

        margin-right: 4px;
    }


    .producto-nombre {
        font-size: 16px;
    }


    .producto-precio {
        font-size: 17px;
    }


    .btn-agregar {
        width: 42px;
        height: 42px;

        min-width: 42px;

        font-size: 23px;
    }


    /* CARRITO */

    #carrito-barra {
        padding: 10px;
    }


    #carrito-barra button {
        padding: 9px 12px;
    }


    /* MODAL */

    .modal {
        padding: 10px;
    }


    .modal-contenido {
        margin: 10px auto;

        padding: 18px;

        max-height: 94vh;
    }


    /* FORMULARIO */

    .datos-pedido {
        width: 100%;
    }


    .datos-pedido label {
        width: 100%;
    }


    .datos-pedido input[type="text"],
    .datos-pedido input[type="tel"],
    .datos-pedido input[type="number"] {
        width: 100%;

        height: 44px;

        font-size: 16px;
    }

}


/* ============================================================
   CELULARES MUY PEQUEÑOS
============================================================ */




    .producto-imagen {
        width: 65px;
        height: 65px;
    }


    .producto-nombre {
        font-size: 15px;
    }


    .producto-precio {
        font-size: 16px;
    }


    .btn-agregar {
        width: 40px;
        height: 40px;

        min-width: 40px;
    }


    .modal-contenido {
        padding: 15px;
    }

}

