*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#efefef;
}

header{
    background:#273989;
    padding:15px 0;
    position:sticky;

    top:0;

    z-index:9999;

}

.header-container{
    max-width:1400px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    height:80px;
}

nav{
    display:flex;
    gap:30px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:700;
}

nav a:hover{
    color:#CF2E26;
}

.lema-principal{
    max-width:1200px;
    margin:auto;
    padding:50px 20px;
    text-align:center;
}

.lema-principal h1{
    color:#CF2E26;
    margin-bottom:25px;
}

.imagen-principal{
    width:100%;
    max-width:1280px;
    display:block;
    margin:auto;
    margin-bottom:30px;
}

.texto-lema{
    max-width:1100px;
    margin:auto;
    line-height:1.8;
    text-align:justify;
}

.separador{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    margin:50px 0;
}

.linea{
    width:250px;
    height:4px;
    background:#273989;
}

.centro{
    width:120px;
    height:30px;
    border:4px solid #273989;
    border-radius:50px;
}

.galeria{
    max-width:1400px;
    margin:auto;
    padding:0 20px 80px;
}

.galeria h2{
    text-align:center;
    color:#CF2E26;
    margin-bottom:40px;
}

.grid-lemas{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
}

.lema-card{
    cursor:pointer;
    text-align:center;
}

.lema-card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
}

.lema-card h3{
    margin-top:15px;
}

.lema-card:hover{
    transform:scale(1.03);
    transition:.3s;
}

footer{
    background:#273989;
    color:white;
    text-align:center;
    padding:20px;
}

@media(max-width:768px){

    .header-container{
        flex-direction:column;
        gap:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

}

footer{
    background:#273989;
    color:#ffffff;
    padding:20px 0;
    margin-top:60px;
}

.footer-grid{
   display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:20px;
}

.footer-grid p{
    margin:0;
}