:root {
    --primary: #8BC34A;
    --secondary: #87C1C2;
    --accent: #f9e45b;
    --light: #fff9cf;
    --dark: #f9e45b;

    --max-width: 66.6667vw;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    background-color: var(--light);
}

header {
    background-color: var(--primary);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

header h1 {
    font-family: 'Barriecito', sans-serif;
    color: var(--light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

a {
    color: var(--secondary);
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--light);
    font-weight: bold;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--accent);
    transform: scale(1.05);
}

section {
    padding: 30px 20px;
    margin-bottom: 20px;
}

.content {
    max-width: var(--max-width);
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

.content h2 {
    font-family: 'Barriecito', cursive;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: center;
}

hr {
    border: 1px solid var(--secondary);
    max-width: var(--max-width);
}

.hero {
    background-color: var(--secondary);
    padding: 50px 20px;
    color: var(--light);
}

footer {
    background-color: var(--primary);
    text-align: center;
    padding: 20px;
    color: var(--light);
}

footer h2 {
    font-family: 'Barriecito', sans-serif;
}

#nav {
    display: flex;
    justify-content: center;
    gap: 20px;

    a {
        text-decoration: none;
        color: var(--light);
        font-weight: bold;
        transition: all 0.3s ease;
    }

    a:hover {
        color: var(--accent);
    }

    .icon {
        display: none;
    }
}

.carousel {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-button:hover {
    background-color: rgba(0,0,0,0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

.dot.active {
    background-color: white;
}

@media screen and (max-width: 768px) {
    #nav {
        flex-direction: column;
        a {
            display: none;
        }

        .icon {
            float: right;
            display: block;
            color: var(--light);
            background-color: var(--secondary);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
    }

    #nav.responsive {
        position: relative;
        background-color: var(--primary);
        padding: 10px;
        border-radius: 10px;
    }

    #nav.responsive a {
        float: none;
        display: block;
        text-align: center;
        padding: 10px;
        margin: 5px 0;
        background-color: var(--secondary);
        border-radius: 8px;
    }

    .carousel-button {
        padding: 10px;
        font-size: 18px;
    }
}