/* Vista móvil */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}

/* Botón scroll-to-top generado por jQuery en efectos.js */
#btnScrollTop {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #FFD447;
    color: #212529;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s, transform 0.2s;
}

#btnScrollTop:hover {
    background: #E6B93C;
    transform: scale(1.1);
}

/* Fecha relativa en pedidos (generada por fecha_pedidos.js) */
.pedido-fecha-relativa {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

@font-face {
    font-family: "Nunito";
    src: url("../fonts/Nunito/Nunito-VariableFont_wght.ttf");
    font-weight: 200 1000;
    font-style: normal;
}

body {
    font-family: "Nunito", sans-serif;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background-color: #FFD447;
    color: #212529;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header > a > img {
    width: 140px;
    transition: transform 0.3s;
}

.hamburguesa {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #212529;
}

.menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #FFD447;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    display: none;
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    z-index: 99;
}

.menu.activo {
    display: flex;
}

.menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    list-style: none;
    width: 100%;
}

.menu > ul > li > a {
    display: block;
    text-decoration: none;
    color: #212529;
    text-transform: uppercase;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu > ul > li > a.activo {
    font-weight: 900;
}

.usuarios {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 2.2rem;
    margin-top: 15px;
    width: 100%;
}

.usuarios > a {
    text-decoration: none;
    color: #212529;
}

footer {
    width: 100%;
    padding: 30px 0;
    background-color: #FFD447;
    color: #212529;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer > section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

footer > section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

footer h4 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px solid #212529;
    padding-bottom: 5px;
}

.footer-links a {
    text-decoration: none;
    color: #212529;
    font-weight: bold;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    text-decoration: none;
    color: #212529;
    font-size: 1.5rem;
}

/* Vista tablet */
@media screen and (min-width: 768px) {

    footer {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        text-align: left;
    }

    footer > section {
        width: auto;
        border-bottom: none;
        margin-bottom: 0;
        align-items: flex-start;
    }
}

/* Vista escritorio */
@media screen and (min-width: 1024px) {

    header {
        padding: 15px 40px;
        font-size: 18px;
    }

    header > a > img {
        width: 200px;
    }

    .hamburguesa {
        display: none;
    }

    .menu {
        position: static;
        display: flex;
        flex-direction: row;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        justify-content: flex-end;
        width: auto;
        gap: 30px;
    }

    .menu ul {
        flex-direction: row;
        width: auto;
    }

    .menu > ul > li > a {
        font-size: 1.3rem;
        width: auto;
        background-color: transparent;
        padding: 10px 20px;
        transition: all 0.3s ease;
    }

    .menu > ul > li > a.activo {
        font-weight: 900;
    }

    .usuarios {
        width: auto;
        margin-top: 0;
        font-size: 1.9rem;
        gap: 15px;
    }

    header > a > img:hover {
        transform: scale(1.1);
    }

    .menu > ul > li > a:hover {
        background-color: #FFE587;
        color: #212529;
        transform: translateY(-2px);
    }


    .usuarios > a {
        transition: transform 0.2s;
    }

    .usuarios > a:hover {
        color: white;
        transform: scale(1.2);
    }

    .footer-links a:hover,
    .social-icons a:hover {
        color: white;
    }

    .social-icons a:hover {
        transform: scale(1.2) rotate(10deg);
    }
}