@import url('https://fonts.googleapis.com/css2?family=Montserrat: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&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

header {
    height: 100px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    text-align: center;
}

nav {
    background-color: slateblue;
    position: sticky;
    top:0;
    width: 100%;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 10px;
}
nav ul li a {
    text-decoration: none;
    color: white;
    padding: 16px;
}

main {
    width: 960px;
    margin: auto;
    min-height: 600px;

    
}

section {
    min-height: 500px;
}

/* Estilos de los posteos */
article {
    margin: 1rem;
    padding: 1rem;
    border: 2px solid slategray;
    border-radius: 0.4rem;
    height: 390px;
}

.post-img {
    width: 160px;
    height: auto;
    margin-right: 16px;
    float: left;
}

h4 {
    display: inline-block;
}

.post-text {
    
}

.post-btn {
    background-color: slateblue;
    color: white;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 0.4rem;
    float: right;
}

.post-btn:hover {
    background-color: blueviolet;
}


#ejemplo {
    border: 1px solid salmon;
    padding: 1rem;
    margin: 1rem;
    height: 300px;
}

.box {
    background-color: slateblue;
    height: 100px;
    width: 100px;
    border: 2px solid white;
    color: white;
    font-size: 2rem;
}
.box-1 {
    height: 120px;
    float: left;
}

.box-2 {
    height: 50px;
    float: left;
}

.box-3{
    height: 170px;
    float: left;
}

.box-4 {
    float: left;
}

.clear {
   clear: both;
}



.galeria-foto {
    width: 200px;
    height: auto;
    border: 2px solid black;
    background-color: white;
    border-radius: 5px;
    padding: 5px;
    margin: 11px;
}

.foto-2 {
   float: right;
}

.foto-4 {
    float:  left;
}

#galeria {
    background-color: grey;
    padding: 2rem;
}

footer {
    background-color: slateblue;
    color: white;
    padding: 10px;
    position: fixed;
    bottom:0;
    width: 100%;
}

/* CARD */

.card {
    width: 300px;
    height: 450px;
    border: 1px solid rgb(35, 35, 35);
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgb(80, 80, 80);
    float: left;
    margin: 1rem;
    /* La referencia */
    position: relative;
    
}

.card .card-img {
    width: 100%;
}

.card-text {
    position: absolute;
    top: 10px;
    right: 10px;

    background-color: rgba(245, 222, 179, 0.789);
    padding: 10px;
    border-radius: 5px;

}

.card-body {
    padding: 10px;
}