/*reglas generales*/

@import url('https://fonts.googleapis.com/css2?family=Kurale&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,700&display=Mallanna&family=Pavanam&family=Raleway+Dots&family=Raleway:wght@100;300;500&family=Roboto+Condensada:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&=swap');
* {
    box-sizing: border-box;
    font-family: Mallana, Pavanam, Roboto, kurale, Raleway, sans-serif, Garamond;
}

/*siempre que queremos poner un icono hay que llamar a .fa o .fas porqué en realidad lo que hacen es llamar la font-family.*/

.fa, .fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.fas, .fs {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* a continuación hay que poner la instrucción concreta de cada icono. fijaros que en realidad mediante el pseudo-selector ::before introducimos contenido delante de la etiqueta*/

.fa-thumbs-down:before {
    content: "\f165";
}

.fa-thumbs-up:before {
    content: "\f164";
}

/*si estás familiarizado con los breakpoints de bootstrap esto te gustará*/

.fa-lg {
    font-size: 1.33333em;
    line-height: 0.75em;
    vertical-align: -.0667em;
}

.fa-xs {
    font-size: .75em;
}

.fa-sm {
    font-size: .875em;
}

/*poner el icono a la izquierda o a la derecha*/

.fa-pull-left {
    float: left;
}

.fa-pull-right {
    float: right;
}

/* .icon-whatsApp{
    background-position: ;
} */

body {
    margin: 0;
}

/* .letras {
    width: 1000px;
    padding: 2px;
    margin: auto;
    font-family: Ralewey;
    font-size: 1.2rem;
    letter-spacing: 3px;
} */

.tb {
    width: 1000px;
    padding: 2px;
    margin: 0 auto;
    font-family: FontAwesome, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

/* .tb {
    letter-spacing: 3px;
    padding-left: 5px;
    padding-right: 5px;
}

.tb:hover {
    letter-spacing: 20px;
    padding-left: 5px;
    padding-right: 5px;
} */

/* Encabezado */

#header {
    display: flex;
    justify-content: space-between;
    height: 60px;
    font-size: 1rem;
}

.header {
    flex-direction: column;
    text-align: center;
    width: 100%;
    height: 220px;
    background-image: url(../img/ilustra/papalote-bar.png);
    background-attachment: inz;
    color: #76ff03;
    font-size: 10pt;
}

/* banner */

#container {
position: fixed;
    justify-content: space-between;
    display: flex;
    background-color: #b9f6ca;
    width: 100%;
    height: 60px;
    padding: 5px;
}

.btn {
    width: 50px;
    height: 48px;
    cursor: pointer;
    border: none;
    margin-top: 3px;
    margin-bottom: 3px;
}

.btn:hover {
    opacity: .6;
}

.links a {
    text-decoration: none;
    color: rgb(170, 165, 165);
    display: block;
    padding: 6px;
    font-size: 12pt;
}

.links {
    text-align: left;
    background-color: #f9f9f9;
    width: 135px;
    display: none;
    border-radius: 0 5px 5px 0;
    border: whitesmoke;
    font-family: FontAwesome, sans-serif;
}

.links a:hover {
    background-color: rgb(214, 241, 239);
}

.desplegable:hover .links {
    display: block;
}

.desplegable {
    position: absolute;
}

#back {
    position: fixed;
    bottom: 3rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: .6;
    background-image: url(..//img/volver.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ccc;
    background-size: 100%;
}

/*Barra de Navegacion*/

nav, .menu, .menu li {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    letter-spacing: 1px;
    padding: 0%;
}

nav {
    background-color: rgb(12, 58, 56);
}

nav a {
    line-height: 2rem;
    padding: .2rem 6rem;
    color: #ffffff;
    text-decoration: none;
}

nav>a {
    font-size: 1.5rem;
}

.menu {
    list-style: none;
    margin: 0;
    font-size: 1.5rem;
    /* text-shadow: 1px 1px .01rem rgb(8, 8, 8); */
    font-family: Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.menu a:hover {
    color:#eee;
    background-color: rgba(68, 138, 133, 0.5);
}

#menu {
    display: none;
    color:rgba(68, 138, 133, 0.5);
    background-color: transparent;
}

/* contenido principal */

main, article, section, aside {
    padding: 0;
    border: 0;
}

main {
    display: grid;
    grid-template-columns: auto;
    grid-gap: 1rem;
}

article {
    grid-column-start: 1;
    /*linea inicial*/
    grid-column-end: 3;
    /*liena final*/
    counter-reset: tema;
}

/* flex */

.flex {
    height: 200px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    margin: 1rem;
    padding: 1rem;
    border: 2px solid white;
}

.flex div {
    width: 50px;
    height: 50px;
    background-color: darkslateblue;
    border: 1px solid #ccc;
}

.self {
    align-self: flex-start;
}

section:first-of-type .flex:last-child div:first-child, section:last-child .flex div:last-child {
    background-color: red;
}

/* grid */

.grid {
    border: 2px solid #ccc;
    /* padding: .5rem; */
    /*css-grid*/
    display: grid;
    grid-template-columns: 300px 300px 300px;
    grid-template-rows: 50px 50px 50px;
    gap: .5rem 1rem;
    /*espaciado fila y columna*/
    justify-content: space-around;
}

.grid div, .grid-area div {
    color: #ccc;
    background-color: rgba(51, 51, 51, .5);
    border: 2px solid;
    padding: .5rem;
}

/* footer */

#footer {
    background-position: top center;
    background-image: url(../img/ilustra/remite3.png);
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    color: rgb(41, 53, 87);
    font-size: 75%;
    background-color: rgba(58, 71, 69, 0.5);
    display: flex;
    flex-direction: column;
    text-align: center;
}

/*Redes sociales */

    .social {
        display: flex;
        width: 100%;
        background-color: #ccc;
        height: 64px;
        margin: 1em auto;
        justify-content: center;
        align-items: center;
    }

    .social a {
        width: 64px;
        height: 64px;
        background-size: 32px;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: .5em;
    }

    .social a:hover {
        background-size: 40px;
    }

    .facebook {
        background-image: url(../img/redes/color/facebook.png)
    }

    .whatsapp {
        background-image: url(../img/redes/color/whatsapp.png)
    }

    .instagram {
        background-image: url(../img/redes/color/instagram.png)
    }

    .twitter {
        background-image: url(../img/redes/color/twitter.png)
    }

/*Formulario de Contacto*/

#contact {
    display: flex;
    flex-direction: column;
    margin: auto;
    min-width: 300px;
    max-width: 720px;
    text-align: left;
}

#contact input:focus, #contact textarea:focus {
    box-shadow: 0 0 10px rgb(186, 214, 213);
    /* x y blur color*/
}

#contact input, #contact textarea {
    background-color: rgb(230, 233, 233);
    outline: none;
    border-radius: .5em;
    border: 2px solid rgb(12, 58, 56);
    padding: .5em 1em;
    /*ancho de la M en el elemento Padre*/
}

#contact textarea {
    resize: none;
    height: 96px;
}

#contact label {
    display: block;
    margin-top: .5em;
    overflow: hidden;
    height: 0;
}

#contact button {
    margin-top: .5em;
    border: 2px solid rgb(94, 94, 114);
    padding: .5em 1em;
    color: rgb(82, 99, 146);
    text-transform: uppercase;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 1s ease;
}

#contact button:hover {
    cursor: pointer;
    background-color: rgb(219, 233, 250);
}

/* Constantes */

/* Variables */
@media screen and (max-width: 768px){	
    /* Barra de Navegacion */	
        nav{
            flex-wrap: wrap;
        }
        #menu{
            display: block;
            margin:.5rem;
        }

        .menu, .menu li, .menu a{
            width:100%;
            flex-direction: column;
            text-align: center;
            background-color:rgb(12, 58, 56);
        }
        .openMenu{
            display:block;
        }
    
    }