/* Define Old Standard TT */
@font-face {
    font-family: 'Old Standard TT';
    src: url('fonts/OldStandardTT-Regular.ttf') format('truetype'),
         url('fonts/OldStandardTT-Bold.ttf') format('truetype'),
         url('fonts/OldStandardTT-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Define Bebas Neue */
@font-face {
    font-family: 'Bebas Neue';
    src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Estilos generales */
body {
    font-family: 'Old Standard TT', serif; /* Aplicando Old Standard TT para todo el texto */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f5f9; /* Color de fondo suave */
    color: #333; /* Color de texto principal */
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

header {
    background-color: #001f3f; /* Fondo azul oscuro para el encabezado */
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Sombra suave */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically */
}

.main-nav {
    text-align: left; /* Aligns the navigation links to the left */
    margin-left: 20px; /* Adds some margin to the left */
}

.main-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    display: inline-block;
    margin-right: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif; /* Aplicando Bebas Neue para los enlaces */
    color: #fff; /* White color for the links */
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease; /* Adds transition for zoom effect */
}

.main-nav ul li a:hover {
    color: #007bff; /* Color de enlace al hacer hover */
    transform: scale(1.1); /* Zoom effect on hover (10% increase) */
}

.main-nav ul li a.active {
    color: #4da6ff; /* Brighter color for the active link */
}

.language-switch {
    margin-right: 20px; /* Adds some margin to the right */
    display: flex;
    align-items: center; /* Align icons vertically */
}

.language-switch .lang-icon {
    margin-left: 5px; /* Reduce the space between icons */
    display: inline-block;
    transition: transform 0.3s ease; /* Add transition for zoom effect */
}

.language-switch .lang-icon img {
    width: 2vw; /* Set the width of each icon to 2% of the viewport width */
    height: auto; /* Maintain aspect ratio */
}

.language-switch .lang-icon:hover {
    transform: scale(1.1); /* Zoom effect on hover (10% increase) */
}

.language-switch .lang-icon.active img {
    border: 2px solid #007bff; /* Borde alrededor del idioma activo */
    border-radius: 50%;
}

.main-content {
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif; /* Aplicando Bebas Neue para títulos */
    color: #007bff; /* Color de título */
}

p {
    font-size: 16px;
    line-height: 1.8;
}

/* Estilos para los iconos en el footer */
.icon-container {
    text-align: center; /* Center aligns the icons */
    margin-top: 20px; /* Adjust margin top as needed */
}

.icon {
    width: 5vw; /* 5% of the viewport width */
    height: auto; /* Maintains the aspect ratio */
    margin: 0 10px; /* Adds spacing between icons */
}

/* Responsive styles for clickable icons */
@media (max-width: 768px) {
    .language-switch {
        float: none;
        text-align: center;
    }

    .language-switch .lang-icon {
        margin-left: 3px; /* Adjust margin for better spacing on mobile */
        margin-right: 3px;
    }
    
    .language-switch .lang-icon img {
        width: 2rem; /* Set a fixed width for better touch targets */
    }
}

/* Estilos para la galería de fotos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    justify-content: center;
    max-width: 85%;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Redondear las esquinas de las imágenes */
    border: 1px solid #000; /* Borde delgado negro */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Efecto de zoom al hacer hover */
.gallery-item:hover img {
    transform: scale(1.1); /* Zoom effect on hover (10% increase) */
}

.large {
    grid-column: span 4;
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .large {
        grid-column: span 2;
    }
}
