@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --color1: #352a55;
    --color2: #3e3264;
    --color3: #0188a5;
    --color4: #01cbcf;
    --color5: #0bffe6;
    --color6: #f0f0f0; /* Texto ligeramente gris */
}

body {
    background: linear-gradient(180deg, var(--color1) 0%, var(--color2) 100%);
    color: var(--color6);
    font-family: 'Poppins', sans-serif;
}

.header {
    background: rgba(62, 50, 100, 0.5); /* Morado semi-transparente */
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(8px);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.116);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--color6);
}

.header__logo--text {
    font-weight: bold;
    font-size: 18px;
}

.logo--text2 {
}

.header__logo--img {
    width: 44px;
    height: 44px;
}

.header__callaction {
    display: none; /* Oculto en móvil, visible en desktop */
    margin: 0 16px;
    padding: 12px 16px;
    background-color: var(--color4);
    color: var(--color1);
    border: none;
    font-size: 12px;
    font-weight: 500;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.header_menu {
    min-width: 34px;
    min-height: 34px;
    display: flex;
    align-items: center;
}

.header_menu--icon {
    width: 34px;
    height: 4px;
    border-radius: 100px;
    background-color: var(--color6);
    position: relative;
    transition: .4s background-color;

    &::before {
        content: '';
        background: var(--color6);
        height: inherit;
        width: inherit;
        position: absolute;
        border-radius: 100px;
        left: 0;
        transform: translateY(-12px);
        transition: .4s transform;
    }
    &::after {
        content: '';
        background: var(--color6);
        height: inherit;
        width: inherit;
        position: absolute;
        border-radius: 100px;
        transform: translateY(12px);
        transition: .4s transform;
    }
}

.header:has(.header_menu--checkbox:checked) .header_menu--icon {
    background: transparent;
    transition: .4s background-color;
    &::before {
        transform: rotate(45deg);
    }
    &::after {
        transform: rotate(-45deg);
    }
}

.header_menu--checkbox {
    display: none;
}

.header_menu--checkbox:checked + .header__nav {
    display: block;
}

.header__nav {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    z-index: -1;
}

.header__list {
    background: linear-gradient(45deg, #352664, #6e3685);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 80px 16px 32px;
    list-style: none;
}

.list__item--a {
    font-size: 18px;
    color: var(--color6);
    text-decoration: none;
}

/* ----- HEADER ----- */



/* ----- HERO ----- */


.hero {
    padding: 160px 16px 64px;
    background: linear-gradient(45deg, rgba(53, 38, 85, 0.8), rgba(110, 54, 133, 0.8)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071&auto=format&fit=crop') no-repeat center center/cover;
    text-align: center;
}


.hero__title {
    text-align: center;
    font-size: 28px;
    text-wrap: balance;
}

.hero__subtitle {
    font-size: 20px;
    margin: 16px 0;
    margin-top: 16px;
    text-align: center;
    font-weight: 400;
    text-wrap: balance;

}

.hero__callaction {
    display: block;
    background: var(--color4);
    color: var(--color1);
    padding: 12px 32px;
    margin: 32px auto;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    width: fit-content;
    border: none;
    transition: .5s box-shadow;
}

.hero__callaction:hover {
    transition: .5s box-shadow;
    box-shadow: 0 0 8px 0 #fffdff;
}

.hero__paragraph {
    text-align: center;
    text-wrap: balance;
}

/* ----- HERO ----- */

main {
    max-width: 960px;
    margin: 0 auto;
}

.section__title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
    padding-top: 48px;
}

/* ---- TESTIMONIALS ---- */

.testimonials {
    padding: 64px 16px;
    background-color: transparent;
}

.testimonial-card {
    background: rgba(62, 50, 100, 0.5); /* Morado semi-transparente */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-card p {
    font-style: italic;
}

.testimonial-card span {
    display: block;
    text-align: right;
    margin-top: 16px;
    font-weight: bold;
}

/* ---- FAQ ----- */

.faq {
    padding: 64px 16px;
    background-color: transparent;
}

.faq-item {
    margin-bottom: 16px;
}

.faq-question {
    font-size: 18px;
    padding: 16px;
    background: rgba(62, 50, 100, 0.5); /* Morado semi-transparente */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
}

.faq-answer {
    padding: 16px;
    background-color: var(--color2);
    border-radius: 0 0 8px 8px;
    display: none; /* Oculto por defecto */
}

/* ---- FOOTER ---- */

footer {
    background-color: var(--color1);
    color: var(--color6);
    text-align: center;
    padding: 32px 16px;
}

.social-media {
    margin-top: 16px;
}

.social-media a {
    color: var(--color4);
    text-decoration: none;
    margin: 0 12px;
    font-size: 16px;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--color5);
}

/* ---- MEDIA QUERIES ---- */

@media (min-width: 768px) {
    .header_menu {
        display: none; /* Ocultar menú hamburguesa en desktop */
    }

    .header__callaction {
        display: block; /* Mostrar botón de inscripción en desktop */
    }

    .header__nav {
        display: block;
        position: static;
        width: auto;
        height: auto;
        z-index: 1;
    }

    .header__list {
        flex-direction: row;
        background: none;
        height: auto;
        padding: 0;
        gap: 24px;
    }

    .hero__title {
        font-size: 42px;
    }

    .hero__subtitle {
        font-size: 24px;
    }

    .testimonials {
        display: flex;
        gap: 16px;
        justify-content: center;
    }

    .testimonial-card {
        flex-basis: 45%;
    }
}
