body{
    font-family: "Poppins", sans-serif;
    font-style: normal;  
    background-color: #272044;  
}

.container{
    max-width: 1400px;
    margin: 0 auto;

}

.grid {
  display: grid;
  grid-gap: 64px;
}

.grid-2-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 64px;
}

.grid-3-columns{
    grid-template-columns: 1fr 1fr 1fr;
}

.img-responsive{
    width: 100%;
    display: block;
}

.text-center{
    text-align: center;
}

.embed{
    width: 100%;
    aspect-ratio: 1/1;
}


.card{
    background: white;
    margin: 30px 0;
}

.card-header.grid{
    grid-gap: 0;
}

.card-body{
    padding: 30px;
}

.card-footer{
    padding: 0 30px 32px;
}

.btn{
    display: block;
    color: white;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    background: #462CB2;
    padding: 16px;

}

.instagram-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Espacio entre posts */
  padding: 10px;
}

.instagram-wrapper .instagram-media {
  flex: 1 1 calc(33.333% - 20px); /* 3 columnas menos el espacio */
  max-width: calc(33.333% - 20px);
  min-width: 250px; /* Que no se achiquen demasiado */
  box-sizing: border-box;
}

/* Responsive para tabletas y móviles */
@media (max-width: 768px) {
  .instagram-wrapper .instagram-media {
    flex: 1 1 calc(50% - 20px); /* 2 columnas en tabletas */
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .instagram-wrapper .instagram-media {
    flex: 1 1 100%; /* 1 columna en celulares pequeños */
    max-width: 100%;
  }
}



section{
    max-width: 100%;
    margin: 0 auto;
    padding: 100px;
}

section.secondary{
    background: #f8f8f8;
}

header{
    background-image: linear-gradient(rgba(0, 0, 0 , 0.4), rgba(0, 0, 0, 0.6)), url("../images/bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 200px 0;
    width: 100%;
}

header h1{

    font-weight: 700;
    font-size: 96px;
    line-height: 1;
    margin: 30px 0 30px;
}

header h2{
    font-weight: 400;
    font-size: 40px;
    line-height: 1.5;
    margin: 0;
}

header h3{
    font-weight: 900;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 5px;
    margin: 0;
}

header a{
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;

    text-align: center;
    color: #272044;
    padding: 16px 32px;
    margin-top: 32px;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: white;

}

main{
    background: white;
}

main h2{
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 5px;
    color: #272044;
    opacity: 0.3;
    text-transform: uppercase;
    margin: 0;
}

main h3{
    font-weight: 700;
    font-size: 40px;
    line-height: 1.5;
    color: #272044;
    margin: 0;
}

main h4{
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: #272044;
    margin: 0;
}

main h5{
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: #272044;
    margin: 0;
}

main p{
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #272044;
    opacity: 0.7;
}

footer{
    color: white;
    background-image: linear-gradient(rgba(39, 32, 68, 0.9), rgba(39, 32, 68, 0.9)), url("../images/bg2.png");
    background-repeat: no-repeat;
    background-size: cover;

}

footer h3{
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
}

footer p{
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    opacity: 0.7;
    margin: 20px;
}

footer ul{
    margin: 0;
    padding: 0;
}

footer li{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

footer a{
    color: white;
    opacity: 0.7;
    text-decoration: none;
}

@media (max-width: 960px){
    header{
        padding: 60px 0;
    }
    header h1{
        font-size: 48px;
    }
    
    header h2{
        font-size: 20px;
    }

    header h3{
        font-size: 12px;
    }

    .grid{
        grid-template-columns: 1fr;
        grid-gap: 32px;
    }

    section{
        padding: 30px;
    }

    .card-header img{
        display: none;
    }
    .embed{
        aspect-ratio: 16/9;
    }
}