body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #2d3141;
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
    height: 99.5px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#logo {
    max-width: 259px;
}

h1 {
    flex-grow: 1;
    font-size: 28px;
    text-align: center;
    color: #ffffff;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

main {
    flex: 1 0 auto;
    padding: 20px;
    overflow-y: auto;
}

h2 {
    font-size: 1.8em;
    margin-top: 40px;
    text-align: center;
}

p {
    text-align: center;
    margin-bottom: 40px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 97%;
    margin-left: 1.5%;
    margin-right: 1.5%;
}

.gallery-item {
    position: relative;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.text-container {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    width: 100%;
}

.left-text {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    flex: 1;
}

.right-text {
    color: #555;
    font-size: 12px; /* Tamaño más pequeño para el texto de la derecha */
    font-weight: normal;
    text-align: right;
    flex: 1;
}

.left-text a {
    color: #333;
    text-decoration: none;
}

.left-text a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

#t3-footnav .wrap {
    background: #333;
    color: #fff;
}

#t3-footnav .module-title {
    color: #fff;
}

#t3-footnav .module-inner {
    padding: 15px;
}

#t3-footnav a {
    color: #fff;
}

#t3-footnav a:hover {
    color: #ddd;
}
