/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
    font-family: sans-serif;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background-color: rgb(39, 39, 39);
    padding: 10px;
    position: relative;
}

.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 alineado a la derecha */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 60px;
    height: 45px;
    cursor: pointer;
    padding: 5px 10px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3000;
}

.hamburger span {
    display: block;
    height: 6px;
    width: 100%;
    background-color: white;
    border-radius: 4px;
    transition: transform 0.4s ease, background-color 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger span:not(:last-child) {
    margin-bottom: 8px;
}

#menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    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(8px, -8px);
    background-color: gold;
}

/* Slider */
.slider {
    position: relative;
    width: 70%;
    max-width: 600px;
    margin: 40px auto;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.container {
    display: flex;
    width: 1000%;
    height: 500px;
    animation: slide 20s infinite;
}

.slide {
    width: 10%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

#slide1 { background-image: url('fotos/slide/Pic 1.jpg'); }
#slide2 { background-image: url('fotos/slide/Pic 2.jpg'); }
#slide3 { background-image: url('fotos/slide/Pic 3.jpg'); }
#slide4 { background-image: url('fotos/slide/Pic 4.jpg'); }
#slide5 { background-image: url('fotos/slide/Pic 5.jpg'); }
#slide6 { background-image: url('fotos/slide/Pic 6.jpg'); }
#slide7 { background-image: url('fotos/slide/Pic 7.jpg'); }
#slide8 { background-image: url('fotos/slide/Pic 8.jpg'); }
#slide9 { background-image: url('fotos/slide/Pic 9.jpg'); }
#slide10 { background-image: url('fotos/slide/Pic 10.jpg'); }

@keyframes slide {
    0%, 10% { transform: translateX(0); }
    20%, 30% { transform: translateX(-10%); }
    40%, 50% { transform: translateX(-20%); }
    60%, 70% { transform: translateX(-30%); }
    80%, 90% { transform: translateX(-40%); }
    100% { transform: translateX(-50%); }
}

/* 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;
}

/* Textos */
h1 {
    margin-top: 50px;
    margin-bottom: 30px;
    color: gold;
    font-style: italic;
    text-shadow: 5px 10px gray solid;
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    text-align: center;
}

h4 {
    margin-bottom: 50px;
    text-align: center;
}

footer p {
    color: aliceblue;
    text-align: center;
}

.icon-elem,
.menu-elem {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1024px) {
    .slider {
        width: 80%;
        height: 450px;
    }

    .container {
        height: 450px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.4rem;
    }

    .footer p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .slider {
        width: 90%;
        height: 400px;
    }

    .container {
        height: 400px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .footer {
        padding: 15px 20px;
    }

    .footer p {
        color: #ffffff;
        font-size: 14px;
        text-align: center;
    }

    .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: clamp(1rem, 3vw, 1.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;
    }
}

@media (max-width: 480px) {
    .slider {
        width: 95%;
        height: 300px;
    }

    .container {
        height: 300px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .footer p {
        color: #ffffff;
        font-size: 13px;
        text-align: center;
    }

    .hamburger {
        width: 40px;
        height: 30px;
        top: 10px;
        right: 10px;
    }

    .hamburger span {
        height: 4px;
    }

    .menu-icon {
        font-size: 16px;
    }

    .icon {
        font-size: 24px;
    }

    .text {
        font-size: 12px;
        color: #333;
        line-height: 1.6;
        text-align: justify;
        margin: 10px 0;
    }
}
