/* Selector de idioma Nebulosa */
.neb-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.neb-lang-switch--labeled,
.neb-lang-switch--float,
.neb-lang-switch--sidebar,
.neb-lang-switch--card {
    gap: 8px;
    padding: 6px 10px;
}

.neb-lang-leading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    opacity: 0.9;
}

.neb-lang-text {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.neb-soporte-page .neb-lang-switch,
.hold-transition .neb-lang-switch {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.neb-lang-btn {
    min-width: 2.1rem;
    height: 1.75rem;
    padding: 0 0.45rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    opacity: 0.75;
    transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.neb-lang-btn:hover {
    opacity: 1;
}

.neb-lang-btn.is-active {
    background: #fff;
    color: #1d4ed8;
    opacity: 1;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.neb-soporte-page .neb-lang-btn.is-active,
.hold-transition .neb-lang-switch .neb-lang-btn.is-active {
    background: #2563eb;
    color: #fff;
}

.nl-topbar .neb-lang-switch {
    margin-left: 0.25rem;
}

.nl-topbar .neb-lang-btn {
    color: #fff;
}

.nl-topbar .neb-lang-btn.is-active {
    background: rgba(255, 255, 255, 0.95);
    color: #1d4ed8;
}

.nl-topbar .neb-lang-switch {
    margin-left: 0.15rem;
}

.nl-topbar .neb-lang-leading,
.nl-topbar .neb-lang-text,
.nl-topbar .neb-lang-btn {
    color: #fff;
}

.nl-topbar .neb-lang-btn.is-active {
    background: rgba(255, 255, 255, 0.95);
    color: #1d4ed8;
}

.nl-topbar-lang {
    display: inline-flex;
    align-items: center;
}

.nl-lang-row {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.neb-lang-switch--card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.neb-lang-switch--card .neb-lang-leading {
    color: #2563eb;
}

.neb-lang-switch--card .neb-lang-text {
    color: #475569;
}

.neb-lang-switch--card .neb-lang-btn.is-active {
    background: #2563eb;
    color: #fff;
}

.sp-topbar .neb-lang-switch {
    margin-left: auto;
}

.main-header .neb-lang-switch {
    margin-right: 0.35rem;
}

.neb-lang-float-mount {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1090;
    padding: 0.45rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.18), 0 4px 12px rgba(15, 23, 42, 0.12);
}

.neb-lang-float-mount .neb-lang-switch {
    background: transparent;
    border: none;
    padding: 0;
}

.neb-lang-float-mount .neb-lang-leading {
    color: #2563eb;
}

.neb-lang-float-mount .neb-lang-text {
    color: #334155;
}

.neb-lang-float-mount .neb-lang-btn.is-active {
    background: #2563eb;
    color: #fff;
}

.ct-hero-nav .neb-lang-switch,
.tn-nav .neb-lang-switch {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.ct-hero-nav .neb-lang-btn,
.tn-nav .neb-lang-btn {
    color: #fff;
}

.ct-hero-nav .neb-lang-btn.is-active,
.tn-nav .neb-lang-btn.is-active {
    background: rgba(255, 255, 255, 0.95);
    color: #1d4ed8;
}

.ct-hero-lang,
.tn-nav-lang {
    display: inline-flex;
    align-items: center;
    margin-right: 0.35rem;
}

.neb-sidebar-lang {
    margin: 0.75rem 0.85rem 1rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.neb-sidebar-lang .neb-lang-switch {
    width: 100%;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(148, 163, 184, 0.22);
}

.neb-sidebar-lang .neb-lang-leading,
.neb-sidebar-lang .neb-lang-text,
.neb-sidebar-lang .neb-lang-btn {
    color: #e2e8f0;
}

.neb-sidebar-lang .neb-lang-btn.is-active {
    background: #2563eb;
    color: #fff;
}

.neb-user-lang-row {
    padding: 0.65rem 1rem 0.85rem !important;
    border-bottom: 1px solid #e2e8f0;
}

.neb-user-lang-row .neb-lang-switch {
    width: 100%;
    justify-content: center;
}

.main-header .neb-lang-switch--labeled .neb-lang-text {
    color: #475569;
}

.main-header .neb-lang-switch--labeled .neb-lang-leading {
    color: #2563eb;
}
