/* Importa la fuente Montserrat desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; /* Hace que todo el texto esté en mayúsculas */
}


/* Diseño de la Barra Principal Superior */
.navbar {
    background: #232329;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky; /* Fija la barra en la vista al bajar */
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Diseño del logo */
/*Diseño del logo */
/*Diseño del logo */
#navbar__logo {
    background-color: #2a2847;
    background-image: linear-gradient(to top, #dddddd 0%, rgba(49, 49, 49, 0.067) 100%);
    color: transparent;
    background-size: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 2px;
    font-weight: 700;
}
.fa-gem {
    margin-right: 0.5px;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0rem 1rem;
    height: 100%;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}

/* Diseño del Botón de Barra principal */
.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    height: 100%;
    border: none;
    outline: none;
    border-radius: 4px;
    background: #696969;
    color: #ffffff;
    border-radius: 30px;
}

/* Animación en el botón de inicio de sesión */
.button:hover {
    background: #ffffff;
    color: #161d3f;
    transition: all 0.3s ease;
}

/* Animación al pasar el cursor sobre las opciones de la barra */
.navbar__links:hover {
    color: #616161;
    transition: all 0.3s ease;
}


/* ============================================ */
/* DROPDOWN DE GALERÍAS — DESKTOP                */
/* ============================================ */

.navbar__item--dropdown {
    position: relative;
}

/* Flecha del dropdown */
.dropdown__arrow {
    margin-left: 6px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.navbar__item--dropdown:hover .dropdown__arrow {
    transform: rotate(180deg);
}

/* Submenú oculto por defecto */
.navbar__dropdown {
    position: absolute;
    top: 80px; /* Justo debajo de la navbar */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #232329;
    list-style: none;
    min-width: 220px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Mostrar dropdown al pasar el cursor */
.navbar__item--dropdown:hover .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.navbar__dropdown li {
    width: 100%;
}

.navbar__dropdown li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: left;
    white-space: nowrap;
}

.navbar__dropdown li a:hover {
    background: #3a3a45;
    color: #dddddd;
    padding-left: 1.8rem;
}


/* ============================================ */
/* RESPONSIVE — PANTALLAS MENORES A 960px        */
/* ============================================ */

@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    /* Oculta la barra para ser observada solo al pasar el cursor */
    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        height: 50vh;
        position: absolute;
        top: -1000px; /* Ocultar fuera de la pantalla */
        opacity: 0;
        transition: all 0.5s ease;
        z-index: -1;
        background: #242222;
        overflow-y: auto; /* Permite scroll si hay muchos items */
    }

    .navbar__menu.active {
        background: #242222;
        top: 100%; /* Baja el menú justo debajo de la barra */
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: auto;
        min-height: 80vh;
        font-size: 1.6rem;
        padding-bottom: 2rem;
    }

    /* Mueve el logo de la barra */
    #navbar__logo {
        padding-left: 25px;
        margin-right: 0;
    }

    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: 80px;
        margin: 0;
        border-radius: 60px;
    }

    .navbar__toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ============================================ */
    /* DROPDOWN DE GALERÍAS — MÓVIL                  */
    /* ============================================ */

    .navbar__item--dropdown {
        width: 100%;
        height: auto;
    }

    .navbar__dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: #1a1a1f;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        min-width: 100%;
    }

    /* Cuando el dropdown está activo en móvil */
    .navbar__item--dropdown.active .navbar__dropdown {
        max-height: 400px;
        transform: none;
    }

    .navbar__item--dropdown.active .dropdown__arrow {
        transform: rotate(180deg);
    }

    .navbar__dropdown li a {
        text-align: center;
        padding: 1.2rem;
        font-size: 1.2rem;
    }

    .navbar__dropdown li a:hover {
        padding-left: 1.2rem; /* Anula el desplazamiento del desktop */
    }
}