@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* espacio entre contenido y footer */
    width: 100%;
    height: 100vh; /* asegura que el contenedor ocupe toda la pantalla */
}

/* Header */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px;
    flex-shrink: 0;
}
.logo {
    max-width: 200px;
}
header ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}
header ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    margin-left: 40px;
}

/* Sección principal */
section {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    width: 100%;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* Contenido */
.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
}

/* TextBox */
.textBox {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.textBox h2 {
    font-size: 1.5em;
    line-height: 1.4em;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Imágenes */
.imgBox {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.imgBox img,
.country img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* Country */
.country {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Footer */
.footer {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: #b1cf78;
    color: #fff;
    width: 100%;
}

/* Hover efecto imágenes */
.imgBox a img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

/* RESPONSIVE */

/* Tablets grandes */
@media (max-width: 1024px) {
    .textBox {
        max-width: 700px;
    }
    header ul li a {
        margin-left: 20px;
    }
}

/* Tablets / móviles medianos */
@media (max-width: 768px) {
    header {
        padding: 0px 20px;
        flex-direction: column;
        align-items: center;
    }
    header ul {
        justify-content: center;
        margin-top: 10px;
    }
    section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .content {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 15px;
    }
    .textBox {
        max-width: 100%;
    }
    .imgBox {
        max-width: 100%;
        flex: none;
    }
    .textBox h2 {
        font-size: 1.3em;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    header {
        padding: 0px 15px;
        flex-direction: row;
        justify-content: space-between;
    }
    header ul {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    header ul li a {
        font-size: 0.8em;
        margin-left: 8px;
    }
    .textBox {
        font-size: 1em;
        width: 100%;
    }
    .textBox h2 {
        font-size: 1.1em;
        margin-bottom: 5px;
    }
    .imgBox {
        width: 100%;
    }
    .imgBox img {
        max-width: 100%;
    }
    .country {
        flex-direction: column;
        align-items: center;
        font-size: 0.5em;
        gap: 5px;
    }
    .logo {
        max-width: 150px;
    }
    .footer {
        font-size: 0.5em;
    }
}

