@font-face {
    font-family: masque;
    src: url(/Fuentes/masque/MASQUE__.ttf);
}

html {
    scroll-behavior: smooth;
}

#encabezado {
    margin-bottom: 10px;
    text-align: center;
    background-color: #2c2c2c;
    max-height: 20vh;
    align-content: center;
    height: fit-content;
    position: relative;
}

#img-encabezado {
    width: 100%;
    max-height: 20vh;
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#titulo {
    max-width: 80%;
    max-height: 20vh;
    padding-top: 10px;
    align-items: center;
    position:absolute;
    z-index: 4;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

#img-encabezado img {
    width: 100%;
  
}

#titulo h1 {
    width: 100%;
    font-family: masque;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    font-size: 3.5vW;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #e0e0e0; /* Texto en tonos claros */
    background-color: #080808;
}

#viewPresentacion {
    width: auto;
    max-width: 80%;
    aspect-ratio: 1/1;
    margin-top: 0px;
    position: relative;
    display: grid;
    transition: transform 0.3s ease, box-shadow 0.3s ease, display 0.3s ease;
    pointer-events: none;
    max-height: 70vh;
    left: 50%;
    transform: translateX(-50%);
}

#row1 {
    width: 100%;
    float: left;
}

#row2 {
    width: 100%;
    float: left;
}

[class*="foto-h"] , [class*="foto-v"] {
    width: 100%;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

[class*="foto-v"]:hover, [class*="foto-h"]:hover {
    transform: scale(1.05);
}

.foto-icono-ig:hover{
    transform: scale(1.2);
    cursor: pointer;
}

#viewPresentacion:hover .foto-h-1 {
    transform: scale(1.1) translate(-10%,-10%);
}

#viewPresentacion:hover .foto-h-2 {
    transform: scale(1.1) translate(+10%,+10%);
}

#viewPresentacion:hover .foto-v-1 {
    transform: scale(1.1) translate(+10%,-10%);
}

#viewPresentacion:hover .foto-v-2 {
    transform: scale(1.1) translate(-10%,+10%);
}

#viewPresentacion:active [class*="foto-v"] , #viewPresentacion:active [class*="foto-h"] {
    transform: scale(1.0);
}

.foto-icono-ig {
    width: 100%;
    z-index: 4;
    pointer-events: all;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.div-icono-ig {
    width: 22%;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.div-v-1 {
    position: absolute;
}

.foto-v-1 {
    position: absolute;
}

.div-h-1 {
    grid-row: 1;
}

[class*="div-h-"] {
    width: calc((700%/12));
    float: left;
    display: inline;
}

[class*="div-v-"] {
    width: calc((500%/12));
    float: left;
    display: inline;
}

.foto-h-2 {
    margin-top: 28.58%;
}

#viewBotonGaleria {
    text-align: center;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

#verGaleria {
    text-decoration: underline 2px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 20px;
    color: #3480b5;
    transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;
    
}

#verGaleria:hover {
    color: #c87f2b;
    cursor: pointer;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

#viewGaleria {
    display: none;
    height: 100vh;
    transition: transform 0.3s ease, box-shadow 0.3s ease, display 0.3s ease;
}

nav {
    width: 20%; /* Ancho fijo del menú */
    background-color: #141414; /* Fondo del menú lateral */
    padding: 10px;
    padding-top: 0px;
    overflow-y: auto;
    flex-shrink: 0;
    max-width: 30vh;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* Estilo para el menú lateral */
nav ul {
    list-style-type: none;
    padding: 0px;
    width: 100%;
}

nav li {
    margin: 5px 0;
    width: 90%;
    cursor: pointer;
    color: #e0e0e0; /* Texto claro */
    border-radius: 10px;
}

/* Estilo para los años y el TODOS genérico */
nav li.year, nav li.all-photos {
    font-size: 1.4em;
    font-weight: bold;
    padding: 8px;
    width: 90%;
}

/* Estilo para los meses y el TODOS específico */
nav li.month, nav li.specific-all {
    font-size: 0.8em;
    margin-left: 10%;
    padding: 8px;
    width: 70%;
}

/* Hover sobre los años y el TODOS genérico */
nav li.year:hover, nav li.all-photos:hover {
    color: #c87f2b;
    background-color: #414141;
    transition: color 0.3s ease;
}

/* Hover sobre los meses y el TODOS específico */
nav li.month:hover, nav li.specific-all:hover {
    color: #007bff;
    background-color: #5a5a5a;
    transition: color 0.3s ease;
}

nav li.month:active, nav li.specific-all:active {
    background-color: #757575;
    color: #ffffff;
}

nav li.year:hover, nav li.all-photos:hover, nav li.month:hover, nav li.specific-all:hover {
    transition: color 0.3s ease, background-color 0.3s ease;
}

#gallery {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    overflow-y: auto;
    justify-content: center;
    gap: 10px;
    background-color: #080808;
    max-height: 100vh;
}

/* Estilos para las fotos */
.photo {
    aspect-ratio: 7 / 5;
    background-color: #333; /* Fondo gris oscuro para las cajas de las fotos */
    border: 1px solid #444; /* Bordes gris oscuro */
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Sombra más oscura */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media only screen and (min-width: 1200px) {
    /* For desktop: */
    .photo {
        width: calc(100% / 6 - 12px);
    }
    nav li.year, nav li.all-photos {
        font-size: 1.4em;
        font-weight: bold;
    }
}
@media only screen and (min-width: 800px) and (max-width: 1200px) {
    /* For desktop: */
    .photo {
        width: calc(25% - 12px);
    }
    nav li.year, nav li.all-photos {
        font-size: 1.2em;
        font-weight: bold;
    }
}
@media only screen and (min-width: 600px) and (max-width: 800px) {
    /* For desktop: */
    .photo {
        width: calc(50% - 12px);
    }
    nav li.year, nav li.all-photos {
        font-size: 0.8em;
        font-weight: bold;
    }
}
@media only screen and (max-width: 600px) {
    /* For desktop: */
    .photo {
        width: calc(100% - 12px);
    }
    nav li.year, nav li.all-photos {
        font-size: 0.6em;
        font-weight: bold;
    }
}
/* Hover para las fotos */
.photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7); /* Sombra más intensa en hover */
}

.photo img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: #333; /* Fondo de contención para fotos */
    display: block;
}

/* Estilos para el lightbox (ventana modal) */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    object-fit: contain;
    width: 70%;
}

/* Botones de navegación (siguiente y anterior) */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6em;
    color: white;
    cursor: pointer;
    user-select: none;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

#close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6em;
    color: white;
    cursor: pointer;
    user-select: none;
}

#prev:hover {
    background-color: #5a5a5a;
    border-radius: 20px;
}

#next:hover {
    background-color: #5a5a5a;
    border-radius: 20px;
}

#close:hover {
    background-color: #5a5a5a;
    border-radius: 20px;
}
