
/* =========================================================
   MENÚ PRINCIPAL ITEMCOL
   ========================================================= */

#header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1450px;
    height: 85px;

    background: rgba(18, 33, 82, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);

    z-index: 1000;

    transition:
        top 0.4s ease,
        width 0.4s ease,
        max-width 0.4s ease,
        border-radius 0.4s ease,
        background 0.4s ease;
}


/* ---------------------------------------------------------
   MENÚ AL HACER SCROLL
   --------------------------------------------------------- */

#header.scroll {
    top: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;

    background: rgba(17, 29, 74, 0.97);
}


/* ---------------------------------------------------------
   CONTENEDOR
   --------------------------------------------------------- */

.nav-container {
    width: 100%;
    height: 100%;

    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.logo {
    position: relative;

    display: flex;
    align-items: center;

    height: 70px;

    text-decoration: none;

    flex-shrink: 0;
}


/* Imagen principal del logo */




/* ---------------------------------------------------------
   TEXTO DEL LOGO
   --------------------------------------------------------- */

.logo-text {
    display: flex;
    flex-direction: column;

    margin-left: 12px;

    line-height: 1;
}


.logo-text span {
    font-size: 26px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: #ffffff;
}


.logo-text small {
    margin-top: 6px;

    font-size: 8px;
    font-weight: 500;

    letter-spacing: 1.2px;

    color: rgba(255, 255, 255, 0.75);

    white-space: nowrap;
}


/* ---------------------------------------------------------
   ENGRANAJES DEL LOGO
   --------------------------------------------------------- */

.logo-gear {
    position: relative;
    left: 0px;
    top: 0px;
    width: 64px;
    height: 64px;
    pointer-events: none;
    z-index: 4;
    flex-shrink: 0;
}
.gear {
    position: absolute;

    object-fit: contain;

    transform-origin: center;

    opacity: 0.95;
}



.gear1 {
    width: 46px;
    height: 46px;
    left: 6px;
    top: 0px;
    animation: rotateGear1 8s linear infinite;
}

.gear2 {
    width: 27px;
    height: 27px;
    right: 30px;
    top: 28px;
    animation: rotateGear2 6s linear infinite reverse;
}

/* Animaciones */

@keyframes rotateGear1 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@keyframes rotateGear2 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ---------------------------------------------------------
   NAVEGACIÓN
   --------------------------------------------------------- */

.nav-menu {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 6px;
}


/* Enlaces principales */

.nav-menu > a,
.dropdown-btn {
    position: relative;

    display: flex;
    align-items: center;

    height: 45px;

    padding: 0 15px;

    border: none;
    background: transparent;

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    border-radius: 10px;

    transition:
        color 0.3s ease,
        background 0.3s ease;
}


/* Efecto hover */

.nav-menu > a:hover,
.dropdown-btn:hover {
    color: #ffd21c;

    background: rgba(255, 255, 255, 0.07);
}




/* ---------------------------------------------------------
   DROPDOWN — CAPACIDADES
   --------------------------------------------------------- */

.nav-dropdown {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;
}


.dropdown-btn {
    gap: 7px;
}


.arrow {
    font-size: 12px;

    transition: transform 0.3s ease;
}


.nav-dropdown:hover .arrow {
    transform: rotate(180deg);
}


/* ---------------------------------------------------------
   PANEL DESPLEGABLE
   --------------------------------------------------------- */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 50%;

    width: 330px;

    padding: 12px;

    background: rgba(15, 29, 72, 0.98);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 16px;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, -10px)
        scale(0.96);

    transform-origin: top center;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 2000;
}


/* Mostrar dropdown */

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0)
        scale(1);
}


/* ---------------------------------------------------------
   OPCIONES DEL DROPDOWN
   --------------------------------------------------------- */

.dropdown-menu a {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 13px 12px;

    color: #ffffff;

    text-decoration: none;

    border-radius: 11px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.dropdown-menu a:hover {
    background: rgba(255, 210, 28, 0.10);

    transform: translateX(4px);
}


/* Iconos */

.menu-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(255, 210, 28, 0.12);

    color: #ffd21c;

    font-size: 19px;
}


/* Títulos */

.dropdown-menu strong {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;
    font-weight: 700;

    color: #ffffff;
}


/* Descripción */

.dropdown-menu small {
    display: block;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.60);

    line-height: 1.3;
}


/* ---------------------------------------------------------
   BOTÓN SOLICITAR COTIZACIÓN
   --------------------------------------------------------- */

.nav-menu .nav-quote {
    margin-left: 8px;

    padding: 0 18px;

    background: #ffd21c;

    color: #14245b;

    font-weight: 800;

    border-radius: 10px;

    box-shadow: 0 5px 18px rgba(255, 210, 28, 0.18);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.nav-menu .nav-quote:hover {
    background: #ffffff;

    color: #14245b;

    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.18);
}


/* Quitamos la línea amarilla del botón */

.nav-menu .nav-quote::after {
    display: none;
}


/* ---------------------------------------------------------
   BOTÓN MENÚ MÓVIL
   --------------------------------------------------------- */

.menu-toggle {
    display: none;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 24px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.menu-toggle:hover {
    background: #ffd21c;
    color: #14245b;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    #header {
        width: 95%;
    }


    .nav-container {
        padding: 0 20px;
    }


    .logo-text small {
        display: none;
    }


    .logo-text span {
        font-size: 18px;
    }


   


    .nav-menu {
        gap: 2px;
    }


    .nav-menu > a,
    .dropdown-btn {
        padding: 0 10px;

        font-size: 13px;
    }


    .nav-menu .nav-quote {
        padding: 0 13px;
    }

}


/* =========================================================
   RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 800px) {

    #header {
        top: 10px;

        width: 94%;

        height: 70px;

        border-radius: 15px;
    }


    #header.scroll {
        top: 0;

        width: 100%;

        border-radius: 0;
    }


    .nav-container {
        padding: 0 16px;
    }


    .logo {
        height: 60px;
    }


   


    .logo-text {
        margin-left: 8px;
    }


    .logo-text span {
        font-size: 17px;
    }


    .logo-text small {
        display: none;
    }


    /* Engranajes móviles */

    .logo-gear {
        transform: scale(0.85);
    }


    /* Botón hamburguesa */

    .menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;
    }


    /* Menú móvil */

    .nav-menu {
        position: absolute;

        top: calc(100% + 10px);
        left: 0;

        width: 100%;

        height: auto;

        padding: 12px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        background: rgba(15, 29, 72, 0.98);

        border: 1px solid rgba(255, 255, 255, 0.10);

        border-radius: 16px;

        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.30);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;

        /* Evita que Materiales y Galería queden fuera de la pantalla */
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }


    /* Cuando JavaScript agrega .active */

    .nav-menu.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .nav-menu > a,
    .dropdown-btn {
        width: 100%;

        height: 48px;

        justify-content: space-between;

        padding: 0 15px;

        font-size: 14px;
    }


   /* =========================================================
   DROPDOWN CAPACIDADES — MÓVIL
   ========================================================= */

@media (max-width: 800px) {

    .nav-dropdown {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-btn {
        width: 100%;
        height: 48px;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 5px !important;

        background: rgba(0, 0, 0, 0.18) !important;

        border: none !important;
        border-radius: 10px !important;
        box-shadow: none !important;

        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Cuando se abre Capacidades */
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }

    /* OPCIONES */
    .dropdown-menu a {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;

        padding: 0 10px !important;
        margin: 0 !important;

        color: #ffffff !important;
        text-decoration: none !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    /* ICONOS */
    .dropdown-menu .menu-icon {
        display: flex !important;

        width: 32px !important;
        height: 32px !important;

        margin-right: 10px !important;

        align-items: center !important;
        justify-content: center !important;

        flex-shrink: 0 !important;

        color: #ffd21c !important;
        background: rgba(255, 210, 28, 0.12) !important;

        font-size: 16px !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    /* CONTENEDOR DEL TEXTO */
    .dropdown-menu a > div {
        display: flex !important;
        align-items: center !important;

        width: auto !important;
        height: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #ffffff !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    /* MATERIALes / GALERÍA */
    .dropdown-menu strong {
        display: block !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #ffffff !important;

        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        white-space: nowrap !important;

        opacity: 1 !important;
        visibility: visible !important;
    }

    /* OCULTAMOS DESCRIPCIONES EN MÓVIL */
    .dropdown-menu small {
        display: none !important;
    }

}


/* =========================================================
   LOGO ITEMCOL
   ========================================================= */

.logo-titulo-img {
    height: 80px;
    width: auto;
    max-width: 620px;
    object-fit: contain;
    margin-left: 10px;
}

@media (max-width: 760px) {
    .logo-titulo-img {
        height: 56px;
        max-width: 60vw;
        margin-left: 2px;
    }
}

@media (max-width: 400px) {
    .logo-titulo-img {
        height: 52px;
        max-width: 180px;
    }
}}