/* ================================
   BASE & VARIABLES
================================ */

* {
    margin: 0;
    padding: 0;

    --rojo: #FF2A2A;
    --amarillo: #ffc800;
    --verde: #49BB35;
    --azul: #1286E9;
}

body {
    color: white;
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
}

h1,
h2 {
    font-family: "Playpen Sans", cursive;
    font-weight: 600;
}

h2 {
    color: black;
    font-size: 35px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

a {
    text-decoration: none;
    color: white;
}

/* ================================
   NAVBAR
================================ */

nav {
    position: absolute;
    z-index: 2;
    width: 100vw;
    display: none;
    justify-content: center;
}

ul {
    width: 100vw;
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin: 25px 10vw 0;
    padding-bottom: 15px;
    border-bottom: 1.5px solid white;
}

li a {
    padding: 5px;
    font-size: 25px;
    font-weight: 600;
}

li a:hover {
    background-color: rgba(255, 255, 255, 0.203);
    padding: 5px;
    border-radius: 10px;
}

/* ================================
   HERO
================================ */

#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("assets/hero/reja-jardin.jpg") center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

#hero div {
    text-align: center;
    padding-inline: 35px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

#hero img {
    width: 75vw;
}

#hero h1 {
    font-size: 45px;
    text-align: center;
    line-height: 1;
}

#hero h3 {
    font-family: "Playwrite US Modern", cursive;
    font-weight: 300;
    font-size: 25px;
    text-align: center;
    line-height: 1.2;
    margin-top: 10px;
}

#redirect {
    background-color: var(--verde);
    font-weight: 700;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    width: fit-content;
    font-size: 20px;
}

#redirect:hover,
#redirect:active {
    background-color: green;
}

#redirect:active {
    text-decoration: underline;
}

/* ================================
   QUÉ OFRECEMOS
================================ */

#que-ofrecemos {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
}

.container {
    display: flex;
    row-gap: 30px;
    flex-direction: column;
}

.left {
    order: 1;
}

.right {
    order: 2;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 5px;
}

.section img {
    width: 35px;
    padding: 10px;
    border-radius: 10px;
}

.section h3 {
    font-size: 25px;
}

.section p {
    color: #515050;
    font-weight: 500;
    text-align: center;
    font-size: 20px;
    margin-inline: 30px;
}

.educacion img {
    background-color: var(--rojo);
}

.alimentacion img {
    background-color: var(--verde);
}

.after-school img {
    background-color: var(--azul);
}

.celebraciones img {
    background-color: var(--amarillo);
}

.educacion h3 {
    color: var(--rojo);
}

.alimentacion h3 {
    color: var(--verde);
}

.after-school h3 {
    color: var(--azul);
}

.celebraciones h3 {
    color: var(--amarillo);
}

.mafalda-ofrecemos {
    height: 40vh;
    order: 3;
}

/* ================================
   NIVELES
================================ */

#niveles {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 15px;
}

#niveles h3 {
    font-size: 25px;
}

#niveles p {
    font-size: 20px;
}

.card {
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 1rem;
    text-align: center;
    padding: 40px;
    width: 50vw;
    outline: 3px dashed white;
    outline-offset: -15px;
    row-gap: 5px;
}

.card h3 {
    line-height: 1;
}

.medio {
    background-color: var(--amarillo);
}

.menor {
    background-color: var(--azul);
}

.mayor {
    background-color: var(--rojo);
}

/* ================================
   JORNADAS
================================ */

#jornadas {
    display: grid;
    grid-template-columns: 100vw;
    grid-template-rows: auto auto;
    justify-items: center;
    row-gap: 20px;
}

#table,
#jornadas img {
    width: 90%;
}

#table h3,
#table div {
    padding: 3px 10px;
    border-radius: 5px;
}

#table div {
    display: flex;
    justify-content: space-between;
    margin-block: 5px;
    background-color: #49bb3531;
}

#table h3 {
    background-color: #49BB35;
    text-align: center;
    font-size: 20px;
}

#table p {
    color: black;
    font-weight: 500;
    font-size: 17px;
}

#jornadas img {
    justify-self: end;
}

/* ================================
   CONTÁCTANOS
================================ */

#contacto,
#items,
#items>* {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#items {
    gap: 10px;
}

#items>* {
    text-align: center;
    border-radius: 10px;
    padding-block: 15px;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.423);
    gap: 5px;
    width: 290px;
}

#items img {
    width: 30px;
}

#items h3 {
    color: black;
    font-size: 25px;
}

#items p {
    color: #515050;
    font-weight: 600;
    font-size: 20px;
}

.fondo {
    width: 30px;
    height: 30px;
    padding: 10px;
    border-radius: 50%;
}

#ubicacion .fondo {
    background-color: #ff2a2a37;
}

#horario .fondo {
    background-color: #ffc80037;
}

#llamanos .fondo {
    background-color: #1285e941;
}

#wsp .fondo {
    background-color: #49bb3554;
}

.btn {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
}

#wsp .btn {
    background-color: var(--verde);
}

#wsp .btn:hover {
    background-color: green;
}

#llamanos .btn {
    background-color: var(--azul);
}

#llamanos .btn:active,
#wsp .btn:active {
    text-decoration: underline;
}

#contacto h4 {
    color: black;
    font-family: "Playwrite US Modern", cursive;
    font-size: 20px;
    margin-top: 25px;
}

iframe {
    margin-block: 20px;
    border: 0;
    width: 85%;
    height: 80vw;
    border-radius: 5px;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.423);
    margin-bottom: 80px;
}

/* ================================
   FOOTER
================================ */

footer,
footer div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    background-color: black;
    row-gap: 5px;
    padding-block: 25px;
}

footer div {
    gap: 5px;
    margin-top: 5px;
}

footer img {
    filter: invert(1);
    height: 14px;
}

footer h3 {
    font-size: 25px;
}

footer p {
    font-size: 20px;
}

footer a {
    display: flex;
    align-items: center;
    gap: 6px;
}

footer a:hover {
    text-decoration: underline;
}

footer h3 {
    text-align: center;
    margin-bottom: 5px;
    margin-inline: 10px;
}

#github-logo {
    height: 20px;
    margin-top: 3px;
}

/* ================================
   MEDIA QUERIES
================================ */

@media (min-width: 379px) {

    /* JORNADAS */
    #table h3,
    #table p {
        font-size: 20px;
    }
}

@media (min-width: 480px) {

    /* BASE */
    h2 {
        font-size: 35px;
    }

    /* QUE OFRECEMOS */
    .section img {
        width: 45px;
    }

    .section h3 {
        font-size: 25px;
    }

    .section p {
        font-size: 19px;
        margin-inline: 50px;
    }

    /* NIVELES */
    #niveles h3 {
        font-size: 30px;
    }

    #niveles p {
        font-size: 25px;
    }

    .card {
        width: 250px;
        height: 100px;
        display: flex;
        justify-content: center;
    }

    /* FOOTER */
    footer h3,
    footer a {
        font-size: 18px;
    }
}

@media (min-width: 768px) {

    /* HERO */
    #hero img {
        width: 400px;
    }

    #hero h1 {
        font-size: 50px;
    }

    #hero h3 {
        font-size: 30px;
    }

    /* QUE OFRECEMOS */
    .container {
        flex-direction: row;
    }

    .section p {
        margin-inline: 35px;
    }

    /* NIVELES */
    #niveles {
        flex-direction: row;
        gap: 10px;
        margin-inline: 30px;
    }

    .card {
        width: 30vw;
        height: 14vh;
        display: flex;
        justify-content: center;
    }

    /* JORNADAS */
    #table h3,
    #table p {
        font-size: 26px;
    }

    #jornadas img {
        width: 60%;
    }

    /* CONTACTO */
    #items {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #items>* {
        height: 150px;
        justify-content: center;
    }

    #llamanos .btn {
        display: none;
    }

    iframe {
        height: 35vh;
        width: 80%;
    }

    /* FOOTER */
    footer div {
        flex-direction: row;
        gap: 20px;
    }

    footer h3,
    footer a {
        font-size: 20px;
    }

    footer img {
        height: 18px;
    }

    #github-logo {
        height: 25px;
    }

}

@media (min-width: 1024px) {

    /* NAVBAR */
    nav {
        display: flex;
    }

    /* HERO */
    #hero img {
        width: 360px;
    }

    #hero h1 {
        font-size: 70px;
    }

    #hero h3 {
        font-size: 35px;
    }

    /* QUE OFRECEMOS */
    #que-ofrecemos {
        flex-direction: row;
    }

    .container {
        flex-direction: column;
        row-gap: 20px;
        margin-inline: 45px;
    }

    .section p {
        margin-inline: 0;
        font-size: 20px;
    }

    .left {
        order: 1;
    }

    .right {
        order: 3;
    }

    .mafalda-ofrecemos {
        order: 2;
        height: 50vh;
    }

    .educacion,
    .alimentacion {
        align-items: end;
    }

    .after-school,
    .celebraciones {
        align-items: start;
    }

    .educacion p,
    .alimentacion p {
        text-align: end;
    }

    .after-school p,
    .celebraciones p {
        text-align: start;
    }

    /* NIVELES */
    #niveles {
        margin-inline: 50px;
        justify-content: center;
    }

    #niveles h3 {
        font-size: 33px;
    }

    #niveles p {
        font-size: 27px;
    }

    /* JORNADAS */
    #jornadas {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    #table h3,
    #table p {
        font-size: 26px;
    }

    #jornadas img {
        width: 80%;
    }
}

@media (min-width: 1200px) {

    /* BASE */
    h2 {
        font-size: 45px;
    }

    /* HERO */
    #redirect {
        display: none;
    }

    /* QUE OFRECEMOS */
    #que-ofrecemos {
        margin-inline: 15px;
    }

    .section p {
        font-size: 21px;
    }

    .section h3 {
        font-size: 27px;
    }

    .card {
        width: 320px;
    }

    /*JORNADAS*/
    #table {
        width: 75%;
        justify-self: center;
    }

    #table h3,
    #table p {
        font-size: 26px;
    }

    /* CONTACTO */
    #items {
        grid-template-columns: repeat(4, 1fr);
    }
}