@font-face {
    font-family: "degularbold";
    src: url("Degular Display (14)/DegularDisplay-Bold.otf");
}

@font-face {
    font-family: "medium";
    src: url("Degular Text (14)/DegularText-Medium.otf");
}

@font-face {
    font-family: "textbold";
    src: url("Degular Text (14)/DegularText-Bold.otf");
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

h1 {
    font-family: "degularbold", sans-serif;
}

p {
    font-family: "medium", sans-serif;
}

.italic-text {
    font-style: italic;
    font-weight: bold;
}

.header {
    padding: 20px 0;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 300px;
    height: auto;
    cursor: pointer;
}

.navbar-container {
    width: 100%;
    background-color: #358DFF;
    position: relative;
    padding: 10px 0;
}

.navbar {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 80px;
}

.navbar a {
    text-decoration: none;
    color: #000000;
    font-family: "textbold", sans-serif;
    font-weight: normal;
    font-size: 1.1em;
    padding: 20px 30px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ffffff;
}

.main-content {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- ESTILO DEL BOTÓN HAMBURGUESA --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px auto;
    border-radius: 2px;
}

/* --- REGLAS PARA CELULARES --- */
@media screen and (max-width: 600px) {
    .menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 15px;
    }

    .navbar {
        display: flex;
        flex-direction: column;
        text-align: left;
        padding: 10px 0;
        gap: 0;
        margin-top: 50px;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.5s ease-in-out, visibility 0.5s ease-in-out;
    }

    .navbar.active {
        max-height: 500px;
        visibility: visible;
    }

    .navbar li {
        width: 100%;
        margin-bottom: 10px;
    }

    .navbar a {
        padding: 15px 20px;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* --- ESTILOS DE PÁGINA ESPECÍFICOS --- */
.inicio-page {
    background-image: url('fondoinicio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFFFFF;
    text-align: center;
}

.nosotros-page {
    background-image: url('fondonosotros.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFFFFF;
    text-align: left;
}

.trabajos-page {
    background-image: url('fondotrabajos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFFFFF;
    text-align: center;
}

.equipos-page {
    background-image: url('fondoequipos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFFFFF;
    text-align: center;
}

.galeria-page {
    background-image: url('fondogaleria.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFFFFF;
    text-align: center;
}

.contacto-page {
    background-image: url('fondo-contacto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #000000;
    text-align: left;
}

.contacto-page .main-content {
    display: flex;
    justify-content: center;
}

.contact-box {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    text-align: left;
}

.contact-box p a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-box p a:hover {
    color: #4684B3;
}

/* --- ESTILOS DE TRANSICIÓN --- */
body.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

body.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Estilos de la portada del álbum */
.album-cover {
    width: 300px;
    height: 300px;
    margin: 40px auto;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

/* Capa oscura que se despliega al pasar el mouse */
.album-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-cover:hover::after {
    opacity: 1;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos del nombre del álbum */
.album-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: "degularbold", sans-serif;
    font-size: 1.5em;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-cover:hover .album-name {
    opacity: 1;
}

/* El álbum horizontal ya no se usa, lo ocultamos */
.galeria-album {
    display: none;
}

/* --- ESTILOS LIGHTBOX (ALBUM DESPLEGABLE) --- */
#lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeInOverlay 0.3s ease-in-out forwards;
}

.lightbox-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-in-out forwards;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #000;
}

.lightbox-album-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    align-items: center;
}

.lightbox-album-vertical img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animaciones para el Lightbox */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}