/* =========================================================
   ALCON DRONES
   HEADER / NAVIGATION
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --header-bg-start: #10212c;
    --header-bg-end: #091319;

    --header-green: #72C238;
    --header-green-hover: #84d347;

    --header-text: #ffffff;
    --header-text-muted: #d7e0e5;

    --header-height: 82px;
    --header-mobile-height: 72px;

    --header-z-index: 9999;
}


/* =========================================================
   HEADER PRINCIPAL
   ========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: var(--header-height);

    background: linear-gradient(
        135deg,
        var(--header-bg-start) 0%,
        var(--header-bg-end) 100%
    );

    z-index: var(--header-z-index);

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
}


/*
   Espacio para que el contenido no quede debajo
   del header fijo
*/

body {
    padding-top: var(--header-height);
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.site-header .header-container {
    position: relative;

    width: 100%;
    max-width: 1400px;

    height: 100%;

    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    z-index: 2;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-header .site-logo {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    color: var(--header-text);
    text-decoration: none;

    cursor: pointer;
}


/* Imagen del logo */

.site-header .site-logo-image {
    display: block;

    width: 80px;
    height: 80px;

    max-width: 80px;
    max-height: 80px;

    object-fit: contain;

    filter: drop-shadow(
        0 2px 4px rgba(0, 0, 0, 0.25)
    );
}


/* Nombre */

.site-header .site-logo-name {
    color: var(--header-text);

    font-size: 17px;
    font-weight: 700;

    letter-spacing: 0.3px;

    white-space: nowrap;
}


/* =========================================================
   NAVEGACIÓN DESKTOP
   ========================================================= */

.site-header .site-navigation {
    display: flex;
    align-items: center;

    height: 100%;

    position: relative;

    z-index: 3;
}


.site-header .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.site-header .nav-links > li {
    position: relative;

    margin: 0;
    padding: 0;
}


/* =========================================================
   ENLACES PRINCIPALES
   ========================================================= */

.site-header .nav-links > li > a {
    display: flex;
    align-items: center;

    gap: 7px;

    height: var(--header-height);

    color: var(--header-text);

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition: color 0.25s ease;
}


.site-header .nav-links > li > a:hover {
    color: var(--header-green);
}


/* =========================================================
   DROPDOWN SERVICIOS - DESKTOP
   ========================================================= */

.site-header .nav-dropdown {
    position: relative;
    z-index: 10;
}


.site-header .dropdown-toggle {
    display: flex;
    align-items: center;

    gap: 7px;
}


.site-header .dropdown-toggle i {
    font-size: 10px;

    transition: transform 0.25s ease;
}


/* SUBMENU */

.site-header .nav-dropdown .dropdown-content {
    position: absolute;

    top: 100%;
    left: 0;

    width: 270px;

    margin: 0;
    padding: 8px 0;

    list-style: none;

    background: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);

    z-index: 100;

    /*
       Estado inicial cerrado
    */

    display: none;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.20s ease,
        transform 0.20s ease,
        visibility 0.20s ease;
}


/* Elementos del submenu */

.site-header .dropdown-content li {
    width: 100%;

    margin: 0;
    padding: 0;
}


.site-header .dropdown-content li a {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 12px 18px;

    color: #10212c;

    background: #ffffff;

    text-decoration: none;

    font-size: 14px;
    line-height: 1.4;

    white-space: normal;

    transition:
        background 0.20s ease,
        color 0.20s ease;
}


.site-header .dropdown-content li a:hover {
    background: #f2f7ef;

    color: var(--header-green);
}


/* =========================================================
   DROPDOWN ABIERTO POR JAVASCRIPT
   ========================================================= */

.site-header .nav-dropdown.dropdown-open
.dropdown-content {

    display: block;

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.site-header .nav-dropdown.dropdown-open
.dropdown-toggle i {

    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN POR HOVER - SOLO DESKTOP
   ========================================================= */

@media (min-width: 851px) {

    .site-header .nav-dropdown:hover
    .dropdown-content {

        display: block;

        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }


    .site-header .nav-dropdown:hover
    .dropdown-toggle i {

        transform: rotate(180deg);
    }

}


/* =========================================================
   WHATSAPP
   ========================================================= */

.site-header .nav-whatsapp {
    margin-left: 5px;
}


.site-header .header-whatsapp {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    gap: 7px;

    height: auto !important;

    min-width: 42px;

    padding: 9px 14px;

    border-radius: 8px;

    background: var(--header-green);

    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.site-header .header-whatsapp:hover {
    background: var(--header-green-hover);

    color: #ffffff !important;

    transform: translateY(-2px);
}


.site-header .header-whatsapp i {
    font-size: 18px;
}


/* =========================================================
   BOTÓN MENÚ MÓVIL
   ========================================================= */

/*
   IMPORTANTE:
   Oculto por defecto.
   Solo aparece dentro de @media max-width: 850px.
*/

.site-header .mobile-menu-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    margin-left: auto;

    flex-shrink: 0;

    width: 44px;
    height: 44px;

    padding: 0;

    border: none;
    border-radius: 7px;

    background: transparent;

    color: #ffffff;

    font-size: 23px;

    cursor: pointer;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .site-header .header-container {
        padding: 0 25px;

        gap: 20px;
    }


    .site-header .nav-links {
        gap: 18px;
    }


    .site-header .site-logo-name {
        font-size: 15px;
    }

}


/* =========================================================
   MÓVIL / TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 850px) {

    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .site-header {
        height: var(--header-mobile-height);
    }


    body {
        padding-top: var(--header-mobile-height);
    }


    /* -----------------------------------------------------
       CONTENEDOR
       ----------------------------------------------------- */

    .site-header .header-container {
        width: 100%;

        height: var(--header-mobile-height);

        padding: 0 20px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 10px;
    }


    /* -----------------------------------------------------
       LOGO
       ----------------------------------------------------- */

    .site-header .site-logo {
        display: flex;
        align-items: center;

        gap: 8px;

        flex-shrink: 0;
    }


    .site-header .site-logo-image {
        width: 46px;
        height: 46px;

        max-width: 46px;
        max-height: 46px;
    }


    .site-header .site-logo-name {
        font-size: 14px;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       BOTÓN HAMBURGUESA
       ----------------------------------------------------- */

    .site-header .mobile-menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;

        margin-left: auto;

        flex-shrink: 0;

        width: 44px;
        height: 44px;

        padding: 0;

        border: none;
        border-radius: 7px;

        background: transparent;

        color: #ffffff;

        font-size: 23px;

        cursor: pointer;
    }


    /* -----------------------------------------------------
       NAVEGACIÓN MÓVIL
       ----------------------------------------------------- */

    .site-header .site-navigation {

        position: fixed;

        top: var(--header-mobile-height);

        left: 0;
        right: 0;

        width: 100vw;
        max-width: 100vw;

        height: auto;

        margin: 0;
        padding: 0;

        display: block;

        background: linear-gradient(
            135deg,
            var(--header-bg-start) 0%,
            var(--header-bg-end) 100%
        );

        box-shadow:
            0 10px 20px rgba(0, 0, 0, 0.25);

        z-index: 9998;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* -----------------------------------------------------
       MENÚ ABIERTO
       ----------------------------------------------------- */

    .site-header .site-navigation.mobile-open {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* -----------------------------------------------------
       LISTA
       ----------------------------------------------------- */

    .site-header .nav-links {

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        margin: 0;

        padding: 10px 20px 20px;

        list-style: none;
    }


    /* -----------------------------------------------------
       ELEMENTOS
       ----------------------------------------------------- */

    .site-header .nav-links > li {

        width: 100%;

        margin: 0;
        padding: 0;
    }


    /* -----------------------------------------------------
       ENLACES PRINCIPALES
       ----------------------------------------------------- */

    .site-header .nav-links > li > a {

        display: flex;

        align-items: center;

        width: 100%;

        min-height: 48px;

        height: auto;

        padding: 12px 10px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);

        color: #ffffff;

        text-decoration: none;

        font-size: 14px;

        font-weight: 500;
    }


    /* -----------------------------------------------------
       WHATSAPP
       ----------------------------------------------------- */

    .site-header .nav-whatsapp {

        width: 100%;

        margin: 12px 0 0;
    }


    .site-header .header-whatsapp {

        width: 100%;

        min-height: 45px;

        justify-content: center;
    }


    /* =====================================================
       DROPDOWN SERVICIOS - MÓVIL
       ===================================================== */

    .site-header .nav-dropdown {
        position: relative;

        width: 100%;
    }


    /*
       Submenu cerrado
    */

    .site-header .nav-dropdown .dropdown-content {

        position: static !important;

        width: 100% !important;
        max-width: 100% !important;

        display: none !important;

        opacity: 1 !important;
        visibility: visible !important;

        transform: none !important;

        margin: 0 !important;
        padding: 0 !important;

        background:
            rgba(255, 255, 255, 0.04) !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        z-index: auto;
    }


    /*
       Submenu abierto
    */

    .site-header .nav-dropdown.mobile-dropdown-open
    .dropdown-content {

        display: block !important;
    }


    /* -----------------------------------------------------
       ENLACES DEL SUBMENU
       ----------------------------------------------------- */

    .site-header .nav-dropdown
    .dropdown-content li {

        width: 100%;

        margin: 0;
        padding: 0;
    }


    .site-header .nav-dropdown
    .dropdown-content li a {

        display: block;

        width: 100%;

        box-sizing: border-box;

        padding: 11px 20px 11px 35px !important;

        color: var(--header-text-muted) !important;

        background: transparent !important;

        font-size: 13px;

        line-height: 1.4;

        text-decoration: none;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.05);
    }


    .site-header .nav-dropdown
    .dropdown-content li a:hover {

        background:
            rgba(255, 255, 255, 0.05) !important;

        color: var(--header-green) !important;
    }


    /* -----------------------------------------------------
       FLECHA DEL DROPDOWN
       ----------------------------------------------------- */

    .site-header .dropdown-toggle i {

        transition:
            transform 0.25s ease;
    }


    .site-header .nav-dropdown.mobile-dropdown-open
    .dropdown-toggle i {

        transform: rotate(180deg);
    }

}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .site-header .header-container {
        padding: 0 15px;
    }


    .site-header .site-logo {
        gap: 8px;
    }


    .site-header .site-logo-image {
        width: 42px;
        height: 42px;

        max-width: 42px;
        max-height: 42px;
    }


    .site-header .site-logo-name {
        font-size: 12px;

        letter-spacing: 0;
    }


    .site-header .mobile-menu-toggle {
        width: 40px;
        height: 40px;

        font-size: 21px;

        margin-left: auto;
    }

}