/* ==================================================
   General Styles
================================================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #007bff;
    text-decoration: underline;
    transform: scale(1.05);
}

/* ==================================================
   Header
================================================== */
header {
    background: #333;
    color: #fff;
    padding: 15px 0;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

/* ==================================================
   Language Switch / Banderas
================================================== */
.lang-switch {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.lang-switch img {
    width: 20px;
    height: auto;
    vertical-align: middle;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.lang-switch img:hover {
    transform: scale(1.2);
}

/* ==================================================
   Main Content
================================================== */
main {
    padding: 20px;
}

.content {
    text-align: left; 
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

section:nth-child(even) {
    background-color: #ffffff;
    transition: background-color 0.5s ease-in-out;
}

section:nth-child(odd) {
    background-color: #f0f0f0;
    transition: background-color 0.5s ease-in-out;
}

/* ==================================================
   Image Container
================================================== */
.image-container {
    margin: 20px auto;
    width: 80%;
}

.image-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================================================
   Image Gallery
================================================== */
.image-gallery, .image-gallery2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: auto;
}

.image-item, .image-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.image-item img, .image-pair img {
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 1s ease;
    margin: 20px 0;
}

.image-item img:hover, .image-pair img:hover, .image-gallery img:hover {
    transform: scale(1.1);
    z-index: 10;
}

.image-pair {
    justify-content: center;
    gap: 90px;
    margin-bottom: 20px;
    max-width: 90%;
}

/* ==================================================
   Caption
================================================== */
.caption {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* ==================================================
   Footer
================================================== */
footer {
    background: #333;
    color: white;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

footer .logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

footer .logos img {
    height: 80px;
    width: auto;
}

footer .contacto a {
    color: #fff;
    text-decoration: none;
}

.contacto {
    margin-top: 20px;
}

/* ==================================================
   Publications
================================================== */
.publicaciones ol {
    padding-left: 20px;
    text-align: left;
}

.publicaciones ol li, .publicaciones article {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

/* ==================================================
   News
================================================== */
.noticias article {
    text-align: left;
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ==================================================
   Members
================================================== */
.miembros {
    text-align: left;
}

.miembros ul {
    list-style: none;
    padding: 0;
}

.miembros li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.social-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.social-links a i {
    margin-right: 8px;
}

.social-links a:hover {
    color: #007bff;
}

/* ==================================================
   Links Section
================================================== */
.links ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
}

.links li {
    margin-bottom: 15px;
}

.links li a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 1px 1px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.links li a:hover {
    transform: scale(1.03);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}
