@font-face {
    font-family: 'Mulish';
    src: url('./media/Mulish/static/Mulish-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
}
body {
    background-color: #30302f;
    color: white;
    font-family: 'Mulish';
}
::selection {
    color: #30302f;
    background: #dbcea2;
  }
a {
    color: black;
    text-decoration: none;
}

/* TÍTULO */
.container1 {
    max-width: 1400px;
    margin: 0rem auto 3rem auto;
    padding: 40px 0;
    background-color: #dbcea2;
    /* border-bottom: 3px solid white; */
    box-shadow: 20px 30px 80px 50px #1a1919f3;
    }
    .container1_contenido{
        display: flex;
        justify-content: center;
        align-items: center;
        /* gap: 1.5rem; */
        margin: 0 1rem;
    }
        .container1_titulo {
            display: flex;
            justify-content: center;
            align-items: center;
            /* border: 1px solid black; */
        }
            .container1_titulo h1 {
                font-size: 40px;
                text-align: center;
                color: #333333;
                /* border: 1px solid black; */
            }
        .container1_img {
            margin-left: 1rem;
            display: flex;
            justify-content: center;
            align-items: center;
            min-width: 100px;
            height: 100px;
            /* border: 1px solid black; */
        }
            .container1_img img {
                width: 100%;
                height: 100%;
            }


/* TEXTO INTRODUCCIÓN */
.container1_5{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 4rem;
    font-size: 17px;
    letter-spacing: .4px;
}

/* COMUNIDADES */
.container2{
    padding: 40px 5rem 60px 5rem;
}
    .container2 h1{
        text-align: center;
        font-size: 28px;
        margin-bottom: 1.5rem;
    }
    .comunidades{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
    }
        .comunidades_com {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;
            gap: 0 1rem;
            padding: 1rem 1rem .5rem 1rem;
            margin: .5rem .6rem;
            /* border: 1px solid brown;   */
            background-color: #363635e4;
            box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, 0.15);
            transition: .4s;
            border-radius: 10px;
        }
            .comunidades_com .imagen img{
                width: 150px;
                height: 100px;
            }
            .comunidades_com .nombre{
                margin-top: .3rem;
                transition: .4s;
                color: white;
            }
            .comunidades_com:hover {
                cursor: pointer;
                padding-bottom: 1rem;
                background-color: #43433fd0;
                box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.25);
            }
            .comunidades_com:hover .nombre {
                font-size: 17px;
                transition: .4s;
            }


#elegir_pagina {
    margin-top: 2rem;
    padding: 40px 1rem;
    /* border: 2px solid white; */
}
    .grupos {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 2.5rem;
        /* padding: 1rem; */
        /* border: 2px dotted white; */
    }
        .primaria, .secundaria {
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
            width: 400px;
            height: 220px;
            border-radius: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            font-weight: bold;
            font-size: 20px;
            letter-spacing: 1.25px;
        }
        .primaria {
            background-image: linear-gradient(
                0deg,
                rgba(0,0,0,0.5),
                rgba(0,0,0,0.5)
                ), 
                url(./media/img/primaria.jpg);
        }
        .secundaria {
            background-image: linear-gradient(
                0deg,
                rgba(0,0,0,0.5),
                rgba(0,0,0,0.5)
                ), 
                url(./media/img/secundaria.jpg);
        }
        .primaria:hover {
            cursor: pointer;
            background-image: linear-gradient(
                0deg,
                rgba(0,0,0,0.2),
                rgba(0,0,0,0.2)
                ), 
                url(./media/img/primaria.jpg);
        }
        .secundaria:hover {
            cursor: pointer;
            background-image: linear-gradient(
                0deg,
                rgba(0,0,0,0.2),
                rgba(0,0,0,0.2)
                ), 
                url(./media/img/secundaria.jpg);
        }

#div_flecha {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
    #flecha {
        /* font-size: 10px; */
        color: whitesmoke;
        margin-top: 2rem;
        transition: .3s;
    }
    #flecha:hover {
        cursor: pointer;
        color: black !important;
        font-size: 10px;
    }



/* Media query */
@media(max-width: 768px){
    .container1 {   
        /* width: 100%; */
        /* margin: 0px 0px;
        padding: 10px 25px; */
    }
    .container1_titulo h1 {
        font-size: 30px;
    }
    /* Texto intro */
    .container1_5{
        padding: 0 2rem;
        text-align: justify;
    }
    /* Contenedor banderas */
    .container2{
        margin-top: 2rem;
        padding: 0;
    }
    .comunidades{
        justify-content: center;
    }
        /* Tamañoo banderas */
        .comunidades_com .imagen img{
            width: 100px;
            height: 65px;
        }
        .comunidades_com .nombre {
            font-size: 14px;
        }

    .grupos{
        flex-direction: column;
    }
}

.pie_volver {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.pie_volver a {
  color: #fff;
}