:root {
    --headerChat: #557230;
    --cuerpoChat: #fea11f;
    --txtHeader: white;
    --txtGlobos: black;
    --botones: #6eaa25;
    --alturaChatCerrado: 80px;
    --anchoChatPC: 400px;
    --borderInputs: 10px;
    --borderHeader: 12px;
}

@font-face {
    font-family: "Helvetica";
    src: url("../fonts/Helvetica.ttc") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: "Helvetica", sans-serif;
    font-weight: normal;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Helvetica", sans-serif;
}

p,
li,
span,
label {
    font-family: "Helvetica", sans-serif;
    color: var(--gris);
}

/* Menu */
nav {
    width: 100%;
    position: fixed;
    z-index: 10;
    top: 0;
    background-color: #fea11f;
    height: 8vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow:
        rgba(27, 31, 35, 0.04) 0px 1px 0px,
        rgba(255, 255, 255, 0.25) 0px 1px 0px inset;
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-left: 10%;
    width: 55%;
    height: 60%;
}

.menu ul li {
    width: auto;
    padding: 0 1%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.menu ul li:hover {
    box-shadow:
        -15px 0 25px -15px #ffb84d,
        15px 0 25px -15px #ff6600;
    cursor: pointer;
}

.menu ul li a {
    text-decoration: none;
    color: black;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu ul li a img {
    width: auto;
    margin: auto;
    height: 100%;
}

.imgW {
    width: 5.7vw;
    height: 70%;
    margin-right: 7%;
    cursor: pointer;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgW img {
    width: auto;
    height: 85%;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    row-gap: 6px;
    cursor: pointer;
    margin-right: 5%;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background-color: #ff6600;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

/* Footer */
footer {
    width: 100%;
    padding: 2vw 0%;
    background-color: #b0c321;
    height: 32vw;
}

.pie h1 {
    font-size: 4.5vw;
    color: white;
    text-align: center;
    margin-top: 0;
}

.containerCaja {
    display: flex;
    align-items: start;
    justify-content: space-between;
    height: auto;
    padding: 0 2rem;
}

.Sucursales {
    width: 40%;
    display: flex;
    align-items: start;
    justify-content: space-around;
    column-gap: 5%;
    margin-top: 2vw;
}

.Sucursales > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.Sucursales div ul {
    padding-left: 1vw;
    margin-top: 0;
}

.Sucursales > div > img {
    width: 4vw;
    margin: auto;
}

.Sucursales div h5 {
    font-size: 1.2vw;
    margin: 1vw 0;
    color: white;
    width: 98%;
    margin-right: 2%;
    text-align: left;
}

.Sucursales div ul li {
    font-size: 1vw;
    margin-bottom: 1vw;
    color: white;
    font-weight: 100;
}

.Sucursales > div {
    width: auto;
}

.img-wrapper {
    position: relative;
    /* Contenedor de la última imagen */
    cursor: pointer;
}

.img-wrapper img {
    display: block;
}

/* Estilo del número de teléfono */
.phone {
    position: absolute;
    left: 0;
    top: 50%;

    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    transition: transform 0.5s ease;
    opacity: 0;
    font-size: 1.3vw;
    font-weight: 100;
}

/* Al pasar el cursor sobre la imagen, el número se desliza */
.img-wrapper:hover .phone {
    transform: translateX(30%) translateY(-50%);
    opacity: 1;
}

.redesS {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 3%;
}

.redesS div {
    width: 30%;
    height: auto;
    display: flex;
    align-items: center;
}

.redesS div img {
    width: 60%;
    height: auto;
    margin-top: 10%;
    margin-bottom: 10%;
}

.logo {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 100%;
    height: auto;
    margin: auto;
}

.logo p {
    text-align: center;
    font-size: 0.9vw;
    color: white;
    font-weight: 100;
}

.aviso-privacidad {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        height: 70px;
        padding: 0 10px;
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-flex;
        order: 2;
    }

    .menu ul {
        position: absolute;
        left: 0;
        top: 70px;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 10px 0;
        background-color: #fea11f;
        box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition:
            max-height 0.3s ease,
            opacity 0.25s ease;
        scrollbar-width: none;
    }

    .menu ul::-webkit-scrollbar {
        display: none;
    }

    .menu.menu-open ul {
        max-height: calc(100vh - 70px);
        opacity: 1;
        overflow-y: auto;
        pointer-events: auto;
    }

    .menu ul li {
        width: 100%;
        min-width: 0;
        height: 48px;
        padding: 0;
    }

    .menu ul li a {
        justify-content: center;
    }

    .menu ul li a img {
        display: none;
    }

    .menu ul li a::after {
        content: attr(data-label);
        font-size: 1.15rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #3c3c3b;
        text-transform: uppercase;
    }

    .menu ul li a:hover::after {
        color: #ffffff;
    }

    .menu.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .imgW {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin-right: 8px;
        order: 1;
    }

    .Sucursales {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    footer {
        width: 100%;

        height: auto;
    }

    .pie h1 {
        font-size: 3.3rem;
    }

    .containerCaja {
        display: flex;
        flex-direction: column;
    }

    .Sucursales,
    .logo {
        width: 94%;
    }

    .Sucursales {
        column-gap: 2%;
    }

    .Sucursales > div > img {
        width: 52px;
    }

    .Sucursales div h5 {
        font-size: 1.05rem;
    }

    .Sucursales div ul li {
        font-size: 0.95rem;
    }

    .phone {
        font-size: 1rem;
    }

    .logo img {
        width: 320px;
        max-width: 90%;
    }

    .logo p {
        font-size: 0.95rem;
    }
}
