/* Base */
* {
    font-family: sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background-color: rgb(39, 39, 39);
    padding: 10px;
    position: relative;
    z-index: 3000;
}

.logo img {
    height: 50px;
    padding: 10px;
}

/* Menú horizontal */
.menu-horizontal {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.menu-horizontal li {
    position: relative;
}

.menu-horizontal li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
}

.menu-horizontal li:hover {
    background-color: rgb(37, 37, 197);
    border-radius: 25px;
}

.menu-horizontal li a:hover {
    color: gold;
}

/* Submenú vertical */
.menu-vertical {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    z-index: 3000;
}

.menu-horizontal li:hover .menu-vertical {
    display: block;
}

/* Toggle oculto */
#menu-toggle {
    display: none;
}

/* Ícono hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 40px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: gold;
}

#menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: gold;
}

/* Footer */
.footer {
    width: 100%;
    background: rgb(39, 39, 39);
    min-height: 100px;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: auto;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.icon {
    color: white;
    font-size: 32px;
    margin: 0 10px;
    transition: 0.5s;
}

.icon:hover {
    transform: translateY(-10px);
    color: gold;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

.menu-icon {
    color: white;
    font-size: 20px;
    text-decoration: none;
    margin: 5px 10px;
    opacity: 0.75;
    display: inline-block;
    transition: 0.3s;
}

.menu-icon:hover {
    opacity: 1;
    color: gold;
}

footer p {
    color: aliceblue;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.icon-elem,
.menu-elem {
    list-style: none;
}

/* Sección Nosotros */
.about {
    padding: 20px;
    color: rgb(9, 8, 8);
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.about h1 {
    margin-bottom: 20px;
    color: gold;
    text-align: center;
}

.about p {
    color: black;
    text-align: justify;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu-horizontal {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgb(39, 39, 39);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 3000;
    }

    #menu-toggle:checked ~ nav .menu-horizontal {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .menu-horizontal li {
        width: 100%;
        text-align: center;
    }

    .menu-horizontal a {
        padding: 0.8rem;
        font-size: 1rem;
        margin: 0.2rem 0;
    }

    .menu-vertical {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 5px;
        display: none;
        z-index: 3000;
    }

    .menu-horizontal li:hover .menu-vertical {
        display: block;
    }

    .footer p {
        color: #ffffff;
        font-size: 13px;
    }

    .about {
        font-size: 18px;
        padding: 15px;
    }

    .about h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hamburger {
        width: 35px;
        height: 25px;
        top: 15px;
        right: 15px;
    }

    .hamburger span {
        height: 3px;
    }

    .about {
        font-size: 16px;
    }

    .about h1 {
        font-size: 1.4rem;
    }

    .footer p {
        font-size: 12px;
    }

    .icon {
        font-size: 24px;
    }

    .menu-icon {
        font-size: 16px;
    }
}
