* {
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    text-align: justify;
    text-justify: inter-word;
    font-size: 1em;
}


header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    position: relative;
}

header a img {
    max-height: 60px;
}

header .left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

header nav ul li a:hover {
    color: #ccc;
}

header .home-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .legal-links {
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

footer .legal-links li {
    display: inline;
    margin-right: 10px;
}

footer .legal-links a {
    text-decoration: none;
    color: white;
    /* Cambia el color según el diseño */
    font-size: 0.9em;
}

footer .legal-links a:hover {
    color: #ffcc00;
    /* Resaltar al pasar el ratón */
}

footer {
    background-color: #222;
    color: #fff;
    padding: 20px 10%;
    font-family: 'Open Sans', sans-serif;
}

/* Banner de cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f4f4f4;
    border-top: 2px solid #ccc;
    padding: 15px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1gem;
    z-index: 1000;
}

#cookie-banner p {
    margin: 0;
    display: inline-block;
}

.cookie-buttons {
    margin-top: 10px;
    text-align: center;
}

.cookie-buttons button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 0.9em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    color: #fff;
}

#accept-cookies {
    background-color: #4caf50;
    /* Verde */
}

#reject-cookies {
    background-color: #f44336;
    /* Rojo */
}

.hidden {
    display: none;
}

nav.active ul {
    display: flex;
}

footer {
    background-color: #222;
    /* Dark background for professionalism */
    color: #fff;
    /* White text for contrast */
    padding: 20px 10%;
    font-family: 'Open Sans', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-company,
.footer-hours,
.footer-contact {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
}

h2 {
    font-size: 1.2em;
}

.footer-company h3,
.footer-hours h3,
.footer-contact h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 2px solid #444;
    padding-bottom: 5px;
}

.footer-hours ul {
    list-style-type: none;
    padding: 0;
}

.footer-hours li {
    margin: 5px 0;
}

.footer-contact a {
    color: #ffcc00;
    text-decoration: none;
}

.footer-company a {
    color: #ffcc00;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

footer p {
    margin: 5px 0;
    line-height: 1.5;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: black;
    z-index: 100;
}



@media screen and (max-width: 769px) {
    header img {
        margin: 0 auto;
    }

    header .home-link h1 {
        color: black;
        margin: 0;
        font-size: 1.3em;
        font-weight: bold;
    }

    nav.active ul {
        display: block;
    }

    .about {
        display: none;
    }

    header nav ul {
        display: none;
        /* Ocultar el menú por defecto */
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 20px;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        background-color: #000;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
        /* Se muestra solo en pantallas pequeñas */
    }

    nav ul li a {
        color: #fff;
        /* Color de los enlaces del menú */
        font-size: 1.2em;
        font-weight: bold;
        text-decoration: none;
        padding: 10px;
    }

    nav ul li a:hover {
        background-color: #333;
        /* Fondo al pasar el ratón */
    }

    img {
        max-width: 100%;
        max-height: 100%;
    }

    .icono {
        padding: 0;
    }

    main {
        clear: left;
        background-color: #fff;
        padding: 2%;
        font-size: 1em;
    }

    .tel-link {
        background-color: #404040;
        padding: 2%;
        margin: 0 auto;
        width: 80%;
        border-radius: 5px;
    }

    .tel-link a {
        color: #fff;
        text-decoration: none;
        font-size: 1.5em;
        text-align: center;
        display: block;
    }

    .hours {
        margin-left: 10%;
    }

    footer p {
        font-size: 1em;
        text-align: center;
        color: #fff;
        padding: 0.1em;
    }

    footer p a {
        color: #fff;
        text-decoration: none;
    }

    #weights,
    #training,
    #cardio {
        margin: 0 2%;
    }

    #contact {
        text-align: center;
    }

    #contact .contact-email-link {
        color: #666600;
        text-decoration: none;
    }

    .action {
        font-size: 1.35em;
        color: #666600;
        font-weight: bold;
    }

    .map {
        border: 2px solid #000;
        width: 95%;
        height: 95%;
    }

    .tablet-desktop {
        display: none;
    }

    .round {
        border-radius: 8px;
    }
}

@media screen and (min-width: 770px) {
    header .home-link h1 {
        color: black;
        margin: 0;
        font-size: 2.5em;
        font-weight: bold;
    }


    .grid {
        display: grid;
        grid-template-columns: auto auto auto;
        gap: 0.5em;
    }

    .frame {
        position: relative;
        max-width: 100%;
        margin: 2% auto;
        opacity: 0.9;
    }

    .frame:hover {
        opacity: 1;
        box-shadow: 0px 0px 10px #808080;
    }

    .pic-text {
        font-size: 1em;
        padding: 0.5em;
        position: absolute;
        bottom: 0;
        background: rgb(0, 0, 0.5);
        color: #fff;
        width: 100%;
        text-align: center;
        font-size: 1.5em;
        font-weight: bold;
    }

    .mobile {
        display: none;
    }

    img {
        max-width: 100%;
        max-height: 100%;
    }

    main {
        clear: left;
        background-color: #fff;
        padding: 2%;
        font-size: 1.4em;
    }

    footer p {
        font-size: 1em;
        color: #fff;
        padding: 0.1em;
    }

    footer p a {
        color: #fff;
        text-decoration: none;
    }

    #weights,
    #training,
    #cardio {
        width: 29%;
        float: left;
        margin: 0 2%;
    }

    #exercises {
        clear: left;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        background-color: #f2f2f2;
        padding: 1% 2%;
    }

    #exercises dt {
        font-weight: bold;
    }

    #exercises dd {
        padding: 0.5% 1% 2% 0;
    }

    #contact {
        text-align: center;
    }

    #contact a {
        color: #666600;
        text-decoration: none;
    }

    .action {
        font-size: 1.35em;
        color: #666600;
        font-weight: bold;
    }

    .map {
        border: 8px solid #000;
    }
}

@media screen and (min-width: 1921px) {
    #container {
        width: 1920px;
        margin: 0 auto;
    }


}

@media (min-width: 770px) and (max-width: 1399px) {
    header .home-link h1 {
        color: black;
        margin: 0;
        font-size: 2em;
        font-weight: bold;
    }

    header nav ul li a {
        color: black;
        text-decoration: none;
        font-size: 1.8em;
        font-weight: bold;
        padding: 5px 10px;
        transition: color 0.3s;
    }
}

@media (min-width: 1400px) {
    header nav ul li a {
        color: black;
        text-decoration: none;
        font-size: 2em;
        font-weight: bold;
        padding: 5px 10px;
        transition: color 0.3s;
    }

}