/* ==========================================================================
   Laboratorios Páez - Header Navigation
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADER BASE
   -------------------------------------------------------------------------- */
.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #FFFFFF;
    transition: box-shadow 0.3s ease;
}

.lp-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.lp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 48px;
    gap: 32px;
}

/* --------------------------------------------------------------------------
   LOGO
   -------------------------------------------------------------------------- */
.lp-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.lp-header__logo img {
    height: 52px;
    width: auto;
}

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.lp-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: flex-end;
}

.lp-header__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-header__menu .menu-item a {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3C3C3B;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.lp-header__menu .menu-item a:hover {
    color: #0083FF;
    background-color: rgba(0, 131, 255, 0.06);
}

.lp-header__menu .current-menu-item > a,
.lp-header__menu .current_page_item > a {
    color: #0083FF;
    font-weight: 600;
}

/* Submenu / dropdown */
.lp-header__menu .menu-item {
    position: relative;
}

.lp-header__menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    z-index: 10;
}

.lp-header__menu .menu-item:hover > .sub-menu {
    display: block;
}

.lp-header__menu .sub-menu .menu-item a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 0;
}

.lp-header__menu .sub-menu .menu-item a:hover {
    background-color: #F5F8FF;
}

/* --------------------------------------------------------------------------
   ACTIONS (CTA + Language)
   -------------------------------------------------------------------------- */
.lp-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.lp-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0083FF;
    color: #FFFFFF !important;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 5px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lp-header__cta:hover {
    background-color: #006CD6;
    transform: translateY(-1px);
}

.lp-header__lang {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.lp-header__lang:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.lp-header__lang img {
    width: 28px;
    height: 20px;
    border-radius: 2px;
}

.lp-header__lang svg {
    width: 10px;
    height: 6px;
}

/* --------------------------------------------------------------------------
   HAMBURGER (MOBILE)
   -------------------------------------------------------------------------- */
.lp-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    z-index: 10;
}

.lp-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #3C3C3B;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación hamburguesa → X */
.lp-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.lp-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.lp-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   SPACER - Empujar el contenido debajo del header fijo
   -------------------------------------------------------------------------- */
body {
    padding-top: 76px !important;
}

/* Elementor Canvas override */
body.elementor-template-canvas {
    padding-top: 76px !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE - TABLET
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .lp-header__inner {
        padding: 12px 24px;
    }

    .lp-header__menu .menu-item a {
        font-size: 13px;
        padding: 6px 8px;
    }

    .lp-header__menu {
        gap: 4px;
    }

    .lp-header__nav {
        gap: 16px;
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVE - MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .lp-header__inner {
        padding: 10px 20px;
    }

    .lp-header__logo img {
        height: 42px;
    }

    body,
    body.elementor-template-canvas {
        padding-top: 62px !important;
    }

    /* Mostrar hamburguesa */
    .lp-header__toggle {
        display: flex;
    }

    /* Nav se convierte en panel deslizable */
    .lp-header__nav {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    }

    .lp-header__nav.is-open {
        transform: translateX(0);
    }

    /* Menú vertical */
    .lp-header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .lp-header__menu .menu-item a {
        display: block;
        font-size: 16px;
        padding: 14px 16px;
        border-bottom: 1px solid #EDEEF0;
        border-radius: 0;
    }

    .lp-header__menu .menu-item:last-child a {
        border-bottom: none;
    }

    /* Submenu en móvil */
    .lp-header__menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0 0 0 16px;
        border-radius: 0;
        background: #F9FAFB;
    }

    .lp-header__menu .sub-menu .menu-item a {
        font-size: 14px;
        padding: 12px 16px;
    }

    /* Actions al final del menú móvil */
    .lp-header__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #EDEEF0;
    }

    .lp-header__cta {
        text-align: center;
        padding: 14px 24px;
        font-size: 16px;
    }

    .lp-header__lang {
        justify-content: center;
        padding: 12px;
    }
}

/* --------------------------------------------------------------------------
   MOBILE SMALL
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .lp-header__inner {
        padding: 8px 16px;
    }

    .lp-header__logo img {
        height: 36px;
    }
}
