@font-face {
    font-family: Font1;
    src: url(./sources/Fonts/La Formalita.otf);
}

a {
    margin: 1.2rem;
    text-decoration: none;
    color: white;
}

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

body {
    background-color: white;
    font-family: Font1, sans-serif;
}

/* ===== HEADER RESPONSIVO ===== */
header {   
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 150px;
    background-color: black;
    color: white;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.ImgHeader {
    height: 100%;
    width: auto;
}

.DivIcon {
    height: 100px;
    width: 150px;
}

.TextHeader {
    border-radius: 0 0 20% 2%;
    padding: 1rem;
    margin-left: 1rem;
}

.Options, .SocialNetworks {
    font-size: large;
    padding: 1rem;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.ContentText {
    margin: 2rem auto;
    text-align: justify;
    width: 90%;
    max-width: 600px;
    background-image: url('https://static.vecteezy.com/system/resources/thumbnails/050/483/449/small/vibrant-blue-watercolor-splash-on-white-background-cut-out-stock-png.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.Description {
    margin-top: 1rem;
}

/* ===== SECCIONES FLEXIBLES ===== */
.FirsContent, .SecondContent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}
.SecondContent{
    background-image: url('https://ticnegocios.camaravalencia.com/wp-content/uploads/2022/10/ciberdefensa.jpg');
    background-size:cover;
    background-position: right;
    background-repeat: no-repeat;
}
.ContentText {
    margin-top: 8rem;
}

.Mision, .Vision {
    width: 45%;
    min-width: 300px;
    margin: 1rem;
    font-size: large;
}

/* ===== GALERÍA RESPONSIVA ===== */
.SquareImages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 200px;
    gap: 10px;
    padding: 2rem;
    justify-content: center;
    margin: 2rem auto;
    max-width: 90%;
}

.box img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.box img:hover {
    transform: scale(1.1);
}

.box:nth-child(1),
.box:nth-child(4) {
    grid-column: span 2;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding: 1rem;
    }

    .ContentText {
        width: 100%;
        padding: 1rem;
        background-size: cover;
    }

    .Mision, .Vision {
        width: 100%;
        text-align: center;
    }

    .SquareImages {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 5px;
    }
}

.ImageMision{
    margin-top: 4rem;
    text-align: center;
    align-self: center;
    height: 50%;
    width: 40%;
}
.VisionHeader{
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.MisionHeader{
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.ImageObjetives{
    text-align: center;
}
/*.Vision{
    background-image: url('https://cdn-icons-png.flaticon.com/256/4257/4257483.png');
    background-size:contain;
    background-position: right;
    background-repeat: no-repeat;
}*/
