*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    overflow-x: hidden;
    background: #eeeeee;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img{
    max-width: 100%;
    height: auto;
}

a{
    color: inherit;
    text-decoration: none;
}

.Tel{
    background-color: #ff0202;
    width: 100%;
    padding: 0.6rem 1rem;
    text-align: right;
    color: whitesmoke;
}

.Header{
    background-color: #630000;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner{
    width: min(100%, 1400px);
    margin: 0 auto;
    height: 100px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}


.Telefono{
    margin-right: 2%;
}

.logo-link{
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo{
    max-width: 220px;
    width: min(220px, 34vw);
    height: auto;
    margin-left: 0;
    z-index: 15;
    position: inherit;
    display: block;
}

.global-menu{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 auto;
}

.menu{
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.item-menu{
    border: 0;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 1em;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.item-menu:hover{
    background-color: #ffffff22;
    transform: translateY(-1px);
}

.item-menu:focus{
    outline: 2px solid #ffffff55;
    outline-offset: 2px;
}

footer {
    margin-top: auto; 
    padding-top: 1%;
    padding-bottom: 1%;
    padding-right: 2%;
    padding-left: 2%;
    background-color: #1b1b1b;
    color: white;
    border-radius: 5px 5px 0px 0px;
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

footer a{
    text-decoration: none;
    color: inherit;
    padding: 5%;
}

footer ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .pie img{
    width: auto;
    max-width: 240px;
    height: auto;
}

.direccion-footer{
    font-size: 0.75em;
    opacity: 0.95;
    margin-top: 6px;
}


.pie{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.privacidad{
    display: flex;
    z-index: 100;
    margin-left: auto;
    margin-right: 2%;
    font-size: 0.7em;
}

@media (max-width: 1024px){
    .header-inner{ padding: 0 20px; }
    .menu{ gap: 8px; }
}

@media (max-width: 768px){
    .Header{ position: sticky; top: 0; }

    .header-inner{
        flex-direction: column;
        align-items: center;
        height: auto; /* permite que el menú se vea completo */
        padding: 14px 16px;
        overflow: visible;
        gap: 10px;
    }

    .global-menu{ width: 100%; justify-content: center; }

    .menu{
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 10px 0 0;
        width: 100%;
    }


    footer{
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }

    footer a{
        padding: 0.5rem 0.75rem;
    }

    .pie{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pie img{
        max-width: 180px;
        width: 100%;
        margin-top: 12px;
    }

    .privacidad{
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px){
    .Tel{
        text-align: center;
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .logo{ max-width: 180px; }

    .menu{
        justify-content: center;
        padding: 0 10px;
    }

    .item-menu{
        padding: 8px 10px;
        font-size: 12px;
    }
}

