html, body {
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}


.buttons {
    text-align: center;
    margin-bottom: 1.25rem;
}

.buttons button {
    padding: 0.625rem 1.25rem;
    margin: 0.3125rem;
    cursor: pointer;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item {
    margin: 0.625rem;
    flex-basis: calc(33.33% - 1.25rem); 
}

.item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.item img:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 3.75rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 43.75rem;
}

.close {
    position: absolute;
    top: 0.9375rem;
    right: 2.1875rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.item.animacion video, .item.marketing video {
    width: 100%;
    max-width: 18.75rem;
    height: auto;
    border: 0.125rem solid #ccc;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.item.animacion video:hover, .item.marketing video:hover {
    transform: scale(1.05);
    border-color: #007BFF;
}

.navegacion {
    background-color: black;
    padding: 0 1.25rem;
}

.top-navigation-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0;
}

.top-navigation-wrap a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.top-navigation-wrap img {
    max-width: 10rem;
    height: auto;
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .left-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav .left-menu li {
    margin: 0 0.625rem;
}

nav .left-menu li a {
    display: block;
    padding: 0.625rem 0.9375rem;
    text-decoration: none;
    color: white;
}

nav .left-menu li a:hover {
    background-color: #555;
}

nav .right-menu {
    margin-left: 1.25rem;
}

.button {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background: linear-gradient(225deg, #56565600, #7b7b7b);
    border-color: linear-gradient(90deg, #ffffff00, #fff9f9);
    border-radius: 0.3125rem;
    transition: background 0.3s ease;
}

.second_box {
    background-color: white;
    height: 314.375rem;
    justify-content: center;
    text-align: center;
    position: relative;
}

.footer-box-text {
    color: #fff;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    text-align: left;
    margin-left: 1.25rem;
}

.footer_box {
    background-color: black;
    padding: 1.25rem;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

.footer_box .copyright {
    font-size: 0.875rem;
    background-color: #808080;
    padding: 0.625rem;
}

.social-media {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.625rem;
}

.social-media a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.social-media a:hover {
    color: #f1f1f1;
}

@media (max-width: 768px) {
    .top-navigation-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .left-menu {
        flex-direction: column;
        width: 100%;
    }

    nav .left-menu li {
        margin: 0.5rem 0;
    }

    .panel-container {
        flex-direction: column;
        gap: 2rem;
    }

    .panel {
        max-width: 90%;
    }

    .footer_box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-media {
        justify-content: center;
    }
}