@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
:root {
    --primary-color: #ffffff;
    --secondary-color: #61f82d;
    --tertiary-color: #d9f066;
    --quaternary-color: #eeef70;
    --black-color: #000000;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --transition-duration: 0.3s;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    background-color: var(--black-color);
    color: var(--primary-color);
    caret-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#particles-js {
    z-index: -1;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

header {
    display: flex;
    justify-content: left;
    width: 100%;
    padding: 1rem;
    background: transparent;
    box-shadow: 0 0.125rem 0.25rem 0 var(--shadow-color);
    text-align: center;
    z-index: 10;
}

header img {
    height: 10rem;
    padding: 1rem;
}

main {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 1.5rem;
    background: transparent;
}

.quienes {
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.quienes h1 {
    font-size: 1.5rem;
    caret-color: transparent;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-weight: bold;
}

.quienes p {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    color: var(--primary-color);
    background-color: var(--black-color);
    padding: 1rem;
    line-height: 1.6;
    font-size: 1.3rem;
    margin-top: 1.8rem;
}

.cta {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    padding: 20px;
}

.cta__button {
    width: 25%;
    border: none;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.cta__button img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0px 2px 4px rgba(255, 255, 255, 0.5), 0px 4px 8px rgba(255, 255, 255, 0.3);
}

.cta__button:hover {
    transform: translateY(-4px);
}

.eventos {
    display: flex;
    gap: 80px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.eventos__item {
    position: relative;
    width: 40%;
    overflow: hidden;
    transition: transform 0.3s;
}

.eventos__img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.eventos__item:hover .eventos__img {
    transform: scale(1.1);
}

.eventos__title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.eventos__item:hover .eventos__title {
    background-color: rgba(0, 0, 0, 0.9);
}

.videos {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin-top: 3.2rem;
}

.videos__main {
    width: 50%;
    max-height: 500px;
    cursor: pointer;
}

.videos__main video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.videos__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: -1rem;
    max-height: 500px;
    overflow-y: auto;
}

.videos__item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.videos__thumbnail {
    width: 190px;
    height: 45px;
    object-fit: cover;
    border-radius: 5px;
}

.videos__item p {
    margin: 0;
    font-size: 1rem;
    flex: 1;
    text-align: left;
}

.videos__item:hover {
    background-color: #e0e0e0;
    color: var(--black-color);
}

#demo {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 1.5rem 0;
}

#demo:hover {
    color: var(--tertiary-color);
    cursor: default;
}

.Redes p {
    font-size: 1.2rem;
    font-weight: 600;
}

.Redes a {
    margin: 1rem;
}

.Redes a img {
    margin-top: .4rem;
    height: 2.5rem;
    transition: transform 0.3s, filter 0.3s;
}

.Redes a:hover img {
    transform: scale(1.2);
    filter: brightness(1.5);
}

footer {
    width: 100%;
    background: transparent;
    box-shadow: 0 -0.125rem 0.25rem 0 var(--shadow-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 3rem;
}

footer>div {
    display: flex;
    align-items: center;
    margin: 0.5rem;
}

footer a {
    margin: 0 0.5rem;
    font-size: 1rem;
    transition: color 0.3s;
    text-decoration: none;
    color: var(--primary-color);
}

footer a:hover {
    color: var(--secondary-color);
}

@media (max-width: 480px) {
    header img {
        height: 3.5rem;
    }
    .quienes {
        width: 100%;
    }
    .quienes p {
        width: 90%;
    }
    .cta {
        justify-content: center;
        margin: 0;
    }
    .cta__button {
        width: 90%;
    }
    .eventos__item {
        width: 90%;
    }
    .videos {
        justify-content: center;
    }
    .videos__main {
        width: 100%;
    }
    .videos__list {
        width: 90%;
        flex-wrap: nowrap;
    }
    .videos__item p {
        display: none;
    }
    #demo {
        font-size: 2.25rem;
    }
    div a img {
        margin: 0 0.5rem;
    }
    footer>div {
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 769px) {
    .cta {
        justify-content: center;
        margin: 0;
    }
    .cta__button {
        width: 50%;
        margin-bottom: 3.2rem;
    }
}