@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
    background-color: gray;
}

h1 {
    font-family: "Lobster", sans-serif;
    font-style: normal;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: pink;
    font-weight: 100;
    font-size: 3.8rem;
    z-index: 1;
    text-shadow: 2px 2px 4px rgb(0, 0, 0, 0.3);
}

.subtitle {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: pink;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.container {
    max-width: 90%;
    margin: auto;
}

.filtros {
    margin-top: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.filtros button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background-color: pink;
    cursor: pointer;
}

.filtros button:hover {
    background-color: antiquewhite;
    color: gray;
}

.container-cursos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.card {
    font-family: "Poppins", sans-serif;
    background-color: pink;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card h3 {
    margin: 0;
    color: #d16e8d;
}

.card p {
    margin-top: 10px;
    color: #555;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
        text-align: center;
    }

    .subtitle {
        font-size: 1.2rem;
        padding: 0 10px;
        text-align: center;
    }

    .filtros {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filtros button {
        font-size: 0.95rem;
        padding: 8px 14px;
    }

    .container-cursos {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 320px;
        padding: 16px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .filtros button {
        font-size: 0.85rem;
        padding: 7px 12px;
    }

    .card {
        padding: 14px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.9rem;
    }
}