/* ================= CONFIGURACIÓN ================= */

@font-face {
    font-family: 'Urban Vibes';
    src: url('fonts/URBAN VIBES.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0d0e0f;
    color: white;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 90px;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
select {
    font-family: inherit;
}


/* ===================== HEADER ==================== */

.header {
    height: 90px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 18px;

    background: #0b0c0d;

    position: sticky;
    top: 0;

    z-index: 100;

    border-bottom: 1px solid #202124;
}


/* ================= BOTONES HEADER ================ */

.menu-btn,
.carrito-btn {
    background: transparent;
    border: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}


/* ===================== LOGO ====================== */

.logo {
    width: 180px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.logo img {
    width: 150px;
    height: auto;

    display: block;

    transform: translateY(-6px);
}


/* ===================== CARRITO =================== */

.carrito-btn {
    position: relative;
    transition: 0.2s;
}

.carrito-btn:hover {
    transform: scale(1.1);
}

.carrito-btn:active {
    transform: scale(0.92);
}

.contador {
    position: absolute;

    top: -8px;
    right: -8px;

    width: 23px;
    height: 23px;

    background: #ffb91f;
    color: #111;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 800;

    display: flex;
    justify-content: center;
    align-items: center;
}

.contador.animar {
    animation: contadorAnimacion 0.3s ease;
}

@keyframes contadorAnimacion {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }

}


/* ================= MENÚ LATERAL ================== */

.menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    z-index: 500;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;
}

.menu-overlay.abierto {
    opacity: 1;
    visibility: visible;
}


.menu-lateral {
    position: fixed;

    top: 0;
    left: 0;

    width: 300px;
    max-width: 85%;

    height: 100vh;

    background: #111314;

    z-index: 600;

    transform: translateX(-100%);

    transition: transform 0.3s ease;

    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.4);
}

.menu-lateral.abierto {
    transform: translateX(0);
}


.menu-titulo {
    height: 90px;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #292a2c;
}

.menu-titulo h2 {
    font-family: 'Urban Vibes', sans-serif;
    font-size: 40px;
    font-weight: normal;

    background: linear-gradient(
        to bottom,
        #ffb400 0%,
        #f5690a 50%,
        #be230f 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    -webkit-text-stroke: 0.5px #000000;
}


.cerrar-menu {
    background: transparent;

    border: none;

    color: white;

    font-size: 34px;

    cursor: pointer;
}


.menu-links {
    display: flex;

    flex-direction: column;

    padding: 15px;
}


.menu-links a {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px;

    color: #ddd;

    border-radius: 10px;

    font-size: 14px;

    transition: 0.2s;
}

.menu-links a:hover {
    background: #1d1f20;

    color: #ffbd24;
}


.menu-links a:first-child {
    color: #ffbd24;
}


.menu-separador {
    height: 1px;

    background: #292a2c;

    margin: 12px 15px;
}


/* ================= NAVEGACIÓN ==================== */

.nav-categorias {
    display: flex;

    gap: 25px;

    overflow-x: auto;

    padding: 12px 20px;

    background: #0b0c0d;

    white-space: nowrap;

    scrollbar-width: none;
}

.nav-categorias::-webkit-scrollbar {
    display: none;
}

.nav-categorias a {
    color: #b9b9b9;

    font-size: 12px;

    text-transform: uppercase;

    font-weight: 500;

    transition: 0.2s;
}

.nav-categorias a:hover {
    color: #ffbd24;
}


/* ======================= HERO ==================== */

.hero {
    margin: 10px 15px 25px;

    min-height: 250px;

    border-radius: 3px;

    overflow: hidden;

    position: relative;

    display: flex;

    align-items: center;

    background: #161616;
}


.hero-imagen {
    position: absolute;

    inset: 0;
}

.hero-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.15)
    );
}


.hero-texto {
    position: relative;

    z-index: 2;

    padding: 25px;

    width: 70%;
}

.hero-pequeno {
    font-size: 25px;

    font-weight: 800;

    font-style: italic;
}

.hero-texto h2 {
    font-size: 38px;

    color: #ffbd24;

    font-style: italic;

    font-weight: 800;

    line-height: 0.9;

    margin-left: -8px;
}

.hero-casa {
    font-size: 20px;

    font-weight: 700;

    font-style: italic;

    margin-top: 7px;

    margin-left: -10px;
}

.hero-descripcion {
    font-size: 12px;

    line-height: 1.5;

    margin: 15px 0;

    color: #ddd;

    margin-left: -10px;
}


.boton-hero {
    display: inline-block;

    background: #ffbd24;

    color: #111;

    padding: 12px 18px;

    border-radius: 25px;

    font-size: 12px;

    font-weight: 800;

    transition: 0.2s;
}

.boton-hero:hover {
    transform: scale(1.04);

    background: #ffc83d;
}


/* =================== CATEGORÍAS ================== */

.categorias {
    display: flex;

    gap: 12px;

    overflow-x: auto;

    padding: 0 15px 25px;

    scrollbar-width: none;
}

.categorias::-webkit-scrollbar {
    display: none;
}


.categoria {
    min-width: 82px;

    text-align: center;

    color: #c5c5c5;

    font-size: 10px;

    font-weight: 500;
}


.icono {
    width: 70px;
    height: 70px;

    margin: auto;

    margin-bottom: 8px;

    background: #151617;

    border-radius: 18px;

    border: 1px solid #252627;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

    transition: 0.2s;
}


.categoria:hover .icono {
    transform: translateY(-3px);

    border-color: #ffbd24;
}


.categoria.activa {
    color: #ffbd24;
}

.categoria.activa .icono {
    background: #ffbd24;

    border-color: #ffbd24;
}


/* ================== SECCIONES ==================== */

.seccion-menu {
    padding: 0 15px;

    margin-bottom: 38px;

    scroll-margin-top: 120px;
}


/* ================= TÍTULO SECCIÓN =============== */

.titulo-seccion {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;
}

.titulo-seccion h2 {
    font-size: 25px;

    font-weight: 800;

    letter-spacing: -0.5px;
}

.titulo-seccion a {
    color: #ffbd24;

    font-size: 12px;

    font-weight: 700;
}


/* ================================================= */
/* ============ INFORMACIÓN CATEGORÍA ============= */
/* ================================================= */

.info-categoria {

    display: flex;

    align-items: center;

    width: 100%;

    margin: 0 0 16px;

    padding: 9px 12px;

    background: #111314;

    border-left: 2px solid #ffbd24;

    border-bottom: 1px solid #222425;

    color: #a9a9a9;

    font-size: 10px;

    font-weight: 500;

    line-height: 1.5;

    letter-spacing: 0.1px;

}


/* ================================================= */
/* =============== PRODUCTO ======================== */
/* ================================================= */

.producto {
    background: #151617;

    border: 1px solid #202223;

    border-radius: 16px;

    padding: 10px;

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;

    min-height: 120px;

    transition: 0.2s;
}

.producto:hover {
    border-color: #36383a;

    transform: translateY(-1px);
}


.producto > img {
    width: 100px;
    height: 100px;

    object-fit: cover;

    border-radius: 12px;

    flex-shrink: 0;
}


.producto-info {
    flex: 1;

    min-width: 0;
}

.producto-info h3 {
    font-size: 15px;

    font-weight: 700;

    margin-bottom: 6px;

    line-height: 1.25;
}

.producto-info p {
    font-size: 10px;

    color: #a8a8a8;

    line-height: 1.4;

    margin-bottom: 8px;
}

.producto-info strong {
    color: #ffbd24;

    font-size: 16px;

    font-weight: 800;
}


/* ================================================= */
/* ============== DETALLE DE OPCIONES ============== */
/* ================================================= */

.detalle-opcion {

    display: flex;

    align-items: baseline;

    gap: 5px;

    margin-top: 3px;

    line-height: 1.3;
}

.detalle-opcion strong {

    color: #ffbd24;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.3px;
}

.detalle-opcion span {

    color: #8f8f8f;

    font-size: 9px;

    font-weight: 500;
}


/* ================================================= */
/* ============== SELECTOR DE OPCIONES ============= */
/* ================================================= */

.opcion-producto {

    width: 100%;

    max-width: 285px;

    height: 34px;

    padding: 0 30px 0 10px;

    margin: 2px 0 8px;

    border-radius: 8px;

    border: 1px solid #343638;

    background-color: #0d0e0f;

    color: #eeeeee;

    font-size: 10px;

    font-weight: 600;

    outline: none;

    cursor: pointer;

    transition: 0.2s;

    appearance: auto;
}

.opcion-producto:hover {
    border-color: #ffbd24;
}

.opcion-producto:focus {
    border-color: #ffbd24;

    box-shadow: 0 0 0 2px rgba(255, 189, 36, 0.08);
}

.opcion-producto option {
    background: #151617;

    color: white;

    font-size: 11px;
}


/* ================================================= */
/* ================= BOTÓN + ======================= */
/* ================================================= */

.agregar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    border: none;

    background: #ffbd24;

    color: #111;

    font-size: 25px;

    font-weight: 500;

    cursor: pointer;

    flex-shrink: 0;

    transition: 0.2s;
}

.agregar:hover {
    transform: scale(1.08);

    background: #ffc83d;
}

.agregar:active {
    transform: scale(0.9);
}


/* ================================================= */
/* ===================== BEBIDAS ================== */
/* ================================================= */

.bebida-icono {
    width: 75px;
    height: 75px;

    background: #202123;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 35px;

    flex-shrink: 0;
}


/* ================================================= */
/* ================ BARRA INFERIOR ================ */
/* ================================================= */

.barra-inferior {
    position: fixed;

    bottom: 0;
    left: 0;

    width: 100%;

    height: 72px;

    background: rgba(14, 15, 16, 0.97);

    border-top: 1px solid #292a2c;

    display: flex;

    justify-content: space-around;

    align-items: center;

    z-index: 200;

    padding-bottom: 5px;
}


.barra-inferior a {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    color: #888;

    font-size: 20px;

    min-width: 65px;

    transition: 0.2s;
}

.barra-inferior a:hover {
    color: #ffbd24;
}


.barra-inferior small {
    font-size: 9px;

    font-weight: 500;
}


.barra-inferior a.activo {
    color: #ffbd24;
}


/* ================================================= */
/* ============== CARRITO BARRA INFERIOR ========== */
/* ================================================= */

.icono-pedido {
    position: relative;

    display: inline-flex;
}


.icono-pedido b {
    position: absolute;

    top: -8px;
    right: -10px;

    width: 17px;
    height: 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffbd24;

    color: #111;

    border-radius: 50%;

    font-size: 8px;

    font-weight: 800;
}


/* ================================================= */
/* =================== TABLET / PC ================ */
/* ================================================= */

@media (min-width: 700px) {

    body {
        max-width: 700px;

        margin: auto;

        background: #080909;
    }


    .header {
        max-width: 700px;
    }


    .hero {
        min-height: 320px;
    }


    .producto > img {
        width: 120px;

        height: 110px;
    }


    .producto-info h3 {
        font-size: 17px;
    }


    .producto-info p {
        font-size: 11px;
    }


    .info-categoria {
        font-size: 11px;

        padding: 10px 14px;
    }


    .barra-inferior {
        max-width: 700px;

        left: 50%;

        transform: translateX(-50%);
    }

}


/* ================================================= */
/* ===================== CELULAR ================== */
/* ================================================= */

@media (max-width: 400px) {

    .logo img {
        width: 125px;
    }

    .logo {
        width: 140px;
    }

    .hero-texto {
        padding: 20px;
    }

    .hero-pequeno {
        font-size: 21px;
    }

    .hero-texto h2 {
        font-size: 32px;
    }

    .producto > img {
        width: 85px;
        height: 85px;
    }

    .producto-info h3 {
        font-size: 13px;
    }

    .producto-info p {
        font-size: 9px;
    }

    .producto-info strong {
        font-size: 14px;
    }


    .info-categoria {
        padding: 8px 10px;

        font-size: 9px;

        margin-bottom: 13px;
    }


    .opcion-producto {
        height: 32px;

        font-size: 9px;

        padding-left: 8px;

        margin-bottom: 7px;

        max-width: 100%;
    }


    .detalle-opcion strong {
        font-size: 8px;
    }

    .detalle-opcion span {
        font-size: 8px;
    }

}

.sin-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 50px;
    background: #ffbd24;
    color: #0d0e0f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}