
.landing-header {
    position: relative;
    z-index: 20;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-header-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #5a0d8a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.landing-header-logo-icon {
    display: flex;
    color: #5a0d8a;
}

.landing-header-logo-icon svg {
    display: block;
}

.landing-header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.landing-header-link {
    color: #4746AB;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-header-link:hover {
    color: #2e2c89;
}

.landing-header-link-ghost {
    margin-right: 8px;
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.landing-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EEEEF8;
    color: #5a0d8a;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.landing-header-cta:hover {
    background: #e0e0f0;
    color: #4a0d7a;
}

.landing-header-cta-icon {
    flex-shrink: 0;
}

/* Legacy header (por si se usa en otras vistas) */
.header-nav {
    position: absolute;
    top: 30px;
    right: 50px;
    z-index: 20;
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-login-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s;
}

.header-login-link:hover {
    color: white;
}

.header-register-btn {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.1), inset 0 0 0 1px rgba(102, 126, 234, 0.2);
    border: 1px solid rgb(128 151 255 / 64%);
    background: rgba(20, 20, 20, 0.8);
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.header-register-btn:hover {
    border: 1px solid rgb(128 151 255 / 100%);
}

/* Hamburger (3 líneas) - visible solo en móvil */
.landing-header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #292866;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.landing-header-burger-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.landing-header.menu-open .landing-header-burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.landing-header.menu-open .landing-header-burger-line:nth-child(2) {
    opacity: 0;
}
.landing-header.menu-open .landing-header-burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 767px) {
    .landing-header-burger {
        display: flex;
    }
    .landing-header-nav.d-none.d-md-flex,
    .landing-header-inner > .landing-header-nav {
        display: none !important;
    }
}

/* Overlay y drawer (menú lateral) */
.landing-header-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    z-index: 21;
    pointer-events: none;
}
.landing-header-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #eff2ff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 22;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.55s;
    visibility: hidden;
    overflow-y: auto;
}

/* Botón X para cerrar (dentro del drawer) */
.landing-header-drawer-close {
    position: absolute;
    top: 25px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #5a0d8a;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.landing-header-drawer-close-x {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.3s ease;
}
.landing-header-drawer-close-x:first-child {
    transform: rotate(45deg);
}
.landing-header-drawer-close-x:last-child {
    transform: rotate(-45deg);
}

.landing-header-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.landing-header-drawer-link {
    display: block;
    padding: 14px 12px;
    color: #4746AB;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.landing-header-drawer-link:hover {
    background: rgba(71, 70, 171, 0.1);
    color: #1b1a3f;
}

/* Menú abierto: overlay activo y drawer deslizado */
.landing-header.menu-open .landing-header-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.landing-header.menu-open .landing-header-drawer {
    transform: translateX(0);
    visibility: visible;
}

/* Responsive - Header */
@media (max-width: 768px) {
    .landing-header {
        padding: 15px 25px;
    }

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

    .landing-header-cta {
        padding: 8px 14px;
        font-size: 14px;
    }

    .header-nav {
        top: 20px;
        right: 20px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .landing-header-inner {
        gap: 12px;
    }

    .landing-header-cta .landing-header-cta-icon {
        display: none;
    }

    .header-nav {
        flex-direction: column;
        gap: 10px;
    }
}
